Skip to content

Commit

Permalink
revert criteo specifics about rbac deployment
Browse files Browse the repository at this point in the history
current approach is too invasive and not fully compatible
with one operator per namespace deployment.
  • Loading branch information
Peter Goron authored and jlcCriteo committed Mar 1, 2024
1 parent 269a5e2 commit 0748e4f
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions deploy/charts/rook-ceph/templates/cluster-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ serviceaccounts
clusterrolebindings
*/}}
---
{{- if .Values.rbacClusterEnable }}
{{ include "library.cluster.clusterrolebindings" . }}
{{- end }}

{{- if .Values.pspEnable }}
{{ include "library.cluster.psp.rolebindings" . }}
Expand Down
2 changes: 1 addition & 1 deletion deploy/charts/rook-ceph/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.rbacEnable .Values.rbacClusterEnable }}
{{- if .Values.rbacEnable }}
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down
2 changes: 1 addition & 1 deletion deploy/charts/rook-ceph/templates/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.rbacEnable .Values.rbacClusterEnable }}
{{- if .Values.rbacEnable }}
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down
2 changes: 1 addition & 1 deletion deploy/charts/rook-ceph/templates/psp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ spec:
# port for CSIAddons
- min: 9070
max: 9070
{{- if and .Values.rbacEnable .Values.rbacClusterEnable }}
{{- if .Values.rbacEnable }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down
3 changes: 0 additions & 3 deletions deploy/charts/rook-ceph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ logLevel: INFO
# -- If true, create & use RBAC resources
rbacEnable: true

# -- If true, create cluster-wide RBAC resources
rbacClusterEnable: true

# -- If true, create & use PSP resources
pspEnable: false

Expand Down

0 comments on commit 0748e4f

Please sign in to comment.