mirror of
https://github.com/truenas/charts.git
synced 2026-04-14 02:30:53 +08:00
Update charts to use new common variable for namesuffix
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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,5 +1,5 @@
|
||||
{{ $values := . }}
|
||||
{{ $_ := set $values "nameSuffix" "postgres" }}
|
||||
{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }}
|
||||
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
|
||||
kind: Deployment
|
||||
metadata:
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user