Files
minio/helm/silo/templates/securitycontextconstraints.yaml
T
Trey Dockendorf 2b96153a61 [helm] Improvements to Helm chart
* Support releasing on “chart-<version>” tags, fixes #223
* Add commonLabels that are used on all resources
* Support templated values in numerous locations
* Add oidc.existingConfigMapName and oidc.existingConfigUrlKey
* Add networkPolicy.allowFrom
* support targetLabels on ServiceMonitor
* Support Probe relabelingConfigs
* Allow postJob default containerSecurityContext
* Allow policies to be templated string
* Set MINIO_BROWSER_REDIRECT_URL
* Ensure job egress only enabled when networkPolicy.egress.enabled set

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
2026-11-24 16:34:30 -05:00

49 lines
1.2 KiB
YAML

{{- if and .Values.securityContext.enabled .Values.persistence.enabled (.Capabilities.APIVersions.Has "security.openshift.io/v1") }}
apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
name: {{ template "silo.fullname" . }}
labels:
app: {{ template "silo.name" . }}
chart: {{ template "silo.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.commonLabels }}
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
allowHostDirVolumePlugin: false
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegeEscalation: true
allowPrivilegedContainer: false
allowedCapabilities: []
readOnlyRootFilesystem: false
defaultAddCapabilities: []
requiredDropCapabilities:
- KILL
- MKNOD
- SETUID
- SETGID
fsGroup:
type: MustRunAs
ranges:
- max: {{ .Values.securityContext.fsGroup }}
min: {{ .Values.securityContext.fsGroup }}
runAsUser:
type: MustRunAs
uid: {{ .Values.securityContext.runAsUser }}
seLinuxContext:
type: MustRunAs
supplementalGroups:
type: RunAsAny
volumes:
- configMap
- downwardAPI
- emptyDir
- persistentVolumeClaim
- projected
- secret
{{- end }}