Skip to content

Commit

Permalink
Add svc.cluster.local for fqdn (#3)
Browse files Browse the repository at this point in the history
* Add svc.cluster.local for fqdn

* Version bump
  • Loading branch information
chadweimer authored Dec 12, 2022
1 parent 20fca47 commit b9abd0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/gomp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions charts/gomp/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit b9abd0c

Please sign in to comment.