Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helm/charts/nack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords:
- nats
- jetstream
- cncf
version: 0.28.0
version: 0.28.1
maintainers:
- email: [email protected]
name: The NATS Authors
Expand Down
6 changes: 5 additions & 1 deletion helm/charts/nack/templates/rbac-jetstream-controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ kind: {{ $kind }}
metadata:
name: {{ template "jsc.serviceAccountName" . }}-{{ $kindSuffix }}
namespace: {{ include "jsc.namespace" . }}
{{- if .Values.rbacLabels }}
labels:
{{- tpl (toYaml .Values.rbacLabels) . | nindent 4 }}
{{- end }}
{{ tpl .Values.rbacRules . }}

---
Expand All @@ -28,4 +32,4 @@ subjects:
roleRef:
kind: {{ $kind }}
name: {{ template "jsc.serviceAccountName" . }}-{{ $kindSuffix }}
apiGroup: rbac.authorization.k8s.io
apiGroup: rbac.authorization.k8s.io
3 changes: 3 additions & 0 deletions helm/charts/nack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ additionalVolumes: []
# additionalVolumeMounts are the additional volume mounts to add
additionalVolumeMounts: []

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