-
Notifications
You must be signed in to change notification settings - Fork 784
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
Add labels to helm templates #2265
Conversation
Thank you @Namanl2001 for the contribution, and sorry for the late response. Yes we need to add those labels to all Helm resources. However we don't want to update each and every label when generating a new release, i.e. I'm not sure if it's better to use the Helm template itself or Kustomize. It would be good if can manage labels similarly with the direct manifests so that we can patch the changes to all resources, for example, we use this kustomizaition file to patch labels: kyverno/definitions/labels.yaml Lines 1 to 18 in a93240c
|
Yes, you're right. As we'll have to update each file at each release and I think we can somehow skip this. I guess simply adding |
The Helm resources are managed in
Once you add the Kustomization related manifests, you can run |
Gotta! Tried to do the same in the latest commit. Also verified it locally. Thanks |
@realshuting this PR is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Namanl2001 - I think you get the idea, but how should we patch these labels to CRD manifests? Currently /charts/kyverno-crds/templates/crds.yaml
is generated from ./definitions/crds
:
Line 213 in fbab9ab
kustomize build ./definitions/crds > ./charts/kyverno-crds/templates/crds.yaml |
Should we update this Make target as well?
resources: | ||
- ./templates/ | ||
|
||
images: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to set image tags?
@Namanl2001 - please see #2274 (comment). |
I think they mean to say
instead of
|
Line 213 in fbab9ab
Replacing the above command in makefile with |
Yes, it should be I don't think we need to add kustomization file anymore, as it is already defined in |
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Namanl2001 !
Signed-off-by: Namanl2001 namanlakhwani@gmail.com
Related issue
Fixes #2262
Checklist