Skip to content

Commit

Permalink
feat(vector): Add digest option to vector image
Browse files Browse the repository at this point in the history
Signed-off-by: Tomer Epstein <[email protected]>
  • Loading branch information
tomer-epstein committed Jun 13, 2022
1 parent 5de1026 commit 6e54a0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/vector/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ containers:
securityContext:
{{ toYaml . | indent 6 }}
{{- end }}
{{- if .Values.image.sha }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}@sha256:{{ .Values.image.sha }}"
{{- else }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.command }}
command:
Expand Down
2 changes: 2 additions & 0 deletions charts/vector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ image:
# image.tag -- Vector image tag to use
# @default -- Chart's appVersion
tag: ""
# image.sha -- Vector image sha to use
sha: ""

# replicas -- Set the number of Pods to create
## Valid for Aggregator and Stateless-Aggregator
Expand Down

0 comments on commit 6e54a0a

Please sign in to comment.