Skip to content

Commit

Permalink
Add the support to the new --insecure-registry parameter in the creat…
Browse files Browse the repository at this point in the history
…or command

Signed-off-by: Domenico Luciani <[email protected]>
  • Loading branch information
Domenico Luciani committed Jul 5, 2023
1 parent 251eb87 commit 611940c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/lifecycle/cli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ 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(insecureRegistry *string) {
flagSet.StringVar(insecureRegistry, "insecure-registry", *insecureRegistry, "to use an 'insecure' registry")
}

// deprecated

func DeprecatedFlagRunImage(deprecatedRunImage *string) {
Expand Down
1 change: 1 addition & 0 deletions cmd/lifecycle/creator.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func (c *createCmd) DefineFlags() {
cli.FlagTags(&c.AdditionalTags)
cli.FlagUID(&c.UID)
cli.FlagUseDaemon(&c.UseDaemon)
cli.FlagInsecureRegistry(&c.InsecureRegistry)
}

// Args validates arguments and flags, and fills in default values.
Expand Down

0 comments on commit 611940c

Please sign in to comment.