diff --git a/charts/temporal/templates/admintools-deployment.yaml b/charts/temporal/templates/admintools-deployment.yaml index 1704bc6c..6757482b 100644 --- a/charts/temporal/templates/admintools-deployment.yaml +++ b/charts/temporal/templates/admintools-deployment.yaml @@ -2,26 +2,26 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: {{ include "temporal.componentname" (list . "admintools") }} + name: {{ include "temporal.componentname" (list $ "admintools") }} labels: - {{- include "temporal.resourceLabels" (list . "admintools" "") | nindent 4 }} + {{- include "temporal.resourceLabels" (list $ "admintools" "") | nindent 4 }} spec: replicas: 1 selector: matchLabels: - app.kubernetes.io/name: {{ include "temporal.name" . }} + app.kubernetes.io/name: {{ include "temporal.name" $ }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: admintools template: metadata: labels: - {{- include "temporal.resourceLabels" (list . "admintools" "pod") | nindent 8 }} + {{- include "temporal.resourceLabels" (list $ "admintools" "pod") | nindent 8 }} {{- with $.Values.admintools.podAnnotations }} annotations: {{- toYaml . | nindent 8 }} {{- end }} spec: - {{ include "temporal.serviceAccount" . }} + {{ include "temporal.serviceAccount" $ }} containers: - name: admin-tools image: "{{ .Values.admintools.image.repository }}:{{ .Values.admintools.image.tag }}" @@ -33,9 +33,9 @@ spec: env: # TEMPORAL_CLI_ADDRESS is deprecated, use TEMPORAL_ADDRESS instead - name: TEMPORAL_CLI_ADDRESS - value: {{ include "temporal.fullname" . }}-frontend:{{ .Values.server.frontend.service.port }} + value: {{ include "temporal.fullname" $ }}-frontend:{{ .Values.server.frontend.service.port }} - name: TEMPORAL_ADDRESS - value: {{ include "temporal.fullname" . }}-frontend:{{ .Values.server.frontend.service.port }} + value: {{ include "temporal.fullname" $ }}-frontend:{{ .Values.server.frontend.service.port }} {{- if .Values.admintools.additionalEnv }} {{- toYaml .Values.admintools.additionalEnv | nindent 12 }} {{- end }} diff --git a/charts/temporal/templates/admintools-service.yaml b/charts/temporal/templates/admintools-service.yaml index 2a3f8566..31a4c9f7 100644 --- a/charts/temporal/templates/admintools-service.yaml +++ b/charts/temporal/templates/admintools-service.yaml @@ -2,9 +2,9 @@ apiVersion: v1 kind: Service metadata: - name: {{ include "temporal.componentname" (list . "admintools") }} + name: {{ include "temporal.componentname" (list $ "admintools") }} labels: - {{- include "temporal.resourceLabels" (list . "admintools" "") | nindent 4 }} + {{- include "temporal.resourceLabels" (list $ "admintools" "") | nindent 4 }} spec: type: ClusterIP ports: @@ -14,7 +14,7 @@ spec: name: ssh selector: - app.kubernetes.io/name: {{ include "temporal.name" . }} + app.kubernetes.io/name: {{ include "temporal.name" $ }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: admintools {{- end }} diff --git a/charts/temporal/templates/frontend-ingress.yaml b/charts/temporal/templates/frontend-ingress.yaml index 559c7c36..067f78b3 100644 --- a/charts/temporal/templates/frontend-ingress.yaml +++ b/charts/temporal/templates/frontend-ingress.yaml @@ -8,9 +8,9 @@ apiVersion: extensions/v1beta1 {{- end }} kind: Ingress metadata: - name: {{ include "temporal.componentname" (list . "frontend") }} + name: {{ include "temporal.componentname" (list $ "frontend") }} labels: - {{- include "temporal.resourceLabels" (list . "frontend" "") | nindent 4 }} + {{- include "temporal.resourceLabels" (list $ "frontend" "") | nindent 4 }} {{- with .Values.server.frontend.ingress.annotations }} annotations: {{ toYaml . | indent 4 }} diff --git a/charts/temporal/templates/server-configmap.yaml b/charts/temporal/templates/server-configmap.yaml index ae0f2924..0de45347 100644 --- a/charts/temporal/templates/server-configmap.yaml +++ b/charts/temporal/templates/server-configmap.yaml @@ -6,7 +6,7 @@ kind: ConfigMap metadata: name: "{{ include "temporal.fullname" $ }}-config" labels: - {{- include "temporal.resourceLabels" (list . "" "") | nindent 4 }} + {{- include "temporal.resourceLabels" (list $ "" "") | nindent 4 }} data: config_template.yaml: |- log: diff --git a/charts/temporal/templates/server-dynamicconfigmap.yaml b/charts/temporal/templates/server-dynamicconfigmap.yaml index 94c56886..df8b5914 100644 --- a/charts/temporal/templates/server-dynamicconfigmap.yaml +++ b/charts/temporal/templates/server-dynamicconfigmap.yaml @@ -2,9 +2,9 @@ apiVersion: v1 kind: ConfigMap metadata: - name: "{{ include "temporal.fullname" . }}-dynamic-config" + name: "{{ include "temporal.fullname" $ }}-dynamic-config" labels: - {{- include "temporal.resourceLabels" (list . "" "") | nindent 4 }} + {{- include "temporal.resourceLabels" (list $ "" "") | nindent 4 }} data: dynamic_config.yaml: |- {{- if $.Values.server.dynamicConfig }} diff --git a/charts/temporal/templates/server-job.yaml b/charts/temporal/templates/server-job.yaml index b96e15b5..81194016 100644 --- a/charts/temporal/templates/server-job.yaml +++ b/charts/temporal/templates/server-job.yaml @@ -2,16 +2,16 @@ apiVersion: batch/v1 kind: Job metadata: - name: {{ include "temporal.componentname" (list . "schema") }} + name: {{ include "temporal.componentname" (list $ "schema") }} labels: - {{- include "temporal.resourceLabels" (list . "database" "") | nindent 4 }} + {{- include "temporal.resourceLabels" (list $ "database" "") | nindent 4 }} spec: backoffLimit: {{ $.Values.schema.setup.backoffLimit }} template: metadata: - name: {{ include "temporal.componentname" (list . "schema") }} + name: {{ include "temporal.componentname" (list $ "schema") }} labels: - {{- include "temporal.resourceLabels" (list . "database" "") | nindent 8 }} + {{- include "temporal.resourceLabels" (list $ "database" "") | nindent 8 }} {{- with $.Values.schema.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} @@ -20,7 +20,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: - {{- include "temporal.serviceAccount" . }} + {{- include "temporal.serviceAccount" $ }} restartPolicy: OnFailure initContainers: {{- if $.Values.cassandra.enabled }} diff --git a/charts/temporal/templates/server-pdb.yaml b/charts/temporal/templates/server-pdb.yaml index db7aace6..29667a06 100644 --- a/charts/temporal/templates/server-pdb.yaml +++ b/charts/temporal/templates/server-pdb.yaml @@ -7,7 +7,7 @@ kind: PodDisruptionBudget metadata: name: {{ include "temporal.componentname" (list $ $service) }}-pdb labels: - {{- include "temporal.resourceLabels" (list . $service "") | nindent 4 }} + {{- include "temporal.resourceLabels" (list $ $service "") | nindent 4 }} spec: {{ toYaml $serviceValues.podDisruptionBudget }} selector: diff --git a/charts/temporal/templates/server-service.yaml b/charts/temporal/templates/server-service.yaml index 58c0a0fd..47e4d0bf 100644 --- a/charts/temporal/templates/server-service.yaml +++ b/charts/temporal/templates/server-service.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Service metadata: - name: {{ include "temporal.componentname" (list . "frontend") }} + name: {{ include "temporal.componentname" (list $ "frontend") }} labels: {{- include "temporal.resourceLabels" (list $ "frontend" "") | nindent 4 }} {{- if .Values.server.frontend.service.annotations }} @@ -24,7 +24,7 @@ spec: name: http # TODO: Allow customizing the node HTTP port selector: - app.kubernetes.io/name: {{ include "temporal.name" . }} + app.kubernetes.io/name: {{ include "temporal.name" $ }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: frontend diff --git a/charts/temporal/templates/serviceaccount.yaml b/charts/temporal/templates/serviceaccount.yaml index 8265bc72..811c9b4d 100644 --- a/charts/temporal/templates/serviceaccount.yaml +++ b/charts/temporal/templates/serviceaccount.yaml @@ -2,9 +2,9 @@ apiVersion: v1 kind: ServiceAccount metadata: - name: {{ include "temporal.serviceAccountName" . }} + name: {{ include "temporal.serviceAccountName" $ }} labels: - {{- include "temporal.resourceLabels" (list . "" "") | nindent 4 }} + {{- include "temporal.resourceLabels" (list $ "" "") | nindent 4 }} annotations: helm.sh/hook: pre-install, pre-upgrade helm.sh/hook-weight: "-10" diff --git a/charts/temporal/templates/web-deployment.yaml b/charts/temporal/templates/web-deployment.yaml index f1524e51..12f20e67 100644 --- a/charts/temporal/templates/web-deployment.yaml +++ b/charts/temporal/templates/web-deployment.yaml @@ -2,14 +2,14 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: {{ include "temporal.componentname" (list . "web") }} + name: {{ include "temporal.componentname" (list $ "web") }} labels: - {{- include "temporal.resourceLabels" (list . "web" "") | nindent 4 }} + {{- include "temporal.resourceLabels" (list $ "web" "") | nindent 4 }} spec: replicas: {{ .Values.web.replicaCount }} selector: matchLabels: - app.kubernetes.io/name: {{ include "temporal.name" . }} + app.kubernetes.io/name: {{ include "temporal.name" $ }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: web template: @@ -21,7 +21,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: - {{ include "temporal.serviceAccount" . }} + {{ include "temporal.serviceAccount" $ }} {{- if .Values.web.additionalVolumes }} volumes: {{- toYaml .Values.web.additionalVolumes | nindent 8 }} @@ -32,7 +32,7 @@ spec: imagePullPolicy: {{ .Values.web.image.pullPolicy }} env: - name: TEMPORAL_ADDRESS - value: "{{ include "temporal.fullname" . }}-frontend.{{ .Release.Namespace }}.svc:{{ .Values.server.frontend.service.port }}" + value: "{{ include "temporal.fullname" $ }}-frontend.{{ .Release.Namespace }}.svc:{{ .Values.server.frontend.service.port }}" {{- if .Values.web.additionalEnv }} {{- toYaml .Values.web.additionalEnv | nindent 12 }} {{- end }} diff --git a/charts/temporal/templates/web-ingress.yaml b/charts/temporal/templates/web-ingress.yaml index a96644db..24aca108 100644 --- a/charts/temporal/templates/web-ingress.yaml +++ b/charts/temporal/templates/web-ingress.yaml @@ -8,9 +8,9 @@ apiVersion: extensions/v1beta1 {{- end }} kind: Ingress metadata: - name: {{ include "temporal.componentname" (list . "web") }} + name: {{ include "temporal.componentname" (list $ "web") }} labels: - {{- include "temporal.resourceLabels" (list . "web" "") | nindent 4 }} + {{- include "temporal.resourceLabels" (list $ "web" "") | nindent 4 }} {{- with .Values.web.ingress.annotations }} annotations: {{ toYaml . | indent 4 }} diff --git a/charts/temporal/templates/web-pdb.yaml b/charts/temporal/templates/web-pdb.yaml index a6dbe445..6e6a2d42 100644 --- a/charts/temporal/templates/web-pdb.yaml +++ b/charts/temporal/templates/web-pdb.yaml @@ -3,9 +3,9 @@ apiVersion: policy/v1 kind: PodDisruptionBudget metadata: - name: {{ include "temporal.componentname" (list . "web") }}-pdb + name: {{ include "temporal.componentname" (list $ "web") }}-pdb labels: - {{- include "temporal.resourceLabels" (list . "web" "") | nindent 4 }} + {{- include "temporal.resourceLabels" (list $ "web" "") | nindent 4 }} spec: {{ toYaml $.Values.web.podDisruptionBudget }} selector: diff --git a/charts/temporal/templates/web-service.yaml b/charts/temporal/templates/web-service.yaml index e88d9e24..e2480704 100644 --- a/charts/temporal/templates/web-service.yaml +++ b/charts/temporal/templates/web-service.yaml @@ -2,9 +2,9 @@ apiVersion: v1 kind: Service metadata: - name: {{ include "temporal.componentname" (list . "web") }} + name: {{ include "temporal.componentname" (list $ "web") }} labels: - {{- include "temporal.resourceLabels" (list . "web" "") | nindent 4 }} + {{- include "temporal.resourceLabels" (list $ "web" "") | nindent 4 }} {{- if .Values.web.service.annotations }} annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.web.service.annotations "context" $) | nindent 4 }} {{- end }} @@ -22,7 +22,7 @@ spec: nodePort: {{ .Values.web.service.nodePort }} {{- end }} selector: - app.kubernetes.io/name: {{ include "temporal.name" . }} + app.kubernetes.io/name: {{ include "temporal.name" $ }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: web {{- end }}