mirror of
https://github.com/stakater/Reloader.git
synced 2026-05-03 15:26:35 +00:00
Fix reload on create flag
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
This commit is contained in:
@@ -37,7 +37,7 @@ func NewReloaderCommand() *cobra.Command {
|
||||
cmd.PersistentFlags().StringSlice("namespaces-to-ignore", []string{}, "list of namespaces to ignore")
|
||||
cmd.PersistentFlags().StringVar(&options.IsArgoRollouts, "is-Argo-Rollouts", "false", "Add support for argo rollouts")
|
||||
cmd.PersistentFlags().StringVar(&options.ReloadStrategy, constants.ReloadStrategyFlag, constants.EnvVarsReloadStrategy, "Specifies the desired reload strategy")
|
||||
cmd.PersistentFlags().StringVar(&options.ReloadOnCreate, constants.ReloadOnCreateFlag, "false", "Adds support to watch create events")
|
||||
cmd.PersistentFlags().StringVar(&options.ReloadOnCreate, "reload-on-create", "false", "Add support to watch create events")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
@@ -19,6 +19,4 @@ const (
|
||||
EnvVarsReloadStrategy = "env-vars"
|
||||
// AnnotationsReloadStrategy instructs Reloader to add pod template annotations to facilitate a restart
|
||||
AnnotationsReloadStrategy = "annotations"
|
||||
// ReloadOnCreateFlag The ReloadOnCreate flag name
|
||||
ReloadOnCreateFlag = "reload-on-create"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user