From 9d920661dda7f3618da19d87dd63b207c59859ec Mon Sep 17 00:00:00 2001 From: Ryota Sakamoto Date: Sun, 16 Jun 2024 22:08:31 +0900 Subject: [PATCH] fix kubeconfig order --- pkg/provisioner/cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/provisioner/cluster.go b/pkg/provisioner/cluster.go index 473d3ac..e47129b 100644 --- a/pkg/provisioner/cluster.go +++ b/pkg/provisioner/cluster.go @@ -126,7 +126,7 @@ func GenerateKubeconfig(name string) error { return fmt.Errorf("failed to create .kube directory: %w", err) } - mergedConfig, err := kubernetes.MergeKubeconfig([]string{kubeDir + "/config", tempDir + "/config"}) + mergedConfig, err := kubernetes.MergeKubeconfig([]string{tempDir + "/config", kubeDir + "/config"}) if err != nil { return fmt.Errorf("failed to merge kubeconfig files: %w", err) }