From b9abd0ce904d421f19644eaef5b8afb398ce347d Mon Sep 17 00:00:00 2001 From: Chad Weimer Date: Mon, 12 Dec 2022 14:02:49 -0800 Subject: [PATCH] Add svc.cluster.local for fqdn (#3) * Add svc.cluster.local for fqdn * Version bump --- charts/gomp/Chart.yaml | 2 +- charts/gomp/templates/_helpers.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/gomp/Chart.yaml b/charts/gomp/Chart.yaml index 286559f..9a4428e 100644 --- a/charts/gomp/Chart.yaml +++ b/charts/gomp/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: gomp description: Web-based recipe book type: application -version: 0.2.2 +version: 0.2.3 appVersion: "3.2.0" dependencies: - name: postgresql diff --git a/charts/gomp/templates/_helpers.tpl b/charts/gomp/templates/_helpers.tpl index 4bb9233..5f24551 100644 --- a/charts/gomp/templates/_helpers.tpl +++ b/charts/gomp/templates/_helpers.tpl @@ -80,9 +80,9 @@ Create the host name of the postgresql database {{- if .Values.postgresql.enabled }} {{- $name := default "postgresql" .Values.postgresql.nameOverride }} {{- if .Release.Namespace }} -{{- printf "%s-%s.%s" .Release.Name $name .Release.Namespace | trunc 63 | trimSuffix "-" }} +{{- printf "%s-%s.%s.svc.cluster.local" .Release.Name $name .Release.Namespace | trunc 63 | trimSuffix "-" }} {{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- printf "%s-%s.svc.cluster.local" .Release.Name $name | trunc 63 | trimSuffix "-" }} {{- end }} {{- end }} {{- end }}