Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to customize image used for pod-deletion-cost annotation patching job #1954

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading