add major version value

This commit is contained in:
2024-04-13 22:58:01 -06:00
parent 55e63c2c72
commit 7803519d04
3 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2
name: postgres-cluster
version: 2.1.0
version: 2.2.0
description: Chart for cloudnative-pg cluster
keywords:
- database

View File

@@ -5,8 +5,7 @@ Expand the name of the chart.
{{- if .Values.nameOverride }}
{{- .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{ $version := split "." .Values.cluster.image.tag }}
{{- printf "postgresql-%s-%s" $version._0 .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- printf "postgresql-%s-%s" .Values.cluster.image.majorVersion .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- end }}
{{- end }}

View File

@@ -24,6 +24,7 @@ cluster:
image:
repository: ghcr.io/cloudnative-pg/postgresql
tag: "16.2"
majorVersion: "16"
pullPolicy: IfNotPresent
# The UID and GID of the postgres user inside the image