From 6e64e30262d9750344a9f9cbd5741f166f879399 Mon Sep 17 00:00:00 2001 From: w3irdrobot Date: Wed, 31 Dec 2025 15:00:41 -0500 Subject: [PATCH] feat: add image digest as value to pass 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. --- templates/deployment.yaml | 2 ++ values.yaml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 075a772..62c93ac 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -41,6 +41,8 @@ spec: - name: pgdog {{- if .Values.image.name }} image: {{ .Values.image.name }} + {{- else if .Values.image.digest }} + image: "{{ .Values.image.repository }}@{{ .Values.image.digest }}" {{- else }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" {{- end }} diff --git a/values.yaml b/values.yaml index 0e0dc97..1fb432b 100644 --- a/values.yaml +++ b/values.yaml @@ -26,6 +26,9 @@ image: repository: ghcr.io/pgdogdev/pgdog # tag is the Docker image tag (defaults to Chart appVersion if not specified) tag: "" + # digest is the image digest (overrides tag when specified) + # Example: digest: sha256:abc123def456... + digest: "" # pullPolicy specifies when to use cached version of the image. pullPolicy: IfNotPresent # name is the full image name (DEPRECATED: use repository and tag)