diff --git a/helm/cluster-aws/templates/_control_plane.tpl b/helm/cluster-aws/templates/_control_plane.tpl index abbfa15f8..6b4afeb37 100644 --- a/helm/cluster-aws/templates/_control_plane.tpl +++ b/helm/cluster-aws/templates/_control_plane.tpl @@ -6,7 +6,7 @@ Any changes to this will trigger the resource to be recreated rather than attemp {{- define "controlplane-awsmachinetemplate-spec" -}} {{- include "ami" $ }} additionalTags: - {{- if .Values.global.providerSpecific.additionalNodeTags -}}{{- toYaml .Values.global.providerSpecific.additionalNodeTags | nindent 2 }}{{- end}} + {{- if $.Values.global.providerSpecific.additionalNodeTags -}}{{- toYaml $.Values.global.providerSpecific.additionalNodeTags | nindent 2 }}{{- end}} cloudInit: {} instanceType: {{ .Values.global.controlPlane.instanceType }} nonRootVolumes: diff --git a/helm/cluster-aws/templates/_machine_pools.tpl b/helm/cluster-aws/templates/_machine_pools.tpl index bcc150b1b..fee441ae0 100644 --- a/helm/cluster-aws/templates/_machine_pools.tpl +++ b/helm/cluster-aws/templates/_machine_pools.tpl @@ -13,7 +13,7 @@ spec: additionalTags: k8s.io/cluster-autoscaler/enabled: "true" giantswarm.io/machinepool: {{ $name }} - {{- if .Values.global.providerSpecific.additionalNodeTags -}}{{- toYaml .Values.global.providerSpecific.additionalNodeTags | nindent 4 }}{{- end}} + {{- if $.Values.global.providerSpecific.additionalNodeTags -}}{{- toYaml $.Values.global.providerSpecific.additionalNodeTags | nindent 4 }}{{- end}} availabilityZones: {{ include "aws-availability-zones" (dict "mp" $value "Values" $.Values "Files" $.Files) | nindent 2 }} subnets: - filters: