From 60c8dea76329efa4cd18815b2ddd89199a32a8c2 Mon Sep 17 00:00:00 2001 From: Hauke Brandt Date: Thu, 11 Aug 2022 10:16:04 +0200 Subject: [PATCH 1/2] Added possibility to set annotations in deployment template --- static_site/templates/deployment.yaml | 4 ++++ static_site/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/static_site/templates/deployment.yaml b/static_site/templates/deployment.yaml index a979f43..b236d37 100644 --- a/static_site/templates/deployment.yaml +++ b/static_site/templates/deployment.yaml @@ -18,6 +18,10 @@ spec: metadata: labels: app: {{ .Values.name }} + annotations: + {{- range $key, $value := .Values.deployment.template.annotations }} + {{ $key }}: {{ $value }} + {{- end }} spec: containers: - name: {{ .Values.name }} diff --git a/static_site/values.yaml b/static_site/values.yaml index 48450e9..9e5b73a 100644 --- a/static_site/values.yaml +++ b/static_site/values.yaml @@ -6,6 +6,8 @@ service: - protocol: TCP port: 80 deployment: + template: + annotations: {} containers: imagePullPolicy: "IfNotPresent" resources: From dfe3672c2df3862d47376c9003e203a5b212d9ac Mon Sep 17 00:00:00 2001 From: Hauke Brandt Date: Thu, 11 Aug 2022 10:16:40 +0200 Subject: [PATCH 2/2] Increased chart version --- static_site/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static_site/Chart.yaml b/static_site/Chart.yaml index 4f622b0..f6aedf4 100644 --- a/static_site/Chart.yaml +++ b/static_site/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v1 name: static_site description: Static site Configuration -version: 0.0.1 +version: 0.1.1