INNER CODE UNIT · Go

getExecutor

rabbitmq/cluster-operator · kubectl-rabbitmq/main.go:40

	getExecutor := func() *kubectlExecutor {
		return newKubectlExecutor(namespace, allNamespaces)
	}

	// Add all subcommands - they will use getExecutor() to get the properly configured executor
	rootCmd.AddCommand(
		newInstallClusterOperatorCmd(getExecutor),
		newListCmd(getExecutor),
		newCreateCmd(getExecutor),
		newDeleteCmd(getExecutor),
		newGetCmd(getExecutor),
		newDebugCmd(getExecutor),
		newTailCmd(getExecutor),
		newObserveCmd(getExecutor),
		newSecretsCmd(getExecutor),
		newEnableAllFeatureFlagsCmd(getExecutor),
		newPauseReconciliationCmd(getExecutor),
		newResumeReconciliationCmd(getExecutor),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…