Open sethryder opened 3 months ago
Unless I'm misunderstanding the ask, but I think this is available now
https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/application.yaml#L118
Unless I'm misunderstanding the ask, but I think this is available now
https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/application.yaml#L118
I believe currently envsubst only works on Labels/Annotations. What I am looking for is being able to use them in the actual patch definitions. I mentioned commonAnnotationsEnvsubst
as an example if Argo wanted to use something like patchEnvsubst
to be able to turn it on/off.
Summary
It would be helpful if we could use envsubst (specifically Build Environment variables) in patches for Kustomize like we can for commonLabels and commonAnnotations. This is specifically for the
Application
kind as we can get this to work with go templates forApplicationSets
.Motivation
There are times were we have specific labels we want to set on just Deployments and not on every object, for example the short hash of the git commit for the Datadog version label.
Proposal
I believe it should work the same way as it does for commonLabels/commonAnnotations. But maybe a flag like
commonAnnotationsEnvsubst
for turning in on for patches would be best/required.