From 34933f80cbf1a87c9431738f2deef8872000ae54 Mon Sep 17 00:00:00 2001 From: Stefan Bueringer Date: Thu, 11 Jul 2024 14:04:38 +0200 Subject: [PATCH] fix compile errors --- cmd/clusterctl/cmd/root.go | 2 +- internal/webhooks/cluster_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/clusterctl/cmd/root.go b/cmd/clusterctl/cmd/root.go index 89366a78ddd4..171bd1b6ff09 100644 --- a/cmd/clusterctl/cmd/root.go +++ b/cmd/clusterctl/cmd/root.go @@ -216,7 +216,7 @@ func handlePlugins() { case "help", cobra.ShellCompRequestCmd, cobra.ShellCompNoDescRequestCmd: // Don't search for a plugin default: - if err := kubectlcmd.HandlePluginCommand(pluginHandler, cmdPathPieces, false); err != nil { + if err := kubectlcmd.HandlePluginCommand(pluginHandler, cmdPathPieces, 0); err != nil { // FIXME: figure out what the right value for minArgs is fmt.Fprintf(os.Stderr, "Error: %v\n", err) os.Exit(1) } diff --git a/internal/webhooks/cluster_test.go b/internal/webhooks/cluster_test.go index 1eb3919d869c..ca9c39847255 100644 --- a/internal/webhooks/cluster_test.go +++ b/internal/webhooks/cluster_test.go @@ -71,7 +71,7 @@ func TestClusterDefaultNamespaces(t *testing.T) { func TestClusterTopologyDefaultNamespaces(t *testing.T) { // NOTE: ClusterTopology feature flag is disabled by default, thus preventing to set Cluster.Topologies. // Enabling the feature flag temporarily for this test. - defer utilfeature.SetFeatureGateDuringTest(t, feature.Gates, feature.ClusterTopology, true)() + utilfeature.SetFeatureGateDuringTest(t, feature.Gates, feature.ClusterTopology, true) g := NewWithT(t)