Skip to content

Commit 69d8f72

Browse files
committed
Add custom labels to ClusterRole or Role
1 parent 0f3f664 commit 69d8f72

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

helm/charts/nack/templates/rbac-jetstream-controller.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ kind: {{ $kind }}
1313
metadata:
1414
name: {{ template "jsc.serviceAccountName" . }}-{{ $kindSuffix }}
1515
namespace: {{ include "jsc.namespace" . }}
16+
labels:
17+
{{- tpl (toYaml .Values.rbacLabels) . | nindent 4 }}
1618
{{ tpl .Values.rbacRules . }}
1719

1820
---
@@ -28,4 +30,4 @@ subjects:
2830
roleRef:
2931
kind: {{ $kind }}
3032
name: {{ template "jsc.serviceAccountName" . }}-{{ $kindSuffix }}
31-
apiGroup: rbac.authorization.k8s.io
33+
apiGroup: rbac.authorization.k8s.io

helm/charts/nack/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ additionalVolumes: []
7373
# additionalVolumeMounts are the additional volume mounts to add
7474
additionalVolumeMounts: []
7575

76+
# Custom labels to be added to the ClusterRole or Role
77+
rbacLabels: {}
78+
# rbac.authorization.k8s.io/aggregate-to-admin: "true"
7679
# Rules to be applied to ClusterRole or Role
7780
# Set as a string so that it can be templated to allow further customization
7881
rbacRules: |

0 commit comments

Comments
 (0)