Explorar o código

Update charts to use new common variable for namesuffix

Waqar Ahmed %!s(int64=4) %!d(string=hai) anos
pai
achega
9ff909446a

+ 2 - 2
test/nextcloud/1.1.0/templates/deployment.yaml

@@ -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:

+ 2 - 2
test/nextcloud/1.1.0/templates/nuke-deployments-hook.yaml

@@ -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:

+ 1 - 1
test/nextcloud/1.1.0/templates/postgres-deployment.yaml

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

+ 4 - 4
test/nextcloud/1.1.0/templates/postgres-service.yaml

@@ -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 }}