diff --git a/terraform/helm/aptos-node/templates/_helpers.tpl b/terraform/helm/aptos-node/templates/_helpers.tpl index 4704400b0b905..1166778887f93 100644 --- a/terraform/helm/aptos-node/templates/_helpers.tpl +++ b/terraform/helm/aptos-node/templates/_helpers.tpl @@ -35,7 +35,9 @@ Create chart name and version as used by the chart label. Common labels */}} {{- define "aptos-validator.labels" -}} -{{ toYaml .Values.labels }} +{{- range $k, $v := .Values.labels }} +{{ $k }}: {{ $v }} +{{- end }} helm.sh/chart: {{ include "aptos-validator.chart" . }} {{ include "aptos-validator.selectorLabels" . }} {{- if .Chart.AppVersion }} @@ -48,7 +50,9 @@ app.kubernetes.io/managed-by: {{ .Release.Service }} Selector labels */}} {{- define "aptos-validator.selectorLabels" -}} -{{ toYaml .Values.labels }} +{{- range $k, $v := .Values.labels }} +{{ $k }}: {{ $v }} +{{- end }} app.kubernetes.io/part-of: {{ include "aptos-validator.name" . }} app.kubernetes.io/managed-by: helm {{- end -}} diff --git a/terraform/helm/genesis/templates/_helpers.tpl b/terraform/helm/genesis/templates/_helpers.tpl index 1651c6fb93467..a32efb50b7e82 100644 --- a/terraform/helm/genesis/templates/_helpers.tpl +++ b/terraform/helm/genesis/templates/_helpers.tpl @@ -35,7 +35,9 @@ Create chart name and version as used by the chart label. Common labels */}} {{- define "aptos-genesis.labels" -}} -{{ toYaml .Values.labels }} +{{- range $k, $v := .Values.labels }} +{{ $k }}: {{ $v }} +{{- end }} helm.sh/chart: {{ include "aptos-genesis.chart" . }} {{ include "aptos-genesis.selectorLabels" . }} {{- if .Chart.AppVersion }} @@ -48,7 +50,9 @@ app.kubernetes.io/managed-by: {{ .Release.Service }} Selector labels */}} {{- define "aptos-genesis.selectorLabels" -}} -{{ toYaml .Values.labels }} +{{- range $k, $v := .Values.labels }} +{{ $k }}: {{ $v }} +{{- end }} app.kubernetes.io/part-of: {{ include "aptos-genesis.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} {{- end -}}