43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
{{- if eq (.Values.global.openshift | toString) "true" }}
|
|
apiVersion: security.openshift.io/v1
|
|
kind: SecurityContextConstraints
|
|
metadata:
|
|
name: {{ include "spiffe-oidc-discovery-provider.fullname" . }}
|
|
readOnlyRootFilesystem: true
|
|
runAsUser:
|
|
type: RunAsAny
|
|
seLinuxContext:
|
|
type: RunAsAny
|
|
supplementalGroups:
|
|
type: RunAsAny
|
|
users:
|
|
- system:serviceaccount:{{ include "spiffe-oidc-discovery-provider.namespace" . }}:{{ include "spiffe-oidc-discovery-provider.serviceAccountName" . }}
|
|
- system:serviceaccount:{{ include "spiffe-oidc-discovery-provider.namespace" . }}:{{ include "spiffe-oidc-discovery-provider.serviceAccountName" . }}-pre-delete
|
|
volumes:
|
|
- configMap
|
|
- csi
|
|
- downwardAPI
|
|
- emptyDir
|
|
- ephemeral
|
|
- hostPath
|
|
- projected
|
|
- secret
|
|
allowedCapabilities: null
|
|
allowHostDirVolumePlugin: true
|
|
allowHostIPC: true
|
|
allowHostNetwork: true
|
|
allowHostPID: true
|
|
allowHostPorts: true
|
|
allowPrivilegeEscalation: true
|
|
allowPrivilegedContainer: true
|
|
defaultAddCapabilities: null
|
|
fsGroup:
|
|
type: RunAsAny
|
|
groups: []
|
|
priority: null
|
|
requiredDropCapabilities: null
|
|
seccompProfiles:
|
|
- '*'
|
|
|
|
{{ end }}
|