Skip to content

Commit 38d8df7

Browse files
authored
fix(helm): use same scc as olm (#504)
1 parent 0794869 commit 38d8df7

File tree

1 file changed

+1
-48
lines changed

1 file changed

+1
-48
lines changed

deploy/helm/hive-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: hive-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
@@ -196,7 +149,7 @@ rules:
196149
resources:
197150
- securitycontextconstraints
198151
resourceNames:
199-
- hive-scc
152+
- nonroot-v2
200153
verbs:
201154
- use
202155
{{ end }}

0 commit comments

Comments
 (0)