Skip to content

Commit 3e50887

Browse files
committed
Add custom labels to ClusterRole or Role
1 parent 0f3f664 commit 3e50887

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

helm/charts/nack/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ keywords:
66
- nats
77
- jetstream
88
- cncf
9-
version: 0.28.0
9+
version: 0.28.1
1010
maintainers:
1111
1212
name: The NATS Authors

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)