INNER CODE UNIT · Go
newEnableAllFeatureFlagsCmd
rabbitmq/cluster-operator · kubectl-rabbitmq/commands.go:215
func newEnableAllFeatureFlagsCmd(getExecutor func() *kubectlExecutor) *cobra.Command {
return &cobra.Command{
Use: "enable-all-feature-flags INSTANCE",
Short: "Enable all feature flags on an instance",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
executor := getExecutor()
instance := args[0]
podName := fmt.Sprintf("%s-server-0", instance)
return executor.Execute("exec", podName, "-c", "rabbitmq", "--", "rabbitmqctl", "enable_feature_flag", "all")
},
}
}
func newPauseReconciliationCmd(getExecutor func() *kubectlExecutor) *cobra.Command {
return &cobra.Command{
Use: "pause-reconciliation INSTANCE",
Short: "Pause reconciliation for an instance",