Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow flexibility when forming labels #474

Open
adityathebe opened this issue Apr 3, 2024 · 1 comment
Open

Allow flexibility when forming labels #474

adityathebe opened this issue Apr 3, 2024 · 1 comment

Comments

@adityathebe
Copy link
Member

example:

spec:
  kubernetes:
    labels:
      - name: controller
        label: app/controller
      - name: replicas
        jsonpath: $.spec.replicas

or maybe a cel expression

spec:
  kubernetes:
    labels:
      - name: controller
        expr: spec.metadata.labels['app/controller']
      - name: replicas
        expr: spec.replicas 
@moshloop
Copy link
Member

moshloop commented Apr 5, 2024

@adityathebe wouldn't a transform work here? i.e. the same way we have transform expressions on checks that can add metrics amend details etc..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants