Skip to content

Commit 1cae3ad

Browse files
authored
fix(helm): use same scc as olm (#663)
1 parent 77bed38 commit 1cae3ad

File tree

1 file changed

+1
-48
lines changed

1 file changed

+1
-48
lines changed

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

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -121,53 +121,6 @@ rules:
121121
resourceNames:
122122
- {{ include "operator.name" . }}-clusterrole
123123

124-
{{ if .Capabilities.APIVersions.Has "security.openshift.io/v1" }}
125-
---
126-
apiVersion: security.openshift.io/v1
127-
kind: SecurityContextConstraints
128-
metadata:
129-
name: nifi-scc
130-
labels:
131-
{{- include "operator.labels" . | nindent 4 }}
132-
annotations:
133-
kubernetes.io/description: |-
134-
This resource is derived from hostmount-anyuid. It provides all the features of the
135-
restricted SCC but allows host mounts and any UID by a pod. This is primarily
136-
used by the persistent volume recycler. WARNING: this SCC allows host file
137-
system access as any UID, including UID 0. Grant with caution.
138-
release.openshift.io/create-only: "true"
139-
allowHostDirVolumePlugin: true
140-
allowHostIPC: false
141-
allowHostNetwork: false
142-
allowHostPID: false
143-
allowHostPorts: false
144-
allowPrivilegeEscalation: true
145-
allowPrivilegedContainer: false
146-
allowedCapabilities: null
147-
defaultAddCapabilities: null
148-
fsGroup:
149-
type: RunAsAny
150-
groups: []
151-
priority: null
152-
readOnlyRootFilesystem: false
153-
runAsUser:
154-
type: RunAsAny
155-
seLinuxContext:
156-
type: MustRunAs
157-
supplementalGroups:
158-
type: RunAsAny
159-
volumes:
160-
- configMap
161-
- downwardAPI
162-
- emptyDir
163-
- hostPath
164-
- nfs
165-
- persistentVolumeClaim
166-
- projected
167-
- secret
168-
- ephemeral
169-
- csi
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-
- nifi-scc
152+
- nonroot-v2
200153
verbs:
201154
- use
202155
{{ end }}

0 commit comments

Comments
 (0)