INNER CODE UNIT · Go

newListPauseReconciliationInstancesCmd

rabbitmq/cluster-operator · kubectl-rabbitmq/commands.go:255

func newListPauseReconciliationInstancesCmd(getExecutor func() *kubectlExecutor) *cobra.Command {
	return &cobra.Command{
		Use:   "list-pause-reconciliation-instances",
		Short: "List all instances that have the pause reconciliation label",
		Args:  cobra.NoArgs,
		RunE: func(cmd *cobra.Command, args []string) error {
			executor := getExecutor()
			return executor.Execute("get", "rabbitmqclusters", "-l", "rabbitmq.com/pauseReconciliation=true", "--show-labels")
		},
	}
}

func newManageCmd(getExecutor func() *kubectlExecutor) *cobra.Command {
	return &cobra.Command{
		Use:   "manage INSTANCE",
		Short: "Open Management UI for an instance",
		Args:  cobra.ExactArgs(1),
		RunE: func(cmd *cobra.Command, args []string) error {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…