From bbfaff34908326fdebe5246d26b900f2085a3253 Mon Sep 17 00:00:00 2001 From: Piotr Halama Date: Thu, 23 May 2024 16:05:25 +0200 Subject: [PATCH] fix: Gardener kubeconfig merging flags --- scripts/gardener/aws/provision.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gardener/aws/provision.sh b/scripts/gardener/aws/provision.sh index b4e342a8..a94d124c 100755 --- a/scripts/gardener/aws/provision.sh +++ b/scripts/gardener/aws/provision.sh @@ -137,7 +137,7 @@ EOF # merge with the existing kubeconfig settings mkdir -p ~/.kube - KUBECONFIG="~/.kube/config:${CLUSTER_NAME}_kubeconfig.yaml" kubectl config view --merge > merged_kubeconfig.yaml + KUBECONFIG="~/.kube/config:${CLUSTER_NAME}_kubeconfig.yaml" kubectl config view --flatten --merge > merged_kubeconfig.yaml mv merged_kubeconfig.yaml ~/.kube/config }