From c8ae94a062ba17623dd4b903da773e71bfa532a2 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 9 Nov 2021 12:39:36 +0100 Subject: [PATCH] allow to set pod annotations (#24) --- helm/templates/deployment.yaml | 3 +++ helm/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index b10d2bf..3bb3939 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -24,6 +24,9 @@ spec: metadata: annotations: checksum/config: {{ include "owsec.config" . | sha256sum }} + {{- with .Values.podAnnotations }} + {{- toYaml . | nindent 8 }} + {{- end }} labels: app.kubernetes.io/name: {{ include "owsec.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} diff --git a/helm/values.yaml b/helm/values.yaml index a9e10cf..19c1844 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -95,6 +95,8 @@ tolerations: [] affinity: {} +podAnnotations: {} + persistence: enabled: true # storageClassName: "-"