INNER CODE UNIT · Go

newResumeReconciliationCmd

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

func newResumeReconciliationCmd(getExecutor func() *kubectlExecutor) *cobra.Command {
	return &cobra.Command{
		Use:   "resume-reconciliation INSTANCE",
		Short: "Resume reconciliation for an instance",
		Args:  cobra.ExactArgs(1),
		RunE: func(cmd *cobra.Command, args []string) error {
			executor := getExecutor()
			instance := args[0]
			return executor.Execute("label", "rabbitmqclusters", instance, "rabbitmq.com/pauseReconciliation-")
		},
	}
}

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,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…