-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Helm] Add labels to resources #6992
[Helm] Add labels to resources #6992
Conversation
Hi @hamza3202. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @ChiefAlexander |
/assign @ElvinEfendi |
/ok-to-test |
/test |
@hamza3202: The
Use
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@ChiefAlexander Will it be okay to update version and changelog, once my other PR gets merged? |
@ChiefAlexander can you please merge this PR? |
@@ -5,6 +5,9 @@ metadata: | |||
labels: | |||
{{- include "ingress-nginx.labels" . | nindent 4 }} | |||
app.kubernetes.io/component: default-backend | |||
{{- with .Values.defaultBackend.labels }} | |||
{{- toYaml . | nindent 4 }} | |||
{{- end }} |
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.
I'm curious if the above should also be included below at https://github.com/kubernetes/ingress-nginx/pull/6992/files#diff-b26819b1b2600e0b40ae78243b6b0efa9d34098f1594ac0838d23669bb93be18L23
Sure there are podLabels
, but that would force the installer to duplicate some configuration if they should be the same.
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.
Done
I'm also curious if we want to send all controller labels to the pods as well? This would mean we'd need to add
To:
|
/area helm |
need rebase |
@hamza3202: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
fb981fe
to
6e72ce6
Compare
Signed-off-by: Muhammad Hamza Zaib <hamzazaib3202@gmail.com>
Signed-off-by: Muhammad Hamza Zaib <hamzazaib3202@gmail.com>
6e72ce6
to
c362d00
Compare
I got side tracked with other stuff. Please review this now. |
/lgtm thanks |
/lifecycle active |
/tide merge-method-squash |
/label tide/merge-method-squash |
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.
thanks for that, looks good to me and I did a local test and got the labels
/approve
/hold for @ChiefAlexander review as well |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ChiefAlexander, cpanato, hamza3202, iamNoah1 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
thanks for the contribution |
* Add labels to RBAC resources * Add labels to all resources * Fix labels indentaton in patch jobs * Add controller and default backend labels to pods Signed-off-by: Muhammad Hamza Zaib <hamzazaib3202@gmail.com> * Bump chart version and update changelog Signed-off-by: Muhammad Hamza Zaib <hamzazaib3202@gmail.com>
What this PR does / why we need it:
This PR allows the user to add labels to resources by providing helm values. It is important to label resources based on user's organizational policies.
Types of changes
How Has This Been Tested?
Checklist: