diff --git a/cmd/lifecycle/cli/flags.go b/cmd/lifecycle/cli/flags.go index 5c2029e90..411390352 100644 --- a/cmd/lifecycle/cli/flags.go +++ b/cmd/lifecycle/cli/flags.go @@ -168,8 +168,8 @@ func FlagForceRebase(force *bool) { flagSet.BoolVar(force, "force", *force, "execute rebase even if operation is unsafe") } -// FlagInsecureRegistry sets insecure-registry parameter as available -func FlagInsecureRegistry(insecureRegistries *str.Slice) { +// FlagInsecureRegistries sets insecure-registry parameter as available +func FlagInsecureRegistries(insecureRegistries *str.Slice) { flagSet.Var(insecureRegistries, "insecure-registry", "insecure registries") } diff --git a/cmd/lifecycle/creator.go b/cmd/lifecycle/creator.go index 12aa8a8df..3651b8186 100644 --- a/cmd/lifecycle/creator.go +++ b/cmd/lifecycle/creator.go @@ -59,7 +59,7 @@ func (c *createCmd) DefineFlags() { cli.FlagTags(&c.AdditionalTags) cli.FlagUID(&c.UID) cli.FlagUseDaemon(&c.UseDaemon) - cli.FlagInsecureRegistry(&c.InsecureRegistries) + cli.FlagInsecureRegistries(&c.InsecureRegistries) } // Args validates arguments and flags, and fills in default values.