mirror of https://git.rancher.io/charts
20 lines
825 B
Diff
20 lines
825 B
Diff
--- charts-original/templates/podsecuritypolicy.yaml
|
|
+++ charts/templates/podsecuritypolicy.yaml
|
|
@@ -6,13 +6,9 @@
|
|
namespace: {{ template "grafana.namespace" . }}
|
|
labels:
|
|
{{- include "grafana.labels" . | nindent 4 }}
|
|
- annotations:
|
|
- seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'docker/default,runtime/default'
|
|
- seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default'
|
|
- {{- if .Values.rbac.pspUseAppArmor }}
|
|
- apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default'
|
|
- apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default'
|
|
- {{- end }}
|
|
+{{- if .Values.rbac.pspAnnotations }}
|
|
+ annotations: {{ toYaml .Values.rbac.pspAnnotations | nindent 4 }}
|
|
+{{- end }}
|
|
spec:
|
|
privileged: false
|
|
allowPrivilegeEscalation: false
|