From 9dc402500253a397bfe7e091b4f347e13770bdd5 Mon Sep 17 00:00:00 2001 From: Pau Rosello Date: Fri, 8 Nov 2024 15:07:23 +0100 Subject: [PATCH] fix global variables --- helm/cluster-aws/templates/_control_plane.tpl | 2 +- helm/cluster-aws/templates/_machine_pools.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: