From 27028843945d5cb1f2080436db727247584f93bb Mon Sep 17 00:00:00 2001 From: Andras Jaky Date: Tue, 9 Aug 2022 17:09:11 +0200 Subject: [PATCH] feat: added linux GOOS to fixKind0_9_0KubeProxy --- internal/cli/command/controlplane/kind.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/cli/command/controlplane/kind.go b/internal/cli/command/controlplane/kind.go index 652ef07f..e37d32a9 100644 --- a/internal/cli/command/controlplane/kind.go +++ b/internal/cli/command/controlplane/kind.go @@ -190,10 +190,10 @@ func ensureKINDCluster(banzaiCli cli.Cli, options *cpContext, listenAddress stri } } - if runtime.GOOS == "darwin" { - err = fixKind0_8_1KubeProxy(kubeconfig) + if runtime.GOOS == "darwin" || runtime.GOOS == "linux" { + err = fixKind0_9_0KubeProxy(kubeconfig) if err != nil { - return errors.Wrap(err, "failed to fix Kind v0.8.1 kube-proxy CrashLoopBackoff") + return errors.Wrap(err, "failed to fix Kind v0.9.0 kube-proxy CrashLoopBackoff") } } @@ -216,13 +216,13 @@ func deleteKINDCluster(banzaiCli cli.Cli) error { return nil } -// fixKind0_8_1KubeProxy returns an error if failed, otherwise fixes the Kind +// fixKind0_9_0KubeProxy returns an error if failed, otherwise fixes the Kind // v0.8.1 kube-proxy issue of -// https://github.com/kubernetes-sigs/kind/issues/2240 on macOS without +// https://github.com/kubernetes-sigs/kind/issues/2240 on macOS and linux without // requiring Kind upgrade to v0.11.1 / because that would pull in K8s client // v0.21 upgrade which breaks bank-vaults 1.3 and would require bank-vaults 1.13 // which would pull in a lot of changes. -func fixKind0_8_1KubeProxy(kubeconfig []byte) error { +func fixKind0_9_0KubeProxy(kubeconfig []byte) error { namespace := "kube-system" configMapName := "kube-proxy" configFileName := "config.conf"