Skip to content

Commit 3c6d03c

Browse files
authored
fix(helm): use same scc as olm (#527)
1 parent 49a0e06 commit 3c6d03c

File tree

1 file changed

+1
-50
lines changed

1 file changed

+1
-50
lines changed

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

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

0 commit comments

Comments
 (0)