rancher-charts/packages/rancher-grafana/generated-changes/patch/templates/podsecuritypolicy.yaml.patch

20 lines
825 B
Diff
Raw Normal View History

--- 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