Skip to content

feat(nack) Add custom labels to ClusterRole or Role #979

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rblaine95
Copy link

Closes #978

Add ability to add custom labels (e.g: rbac.authorization.k8s.io/aggregate-to-admin="true") to NACK ClusterRole or Role

@rblaine95 rblaine95 changed the title [NACK] Add custom labels to ClusterRole or Role (feat/nack) Add custom labels to ClusterRole or Role Mar 12, 2025
@rblaine95 rblaine95 changed the title (feat/nack) Add custom labels to ClusterRole or Role feat(nack) Add custom labels to ClusterRole or Role Mar 12, 2025
Copy link
Contributor

@kejne kejne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I am not a maintainer, just contributing with some nearby stuff)

Comment on lines +16 to +17
labels:
{{- tpl (toYaml .Values.rbacLabels) . | nindent 4 }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause a templating error if no label is passed in. Use an if statement in combination to make sure that it works when not passing any value.
Similar as for podAnnotations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(nack) Add Labels to RBAC Jetstream Controller Role
2 participants