From 5f704f85b5ff8a25a1036e3e7f5ae9a068f9f62d Mon Sep 17 00:00:00 2001 From: Lionel H Date: Wed, 5 Apr 2023 00:22:37 +0200 Subject: [PATCH] templates: fix PodSecurityPolicy missing label key labels key were missing resulting in an error while trying to deploy the chart with PSP enabled: ``` Helm upgrade failed: YAML parse error on democratic-csi/templates/psp.yaml: error converting YAML to JSON: yaml: line 5: mapping values are not allowed in this context... ``` Signed-off-by: Lionel H --- stable/democratic-csi/Chart.yaml | 2 +- stable/democratic-csi/templates/psp.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/stable/democratic-csi/Chart.yaml b/stable/democratic-csi/Chart.yaml index 84322a1..436b288 100644 --- a/stable/democratic-csi/Chart.yaml +++ b/stable/democratic-csi/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v1 appVersion: "1.0" description: csi storage for container orchestration systems name: democratic-csi -version: 0.13.6 +version: 0.13.7 diff --git a/stable/democratic-csi/templates/psp.yaml b/stable/democratic-csi/templates/psp.yaml index 9a64f9b..a03ce62 100644 --- a/stable/democratic-csi/templates/psp.yaml +++ b/stable/democratic-csi/templates/psp.yaml @@ -3,6 +3,7 @@ apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: name: {{ include "democratic-csi.fullname" . }}-psp + labels: app.kubernetes.io/name: {{ include "democratic-csi.name" . }} helm.sh/chart: {{ include "democratic-csi.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} @@ -75,4 +76,4 @@ subjects: - kind: ServiceAccount name: default namespace: {{ .Release.Namespace }} -{{- end }} \ No newline at end of file +{{- end }}