From fc27827a3d40cd82645ec31bd4a328de1dbc0a6a Mon Sep 17 00:00:00 2001 From: rafalw82 Date: Wed, 20 Dec 2023 09:07:50 +0100 Subject: [PATCH] [ISSUE-197] crd job annotation --- charts/csi-baremetal-operator/templates/pre-upgrade-crds.yaml | 4 ++++ charts/csi-baremetal-operator/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/charts/csi-baremetal-operator/templates/pre-upgrade-crds.yaml b/charts/csi-baremetal-operator/templates/pre-upgrade-crds.yaml index 7a7fe1b4..941bcefd 100644 --- a/charts/csi-baremetal-operator/templates/pre-upgrade-crds.yaml +++ b/charts/csi-baremetal-operator/templates/pre-upgrade-crds.yaml @@ -103,6 +103,10 @@ spec: activeDeadlineSeconds: 300 template: metadata: + {{- with .Values.preUpgradeCRDsHooks.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} name: "{{.Release.Namespace}}-{{.Release.Name}}-csi-baremetal-pre-crds-job" spec: serviceAccountName: "{{.Release.Namespace}}-{{.Release.Name}}-csi-baremetal-pre-crds-sa" diff --git a/charts/csi-baremetal-operator/values.yaml b/charts/csi-baremetal-operator/values.yaml index 10d565a4..2ff788f0 100644 --- a/charts/csi-baremetal-operator/values.yaml +++ b/charts/csi-baremetal-operator/values.yaml @@ -40,3 +40,5 @@ preUpgradeCRDsHooks: requests: cpu: 100m memory: 20Mi + + podAnnotations: {} \ No newline at end of file