diff --git a/deployment/helm/ditto/Chart.yaml b/deployment/helm/ditto/Chart.yaml index 492ca07046..29d0486e07 100644 --- a/deployment/helm/ditto/Chart.yaml +++ b/deployment/helm/ditto/Chart.yaml @@ -16,7 +16,7 @@ description: | A digital twin is a virtual, cloud based, representation of his real world counterpart (real world “Things”, e.g. devices like sensors, smart heating, connected cars, smart grids, EV charging stations etc). type: application -version: 3.5.4-0 # chart version is effectively set by release-job +version: 3.5.5-0 # chart version is effectively set by release-job appVersion: 3.5.2 keywords: - iot-chart diff --git a/deployment/helm/ditto/templates/hooks/pod-deletion-cost-cron-job.yaml b/deployment/helm/ditto/templates/hooks/pod-deletion-cost-cron-job.yaml index 823654ce13..77436b0b6b 100644 --- a/deployment/helm/ditto/templates/hooks/pod-deletion-cost-cron-job.yaml +++ b/deployment/helm/ditto/templates/hooks/pod-deletion-cost-cron-job.yaml @@ -30,6 +30,10 @@ spec: app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/instance: {{ .Release.Name | quote }} helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + {{- with .Values.global.podDeletionCostPatching.annotations }} + annotations: + {{- toYaml . | nindent 12 }} + {{- end }} spec: {{- if .Values.rbac.enabled }} serviceAccountName: {{ template "ditto.serviceAccountName" . }} diff --git a/deployment/helm/ditto/templates/hooks/pre-upgrade-job.yaml b/deployment/helm/ditto/templates/hooks/pre-upgrade-job.yaml index f3d4f81b13..fe27a51b27 100644 --- a/deployment/helm/ditto/templates/hooks/pre-upgrade-job.yaml +++ b/deployment/helm/ditto/templates/hooks/pre-upgrade-job.yaml @@ -31,6 +31,10 @@ spec: app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/instance: {{ .Release.Name | quote }} helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + {{- with .Values.global.podDeletionCostPatching.annotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} spec: {{- if .Values.rbac.enabled }} serviceAccountName: {{ template "ditto.serviceAccountName" . }} diff --git a/deployment/helm/ditto/values.yaml b/deployment/helm/ditto/values.yaml index effab8d290..4de69f2f5e 100644 --- a/deployment/helm/ditto/values.yaml +++ b/deployment/helm/ditto/values.yaml @@ -172,6 +172,9 @@ global: podDeletionCostPatching: # enabled whether the pod-deletion-cost annotation patching should be enabled enabled: true + # annotations defines k8s annotations to add to corresponding jobs + annotations: {} + ## ---------------------------------------------------------------------------- ## dbconfig for mongodb connections