workloadRef with kustomize's commonAnnotations #1922
Unanswered
abarisuzuner
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a question about using
workloadRef
together with kustomize’scommonAnnotations
. I am using the following configuration in my kustomize:And with that when I add a
commonAnnotations
to my kustomization, in my Rollout I have bothspec/workloadRef
andspec/template
fields (template is only with annotations and nothing else). First question is that is this a problem?If it is a problem, what is the behaviour when I have these both fields, are they being merged? My deployment already has all the annotations so I don’t need
spec/template
in the rollout. As a workaround I can add another layer of kustomization and deletespec/template
with a patch but not the prettiest solution. Is there any way to preventcommonAnnotations
to add template when I haveworkloadRef
? Would this be considered as a bug inrollout-transform.yaml
?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions