You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(controller): add --configmap-name flag to override controller ConfigMap
The controller ConfigMap name was hardcoded to "argo-rollouts-config" with
no way to override it. This adds a --configmap-name flag so operators can
specify an alternative name, which is useful when running multiple controller
instances in the same namespace or when the default name conflicts with
existing resources.
Signed-off-by: Alex Kazantcev <aleksandr.kazantcev@ticketmaster.co.uk>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
command.Flags().BoolVar(&selfServiceNotificationEnabled, "self-service-notification-enabled", false, "Allows rollouts controller to pull notification config from the namespace that the rollout resource is in. This is useful for self-service notification.")
341
343
command.Flags().StringSliceVar(&controllersEnabled, "controllers", nil, "Explicitly specify the list of controllers to run, currently only supports 'analysis', eg. --controller=analysis. Default: all controllers are enabled")
342
344
command.Flags().StringVar(&pprofAddress, "enable-pprof-address", "", "Enable pprof profiling on controller by providing a server address.")
345
+
command.Flags().StringVar(&rolloutsConfigMapName, "configmap-name", defaults.DefaultRolloutsConfigMapName, "Name of the ConfigMap used to configure the controller.")
assert.NotNil(t, configmapNameFlag, "configmap-name flag should exist")
30
+
assert.Equal(t, defaults.DefaultRolloutsConfigMapName, configmapNameFlag.DefValue, "configmap-name flag should default to %s", defaults.DefaultRolloutsConfigMapName)
0 commit comments