Skip to content

Commit

Permalink
Merge pull request #44 from Reidsy/reidsy/image-digest
Browse files Browse the repository at this point in the history
Allow specifying an image digest to deploy
  • Loading branch information
wangxiaoyou1993 committed Feb 23, 2024
2 parents 1aee829 + 0edaa9f commit e385750
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/mageai/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
{{- if .Values.image.digest }}
image: "{{ .Values.image.repository }}@{{ .Values.image.digest }}"
{{- else }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
Expand Down

0 comments on commit e385750

Please sign in to comment.