Skip to content

Commit 34933f8

Browse files
committed
fix compile errors
1 parent ed3aa66 commit 34933f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/clusterctl/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func handlePlugins() {
216216
case "help", cobra.ShellCompRequestCmd, cobra.ShellCompNoDescRequestCmd:
217217
// Don't search for a plugin
218218
default:
219-
if err := kubectlcmd.HandlePluginCommand(pluginHandler, cmdPathPieces, false); err != nil {
219+
if err := kubectlcmd.HandlePluginCommand(pluginHandler, cmdPathPieces, 0); err != nil { // FIXME: figure out what the right value for minArgs is
220220
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
221221
os.Exit(1)
222222
}

internal/webhooks/cluster_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func TestClusterDefaultNamespaces(t *testing.T) {
7171
func TestClusterTopologyDefaultNamespaces(t *testing.T) {
7272
// NOTE: ClusterTopology feature flag is disabled by default, thus preventing to set Cluster.Topologies.
7373
// Enabling the feature flag temporarily for this test.
74-
defer utilfeature.SetFeatureGateDuringTest(t, feature.Gates, feature.ClusterTopology, true)()
74+
utilfeature.SetFeatureGateDuringTest(t, feature.Gates, feature.ClusterTopology, true)
7575

7676
g := NewWithT(t)
7777

0 commit comments

Comments
 (0)