mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 16:09:08 +00:00
05594cc703
* copying submodule charts instead of symlink * fix linting for provisioner chart * fix linting * removing trailing space * linting fixes
36 lines
806 B
YAML
36 lines
806 B
YAML
{{- if .Values.common.podSecurityPolicy -}}
|
|
apiVersion: policy/v1beta1
|
|
kind: PodSecurityPolicy
|
|
metadata:
|
|
name: local-storage-provisioner-pod-security-policy
|
|
labels:
|
|
heritage: {{ .Release.Service | quote }}
|
|
release: {{ .Release.Name | quote }}
|
|
chart: {{ replace "+" "_" .Chart.Version | printf "%s-%s" .Chart.Name }}
|
|
spec:
|
|
allowPrivilegeEscalation: true
|
|
allowedHostPaths:
|
|
- pathPrefix: /dev
|
|
{{- range $classConfig := .Values.classes }}
|
|
- pathPrefix: {{ $classConfig.hostDir }}
|
|
{{- end }}
|
|
fsGroup:
|
|
rule: RunAsAny
|
|
privileged: true
|
|
requiredDropCapabilities:
|
|
- ALL
|
|
runAsUser:
|
|
ranges:
|
|
- max: 65535
|
|
min: 1
|
|
rule: MustRunAs
|
|
seLinux:
|
|
rule: RunAsAny
|
|
supplementalGroups:
|
|
rule: RunAsAny
|
|
volumes:
|
|
- configMap
|
|
- secret
|
|
- hostPath
|
|
{{- end }}
|