Skip to content

Commit eba516d

Browse files
authored
fix(helm): use same scc as olm (#749)
1 parent 11ca1ef commit eba516d

File tree

1 file changed

+1
-48
lines changed

1 file changed

+1
-48
lines changed

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

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -121,53 +121,6 @@ rules:
121121
- bind
122122
resourceNames:
123123
- {{ include "operator.name" . }}-clusterrole
124-
125-
{{ if .Capabilities.APIVersions.Has "security.openshift.io/v1" }}
126-
---
127-
apiVersion: security.openshift.io/v1
128-
kind: SecurityContextConstraints
129-
metadata:
130-
name: kafka-scc
131-
labels:
132-
{{- include "operator.labels" . | nindent 4 }}
133-
annotations:
134-
kubernetes.io/description: |-
135-
This resource is derived from hostmount-anyuid. It provides all the features of the
136-
restricted SCC but allows host mounts and any UID by a pod. This is primarily
137-
used by the persistent volume recycler. WARNING: this SCC allows host file
138-
system access as any UID, including UID 0. Grant with caution.
139-
release.openshift.io/create-only: "true"
140-
allowHostDirVolumePlugin: true
141-
allowHostIPC: false
142-
allowHostNetwork: false
143-
allowHostPID: false
144-
allowHostPorts: false
145-
allowPrivilegeEscalation: true
146-
allowPrivilegedContainer: false
147-
allowedCapabilities: null
148-
defaultAddCapabilities: null
149-
fsGroup:
150-
type: RunAsAny
151-
groups: []
152-
priority: null
153-
readOnlyRootFilesystem: false
154-
runAsUser:
155-
type: RunAsAny
156-
seLinuxContext:
157-
type: MustRunAs
158-
supplementalGroups:
159-
type: RunAsAny
160-
volumes:
161-
- configMap
162-
- downwardAPI
163-
- emptyDir
164-
- hostPath
165-
- nfs
166-
- persistentVolumeClaim
167-
- projected
168-
- secret
169-
- ephemeral
170-
{{ end }}
171124
---
172125
apiVersion: rbac.authorization.k8s.io/v1
173126
kind: ClusterRole
@@ -197,7 +150,7 @@ rules:
197150
resources:
198151
- securitycontextconstraints
199152
resourceNames:
200-
- kafka-scc
153+
- nonroot-v2
201154
verbs:
202155
- use
203156
{{ end }}

0 commit comments

Comments
 (0)