From fb73c590e47787f6595c3491be8049368cad36f7 Mon Sep 17 00:00:00 2001 From: w3irdrobot Date: Wed, 31 Dec 2025 14:32:12 -0500 Subject: [PATCH] feat: add appVersion to Chart.yaml The application version being deployed is usually kept in the Chart.yaml and used as the default image.tag version is one is not supplied. This adds the appVersion to the Chart.yaml and updates the tag of the Docker image to use this appVersion by default. --- Chart.yaml | 1 + templates/deployment.yaml | 2 +- values.yaml | 6 ++---- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index ec57cd9..dec49b4 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,3 +1,4 @@ apiVersion: v1 name: pgdog version: v0.28 +appVersion: "0.1.21" diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 1d2af42..075a772 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -42,7 +42,7 @@ spec: {{- if .Values.image.name }} image: {{ .Values.image.name }} {{- else }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" {{- end }} imagePullPolicy: {{ .Values.image.pullPolicy }} command: ["/usr/local/bin/pgdog"] diff --git a/values.yaml b/values.yaml index 9dc9e96..0e0dc97 100644 --- a/values.yaml +++ b/values.yaml @@ -24,8 +24,8 @@ podAnnotations: {} image: # repository is the Docker image repository repository: ghcr.io/pgdogdev/pgdog - # tag is the Docker image tag (defaults to "latest" if not specified) - tag: "latest" + # tag is the Docker image tag (defaults to Chart appVersion if not specified) + tag: "" # pullPolicy specifies when to use cached version of the image. pullPolicy: IfNotPresent # name is the full image name (DEPRECATED: use repository and tag) @@ -164,7 +164,6 @@ service: # Valid values: "internet-facing" or "internal" scheme: "internal" - # nodeSelector allows scheduling pods on nodes with specific labels nodeSelector: {} @@ -375,7 +374,6 @@ queryStats: queryPlansCache: 100 maxErrors: 100 maxErrorAge: 300000 - # LSN check configuration for replication failover auto mode (in milliseconds) # See: https://docs.pgdog.dev/features/load-balancer/replication-failover/ # lsnCheckDelay: 0 # Set to 0 to start LSN monitoring immediately