Skip to content

Commit 087a7da

Browse files
authored
feat(helm/fluent-operator): add option to disable rbac creation (#1556)
Signed-off-by: Gregory Bloquel <[email protected]>
1 parent f3f6248 commit 087a7da

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
@@ -41,6 +41,9 @@ operator:
4141
priorityClassName: ""
4242
# Pod security context for Fluent Operator. Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
4343
podSecurityContext: {}
44+
rbac:
45+
# -- Specifies whether to create the ClusterRole and ClusterRoleBinding.
46+
create: true
4447
# Container security context for Fluent Operator container. Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
4548
securityContext: {}
4649
# Fluent Operator resources. Usually user needn't to adjust these.

0 commit comments

Comments
 (0)