From 43d27e2f2d493f9ec9f7e33979a271cc8d7990a2 Mon Sep 17 00:00:00 2001 From: octane100 <2571361+octane100@users.noreply.github.com> Date: Tue, 20 Jan 2026 15:04:26 +0000 Subject: [PATCH 1/2] fix(plugin-barman-cloud): add missing podAnnotations in deployment template (#786) Signed-off-by: octane100 <2571361+octane100@users.noreply.github.com> --- charts/plugin-barman-cloud/templates/deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/plugin-barman-cloud/templates/deployment.yaml b/charts/plugin-barman-cloud/templates/deployment.yaml index f324ac1573..3f4a78c695 100644 --- a/charts/plugin-barman-cloud/templates/deployment.yaml +++ b/charts/plugin-barman-cloud/templates/deployment.yaml @@ -38,6 +38,10 @@ spec: type: Recreate template: metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- tpl (toYaml .) $ | nindent 8 }} + {{- end }} labels: {{- include "plugin-barman-cloud.selectorLabels" . | nindent 8 }} {{- with .Values.podLabels }} From 7473b21a11ca54f4f77c5556ad1f0862a8e008a4 Mon Sep 17 00:00:00 2001 From: Danish Date: Wed, 7 Oct 2026 12:41:22 +0530 Subject: [PATCH 2/2] test(plugin-barman-cloud): add test Signed-off-by: Danish --- .../simple-deployment/03-pod_annotations-assert.yaml | 10 ++++++++++ .../test/simple-deployment/03-pod_annotations.yaml | 10 ++++++++++ .../test/simple-deployment/chainsaw-test.yaml | 12 ++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 charts/plugin-barman-cloud/test/simple-deployment/03-pod_annotations-assert.yaml create mode 100644 charts/plugin-barman-cloud/test/simple-deployment/03-pod_annotations.yaml diff --git a/charts/plugin-barman-cloud/test/simple-deployment/03-pod_annotations-assert.yaml b/charts/plugin-barman-cloud/test/simple-deployment/03-pod_annotations-assert.yaml new file mode 100644 index 0000000000..93bfa8d0a0 --- /dev/null +++ b/charts/plugin-barman-cloud/test/simple-deployment/03-pod_annotations-assert.yaml @@ -0,0 +1,10 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: plugin-barman-cloud +spec: + template: + metadata: + annotations: + example.com/static: "static-value" + example.com/release: "plugin-barman-cloud" diff --git a/charts/plugin-barman-cloud/test/simple-deployment/03-pod_annotations.yaml b/charts/plugin-barman-cloud/test/simple-deployment/03-pod_annotations.yaml new file mode 100644 index 0000000000..ec6a51580e --- /dev/null +++ b/charts/plugin-barman-cloud/test/simple-deployment/03-pod_annotations.yaml @@ -0,0 +1,10 @@ +podAnnotations: + example.com/static: "static-value" + example.com/release: "{{ .Release.Name }}" +resources: + limits: + cpu: 100m + memory: 200Mi + requests: + cpu: 100m + memory: 100Mi diff --git a/charts/plugin-barman-cloud/test/simple-deployment/chainsaw-test.yaml b/charts/plugin-barman-cloud/test/simple-deployment/chainsaw-test.yaml index 5c303c07c7..2c0ea77ee9 100644 --- a/charts/plugin-barman-cloud/test/simple-deployment/chainsaw-test.yaml +++ b/charts/plugin-barman-cloud/test/simple-deployment/chainsaw-test.yaml @@ -35,6 +35,18 @@ spec: plugin-barman-cloud ../../ - assert: file: ./02-loglevel_override-assert.yaml + - name: Set pod annotations + try: + - script: + content: | + helm upgrade \ + --install \ + --namespace $NAMESPACE \ + --values ./03-pod_annotations.yaml \ + --wait \ + plugin-barman-cloud ../../ + - assert: + file: ./03-pod_annotations-assert.yaml - name: Cleanup try: - script: