Properly specify namesuffix for postgres-service

This commit is contained in:
Waqar Ahmed committed 2021-02-02 15:14:44 +05:00
1 parent 0e1ee81f36
commit 7e1c9080d1
1 file changed
+2 -1
@@ -1,5 +1,6 @@
{{ $ports := list }}
{{ $ports = mustAppend $ports (dict "name" "postgres-tcp" "port" 5432 "targetPort" 5432) }}
{{ $params := . }}
{{ $_ := set $params "service" (dict "type" "ClusterIP" "ports" $ports "nameSuffix" "postgres" ) }}
{{ $_ := set $params "service" (dict "type" "ClusterIP" "ports" $ports ) }}
{{ $_1 := set $params "nameSuffix" "postgres" }}
{{ include "common.classes.service" $params }}