Skip to content

Commit 184a1d1

Browse files
authored
feat: add image digest as value to pass (#51)
There was no way to pass the image digest due to the way the image was constructed in the deployment file. This adds an `image.digest` field for specifying the digest instead of a tag.
1 parent 8ca9c90 commit 184a1d1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ spec:
4141
- name: pgdog
4242
{{- if .Values.image.name }}
4343
image: {{ .Values.image.name }}
44+
{{- else if .Values.image.digest }}
45+
image: "{{ .Values.image.repository }}@{{ .Values.image.digest }}"
4446
{{- else }}
4547
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
4648
{{- end }}

values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ image:
2626
repository: ghcr.io/pgdogdev/pgdog
2727
# tag is the Docker image tag (defaults to Chart appVersion if not specified)
2828
tag: ""
29+
# digest is the image digest (overrides tag when specified)
30+
# Example: digest: sha256:abc123def456...
31+
digest: ""
2932
# pullPolicy specifies when to use cached version of the image.
3033
pullPolicy: IfNotPresent
3134
# name is the full image name (DEPRECATED: use repository and tag)

0 commit comments

Comments
 (0)