Skip to content

Commit d9aecea

Browse files
authored
fix(helm): use the same scc as olm (#852)
1 parent c483914 commit d9aecea

File tree

1 file changed

+1
-49
lines changed
  • deploy/helm/zookeeper-operator/templates

1 file changed

+1
-49
lines changed

deploy/helm/zookeeper-operator/templates/roles.yaml

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -123,54 +123,6 @@ rules:
123123
- {{ include "operator.name" . }}znodes/status
124124
verbs:
125125
- patch
126-
{{ if .Capabilities.APIVersions.Has "security.openshift.io/v1" }}
127-
---
128-
apiVersion: security.openshift.io/v1
129-
kind: SecurityContextConstraints
130-
metadata:
131-
name: zookeeper-scc
132-
labels:
133-
{{- include "operator.labels" . | nindent 4 }}
134-
annotations:
135-
kubernetes.io/description: |-
136-
zookeeper-scc is derived from hostmount-anyuid. It provides all the features of the
137-
restricted SCC but allows host mounts and any UID by a pod. This is primarily
138-
used by the persistent volume recycler. WARNING: this SCC allows host file
139-
system access as any UID, including UID 0. Grant with caution.
140-
release.openshift.io/create-only: "true"
141-
allowHostDirVolumePlugin: true
142-
allowHostIPC: false
143-
allowHostNetwork: false
144-
allowHostPID: false
145-
allowHostPorts: false
146-
allowPrivilegeEscalation: true
147-
allowPrivilegedContainer: false
148-
allowedCapabilities: null
149-
defaultAddCapabilities: null
150-
fsGroup:
151-
type: RunAsAny
152-
groups: []
153-
priority: null
154-
readOnlyRootFilesystem: false
155-
requiredDropCapabilities:
156-
- MKNOD
157-
runAsUser:
158-
type: RunAsAny
159-
seLinuxContext:
160-
type: MustRunAs
161-
supplementalGroups:
162-
type: RunAsAny
163-
volumes:
164-
- configMap
165-
- downwardAPI
166-
- emptyDir
167-
- hostPath
168-
- nfs
169-
- persistentVolumeClaim
170-
- projected
171-
- secret
172-
- ephemeral
173-
{{ end }}
174126
---
175127
apiVersion: rbac.authorization.k8s.io/v1
176128
kind: ClusterRole
@@ -199,7 +151,7 @@ rules:
199151
resources:
200152
- securitycontextconstraints
201153
resourceNames:
202-
- zookeeper-scc
154+
- nonroot-v2
203155
verbs:
204156
- use
205157
{{ end }}

0 commit comments

Comments
 (0)