Skip to content

Commit

Permalink
Add possibility to customize image used for pod-deletion-cost annotat…
Browse files Browse the repository at this point in the history
…ion patching

Signed-off-by: Vit Holasek <xvh@seznam.cz>
  • Loading branch information
kyberpunk committed Jun 7, 2024
1 parent 59454e7 commit bdec55c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deployment/helm/ditto/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.7 # chart version is effectively set by release-job
version: 3.5.8 # chart version is effectively set by release-job
appVersion: 3.5.6
keywords:
- iot-chart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,15 @@ spec:
{{- if .Values.rbac.enabled }}
serviceAccountName: {{ template "ditto.serviceAccountName" . }}
{{- end }}
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 12 }}
{{- end }}
restartPolicy: Never
containers:
- name: {{ .Chart.Name }}-pod-deletion-cost-cronjob
image: "public.ecr.aws/h0h9t7p1/alpine-bash-curl-jq:latest"
image: {{ printf "%s:%s" .Values.global.podDeletionCostPatching.image.repository ( default .Values.global.podDeletionCostPatching.image.tag "latest" ) }}
imagePullPolicy: {{ .Values.global.podDeletionCostPatching.image.pullPolicy }}
command:
- /bin/sh
- -c
Expand Down
7 changes: 6 additions & 1 deletion deployment/helm/ditto/templates/hooks/pre-upgrade-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ spec:
{{- if .Values.rbac.enabled }}
serviceAccountName: {{ template "ditto.serviceAccountName" . }}
{{- end }}
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
restartPolicy: Never
containers:
- name: {{ .Chart.Name }}-pod-deletion-cost-pre-upgrade-hook
image: "public.ecr.aws/h0h9t7p1/alpine-bash-curl-jq:latest"
image: {{ printf "%s:%s" .Values.global.podDeletionCostPatching.image.repository ( default .Values.global.podDeletionCostPatching.image.tag "latest" ) }}
imagePullPolicy: {{ .Values.global.podDeletionCostPatching.image.pullPolicy }}
command:
- /bin/sh
- -c
Expand Down
7 changes: 7 additions & 0 deletions deployment/helm/ditto/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@ global:
enabled: true
# annotations defines k8s annotations to add to corresponding jobs
annotations: {}
image:
# repository for the pod-deletion-cost annotation patching job docker image
repository: public.ecr.aws/h0h9t7p1/alpine-bash-curl-jq
# tag for the pod-deletion-cost annotation patching job docker image
tag: latest
# pullPolicy for the pod-deletion-cost annotation patching job docker image
pullPolicy: IfNotPresent


## ----------------------------------------------------------------------------
Expand Down

0 comments on commit bdec55c

Please sign in to comment.