Update charts to use new common variable for namesuffix

This commit is contained in:
Waqar Ahmed
2021-01-31 16:32:18 +05:00
parent 0ab705bc91
commit 9ff909446a
4 changed files with 9 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
{{ $postgres_values := . }}
{{ $_ := set $postgres_values "nameSuffix" "postgres" }}
{{ $postgres_values := (. | mustDeepCopy) }}
{{ $_ := set $postgres_values "common" (dict "nameSuffix" "postgres") }}
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
kind: Deployment
metadata:

View File

@@ -1,6 +1,6 @@
{{- if .Values.ixChartContext.isUpgrade -}}
{{ $values := . }}
{{ $_ := set $values "nameSuffix" "postgres" }}
{{ $values := (. | mustDeepCopy) }}
{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }}
apiVersion: batch/v1
kind: Job
metadata:

View File

@@ -1,5 +1,5 @@
{{ $values := . }}
{{ $_ := set $values "nameSuffix" "postgres" }}
{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }}
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
kind: Deployment
metadata:

View File

@@ -1,6 +1,6 @@
{{ $ports := list }}
{{ $ports = mustAppend $ports (dict "name" "postgres-tcp" "port" 5432 "targetPort" 5432) }}
{{ $params := . }}
{{ $_ := set $params "commonService" (dict "type" "ClusterIP" "ports" $ports ) }}
{{ $_1 := set $params "nameSuffix" "postgres" }}
{{ include "common.classes.service" $params }}
{{ $values := (. | mustDeepCopy) }}
{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }}
{{ $_1 := set $values "commonService" (dict "type" "ClusterIP" "ports" $ports ) }}
{{ include "common.classes.service" $values }}