Skip to content

Commit 8549797

Browse files
authored
Merge pull request #1954 from kyberpunk/custom-image-for-pod-deletion-cost-annotation-patching-job
Add possibility to customize image used for pod-deletion-cost annotation patching job
2 parents 59454e7 + bdec55c commit 8549797

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

deployment/helm/ditto/Chart.yaml

+1-1
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.7 # chart version is effectively set by release-job
19+
version: 3.5.8 # chart version is effectively set by release-job
2020
appVersion: 3.5.6
2121
keywords:
2222
- iot-chart

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,15 @@ spec:
3838
{{- if .Values.rbac.enabled }}
3939
serviceAccountName: {{ template "ditto.serviceAccountName" . }}
4040
{{- end }}
41+
{{- with .Values.global.imagePullSecrets }}
42+
imagePullSecrets:
43+
{{- toYaml . | nindent 12 }}
44+
{{- end }}
4145
restartPolicy: Never
4246
containers:
4347
- name: {{ .Chart.Name }}-pod-deletion-cost-cronjob
44-
image: "public.ecr.aws/h0h9t7p1/alpine-bash-curl-jq:latest"
48+
image: {{ printf "%s:%s" .Values.global.podDeletionCostPatching.image.repository ( default .Values.global.podDeletionCostPatching.image.tag "latest" ) }}
49+
imagePullPolicy: {{ .Values.global.podDeletionCostPatching.image.pullPolicy }}
4550
command:
4651
- /bin/sh
4752
- -c

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,15 @@ spec:
3939
{{- if .Values.rbac.enabled }}
4040
serviceAccountName: {{ template "ditto.serviceAccountName" . }}
4141
{{- end }}
42+
{{- with .Values.global.imagePullSecrets }}
43+
imagePullSecrets:
44+
{{- toYaml . | nindent 8 }}
45+
{{- end }}
4246
restartPolicy: Never
4347
containers:
4448
- name: {{ .Chart.Name }}-pod-deletion-cost-pre-upgrade-hook
45-
image: "public.ecr.aws/h0h9t7p1/alpine-bash-curl-jq:latest"
49+
image: {{ printf "%s:%s" .Values.global.podDeletionCostPatching.image.repository ( default .Values.global.podDeletionCostPatching.image.tag "latest" ) }}
50+
imagePullPolicy: {{ .Values.global.podDeletionCostPatching.image.pullPolicy }}
4651
command:
4752
- /bin/sh
4853
- -c

deployment/helm/ditto/values.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,13 @@ global:
181181
enabled: true
182182
# annotations defines k8s annotations to add to corresponding jobs
183183
annotations: {}
184+
image:
185+
# repository for the pod-deletion-cost annotation patching job docker image
186+
repository: public.ecr.aws/h0h9t7p1/alpine-bash-curl-jq
187+
# tag for the pod-deletion-cost annotation patching job docker image
188+
tag: latest
189+
# pullPolicy for the pod-deletion-cost annotation patching job docker image
190+
pullPolicy: IfNotPresent
184191

185192

186193
## ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)