change how the cluster name is generated and used

This commit is contained in:
2024-04-13 03:24:58 -06:00
parent e5e2812ed5
commit 585d39657a
8 changed files with 45 additions and 46 deletions

View File

@@ -1,7 +1,7 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: "postgresql-{{ include "cluster.fullname" . }}-cluster"
name: {{ include "cluster.name" . }}-cluster
namespace: {{ .Release.Namespace }}
{{- with .Values.cluster.annotations }}
annotations: