You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey team, I've been trying to figure out how I can essentially retrieve the environment of the deployment in a generic provider as an alert, since I need it for reporting LTFC (Lead Time For Change) for our deployments.
The problem I'm facing is that I cannot find a way to access labels / podAnnotations / podLabels in the alert.
I'm receiving env: production-from-event-metadata as expected, but the rest are coming through as strings as configured.
The problem I'm facing is that the alert is per namespace, and since my organization has teams running their own way of doing Flux, I cannot guarantee that this specific namespace will only contain production/development pods. Ideally, I'd like to resolve the metadata/labels directly from the pod itself.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey team, I've been trying to figure out how I can essentially retrieve the environment of the deployment in a generic provider as an alert, since I need it for reporting LTFC (Lead Time For Change) for our deployments.
The problem I'm facing is that I cannot find a way to access
labels
/podAnnotations
/podLabels
in the alert.Here is my current, naive approach:
podinfo-values.yaml
alerts-config.yaml
I'm receiving
env: production-from-event-metadata
as expected, but the rest are coming through as strings as configured.The problem I'm facing is that the alert is per namespace, and since my organization has teams running their own way of doing Flux, I cannot guarantee that this specific namespace will only contain production/development pods. Ideally, I'd like to resolve the metadata/labels directly from the pod itself.
Beta Was this translation helpful? Give feedback.
All reactions