From e210d8809af8af04def7ec7e1cbf5b75d1865599 Mon Sep 17 00:00:00 2001 From: Pau Rosello Date: Wed, 4 Dec 2024 15:37:15 +0100 Subject: [PATCH] fix part --- helm/cluster-aws/templates/_awspartition.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/cluster-aws/templates/_awspartition.tpl b/helm/cluster-aws/templates/_awspartition.tpl index 143e93f3..1c7182dd 100644 --- a/helm/cluster-aws/templates/_awspartition.tpl +++ b/helm/cluster-aws/templates/_awspartition.tpl @@ -7,7 +7,7 @@ Output: The AWS partition (e.g., "aws", "aws-cn") */ -}} {{- define "extractAWSPartition" -}} {{- $parts := (split ":" .) -}} -{{- if ge (len $parts) 5 -}}{{- $parts._2 -}}{{- end -}} +{{- if ge (len $parts) 5 -}}{{- $parts._1 -}}{{- end -}} {{- end -}} {{- define "aws-partition" -}}