From 913123fecf912c13d40be20d78f719953665e11b Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 10 Apr 2023 10:39:15 +0200 Subject: [PATCH] Make it possible to provide pod annotations (#192) Make it possible to provide pod annotations --- moon2/templates/deployment.yaml | 4 ++++ moon2/values.yaml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/moon2/templates/deployment.yaml b/moon2/templates/deployment.yaml index 73bc460..a8ca0c2 100644 --- a/moon2/templates/deployment.yaml +++ b/moon2/templates/deployment.yaml @@ -20,6 +20,10 @@ spec: app: {{ .Release.Name }} template: metadata: + annotations: + {{- range $key, $value := .Values.deployment.podAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} labels: app: {{ .Release.Name }} spec: diff --git a/moon2/values.yaml b/moon2/values.yaml index 897a96d..c77708b 100644 --- a/moon2/values.yaml +++ b/moon2/values.yaml @@ -126,6 +126,11 @@ deployment: ## annotations: {} + ## + ## Custom pod annotations. + ## + podAnnotations: {} + ## ## Total number of Moon pods. Default is 2. ##