diff --git a/src/k8s/pkg/k8sd/setup/auth-token-webhook.conf b/src/k8s/pkg/k8sd/setup/auth-token-webhook.conf deleted file mode 100644 index 39273db4a..000000000 --- a/src/k8s/pkg/k8sd/setup/auth-token-webhook.conf +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -kind: Config -clusters: - - name: k8s-token-auth-service - cluster: - certificate-authority: "cluster.crt" - tls-server-name: 127.0.0.1 - server: "https://auth-webhook.url" -current-context: webhook -contexts: -- context: - cluster: k8s-token-auth-service - user: k8s-apiserver - name: webhook -users: - - name: k8s-apiserver - user: {} diff --git a/src/k8s/pkg/k8sd/setup/k8s_apiserver_proxy_test.go b/src/k8s/pkg/k8sd/setup/k8s_apiserver_proxy_test.go index e6a9c2c0b..385c23e39 100644 --- a/src/k8s/pkg/k8sd/setup/k8s_apiserver_proxy_test.go +++ b/src/k8s/pkg/k8sd/setup/k8s_apiserver_proxy_test.go @@ -138,7 +138,6 @@ func TestK8sApiServerProxy(t *testing.T) { s := mustSetupSnapAndDirectories(t, setKubeletMock) s.Mock.Hostname = "dev" - // Call the kubelet control plane setup function g.Expect(setup.K8sAPIServerProxy(s, nil, "[2001:db8::]", nil)).To(Succeed()) tests := []struct { diff --git a/src/k8s/pkg/k8sd/setup/kube_apiserver_test.go b/src/k8s/pkg/k8sd/setup/kube_apiserver_test.go index 7ee51beda..7e150c5de 100644 --- a/src/k8s/pkg/k8sd/setup/kube_apiserver_test.go +++ b/src/k8s/pkg/k8sd/setup/kube_apiserver_test.go @@ -253,7 +253,6 @@ func TestKubeAPIServer(t *testing.T) { s := mustSetupSnapAndDirectories(t, setKubeletMock) s.Mock.Hostname = "dev" - // Call the kubelet control plane setup function g.Expect(setup.KubeAPIServer(s, net.ParseIP("2001:db8::"), "fd98::/108", "https://auth-webhook.url", false, types.Datastore{Type: utils.Pointer("k8s-dqlite")}, "Node,RBAC", nil)).To(Succeed()) tests := []struct { diff --git a/src/k8s/pkg/k8sd/setup/kube_proxy_test.go b/src/k8s/pkg/k8sd/setup/kube_proxy_test.go index e644f54aa..756f4f2a4 100644 --- a/src/k8s/pkg/k8sd/setup/kube_proxy_test.go +++ b/src/k8s/pkg/k8sd/setup/kube_proxy_test.go @@ -117,7 +117,6 @@ func TestKubeProxy(t *testing.T) { s := mustSetupSnapAndDirectories(t, setKubeletMock) s.Mock.Hostname = "dev" - // Call the kubelet control plane setup function g.Expect(setup.KubeProxy(context.Background(), s, "dev", "fd98::/108", "[::1]", nil)).To(BeNil()) tests := []struct {