Skip to content

Commit

Permalink
Allow specifying specific image digest to run
Browse files Browse the repository at this point in the history
  • Loading branch information
multimac committed Jul 2, 2021
1 parent c7c28f3 commit ed1be6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chart/chaoskube/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
serviceAccountName: {{ include "chaoskube.serviceAccountName" . }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ .Values.image.repository }}:{{ .Values.image.digest | default .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.chaoskube.env }}
env:
Expand Down
2 changes: 2 additions & 0 deletions chart/chaoskube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ replicaCount: 1
image:
repository: quay.io/linki/chaoskube
pullPolicy: IfNotPresent
# Provide digest of specific image to run
digest: ""
# Overrides the image tag whose default is the chart appVersion.
tag: ""

Expand Down

0 comments on commit ed1be6c

Please sign in to comment.