Skip to content

Commit ffdd3de

Browse files
authored
Merge pull request #1902 from kyberpunk/added-annotations-for-pod-deletion-cost-patching-jobs
Added option to add custom annotations to podDeletionCostPatching jobs.
2 parents 593323b + bee20af commit ffdd3de

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

deployment/helm/ditto/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ description: |
1616
A digital twin is a virtual, cloud based, representation of his real world counterpart
1717
(real world “Things”, e.g. devices like sensors, smart heating, connected cars, smart grids, EV charging stations etc).
1818
type: application
19-
version: 3.5.4-0 # chart version is effectively set by release-job
19+
version: 3.5.5-0 # chart version is effectively set by release-job
2020
appVersion: 3.5.2
2121
keywords:
2222
- iot-chart

deployment/helm/ditto/templates/hooks/pod-deletion-cost-cron-job.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ spec:
3030
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
3131
app.kubernetes.io/instance: {{ .Release.Name | quote }}
3232
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
33+
{{- with .Values.global.podDeletionCostPatching.annotations }}
34+
annotations:
35+
{{- toYaml . | nindent 12 }}
36+
{{- end }}
3337
spec:
3438
{{- if .Values.rbac.enabled }}
3539
serviceAccountName: {{ template "ditto.serviceAccountName" . }}

deployment/helm/ditto/templates/hooks/pre-upgrade-job.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ spec:
3131
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
3232
app.kubernetes.io/instance: {{ .Release.Name | quote }}
3333
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
34+
{{- with .Values.global.podDeletionCostPatching.annotations }}
35+
annotations:
36+
{{- toYaml . | nindent 8 }}
37+
{{- end }}
3438
spec:
3539
{{- if .Values.rbac.enabled }}
3640
serviceAccountName: {{ template "ditto.serviceAccountName" . }}

deployment/helm/ditto/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ global:
172172
podDeletionCostPatching:
173173
# enabled whether the pod-deletion-cost annotation patching should be enabled
174174
enabled: true
175+
# annotations defines k8s annotations to add to corresponding jobs
176+
annotations: {}
177+
175178

176179
## ----------------------------------------------------------------------------
177180
## dbconfig for mongodb connections

0 commit comments

Comments
 (0)