Skip to content

Commit 742c7da

Browse files
committed
feat(helm/fluent-operator): add option to disable rbac creation
1 parent 7621714 commit 742c7da

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

charts/fluent-operator/templates/fluent-operator-clusterRole.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.operator.enable }}
1+
{{- if and .Values.operator.enable .Values.operator.rbac.create }}
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:

charts/fluent-operator/templates/fluent-operator-clusterRoleBinding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.operator.enable }}
1+
{{- if and .Values.operator.enable .Values.operator.rbac.create }}
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRoleBinding
44
metadata:

charts/fluent-operator/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ operator:
3838
priorityClassName: ""
3939
# Pod security context for Fluent Operator. Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
4040
podSecurityContext: {}
41+
rbac:
42+
# -- Specifies whether to create the ClusterRole and ClusterRoleBinding.
43+
create: true
4144
# Container security context for Fluent Operator container. Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
4245
securityContext: {}
4346
# Fluent Operator resources. Usually user needn't to adjust these.

0 commit comments

Comments
 (0)