Skip to content

Commit b047f46

Browse files
authored
fix(helm): use same scc as olm (#620)
1 parent 8c66984 commit b047f46

File tree

1 file changed

+1
-47
lines changed

1 file changed

+1
-47
lines changed

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

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -101,52 +101,6 @@ rules:
101101
resourceNames:
102102
- {{ include "operator.name" . }}-clusterrole
103103

104-
{{ if .Capabilities.APIVersions.Has "security.openshift.io/v1" }}
105-
---
106-
apiVersion: security.openshift.io/v1
107-
kind: SecurityContextConstraints
108-
metadata:
109-
name: opa-scc
110-
labels:
111-
{{- include "operator.labels" . | nindent 4 }}
112-
annotations:
113-
kubernetes.io/description: |-
114-
This resource is derived from hostmount-anyuid. It provides all the features of the
115-
restricted SCC but allows host mounts and any UID by a pod. This is primarily
116-
used by the persistent volume recycler. WARNING: this SCC allows host file
117-
system access as any UID, including UID 0. Grant with caution.
118-
release.openshift.io/create-only: "true"
119-
allowHostDirVolumePlugin: true
120-
allowHostIPC: false
121-
allowHostNetwork: false
122-
allowHostPID: false
123-
allowHostPorts: false
124-
allowPrivilegeEscalation: true
125-
allowPrivilegedContainer: false
126-
allowedCapabilities: null
127-
defaultAddCapabilities: null
128-
fsGroup:
129-
type: RunAsAny
130-
groups: []
131-
priority: null
132-
readOnlyRootFilesystem: false
133-
runAsUser:
134-
type: RunAsAny
135-
seLinuxContext:
136-
type: MustRunAs
137-
supplementalGroups:
138-
type: RunAsAny
139-
volumes:
140-
- configMap
141-
- downwardAPI
142-
- emptyDir
143-
- hostPath
144-
- nfs
145-
- persistentVolumeClaim
146-
- projected
147-
- secret
148-
- ephemeral
149-
{{ end }}
150104
---
151105
apiVersion: rbac.authorization.k8s.io/v1
152106
kind: ClusterRole
@@ -177,7 +131,7 @@ rules:
177131
resources:
178132
- securitycontextconstraints
179133
resourceNames:
180-
- opa-scc
134+
- nonroot-v2
181135
verbs:
182136
- use
183137
{{ end }}

0 commit comments

Comments
 (0)