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 5109e9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/lifecycle/cli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ func FlagLayoutDir(layoutDir *string) {
flagSet.StringVar(layoutDir, "layout-dir", *layoutDir, "path to output directory for images in OCI layout format")
}

func InsecureRegistry(insecureRegistry *string) {

Check failure on line 19 in cmd/lifecycle/cli/flags.go

View workflow job for this annotation

GitHub Actions / test-windows

exported: exported function InsecureRegistry should have comment or be unexported (revive)

Check failure on line 19 in cmd/lifecycle/cli/flags.go

View workflow job for this annotation

GitHub Actions / test-linux-arm64

exported: exported function InsecureRegistry should have comment or be unexported (revive)

Check failure on line 19 in cmd/lifecycle/cli/flags.go

View workflow job for this annotation

GitHub Actions / test-linux-amd64

exported: exported function InsecureRegistry should have comment or be unexported (revive)
flagSet.StringVar(insecureRegistry, "insecure-registry", *insecureRegistry, "to use an 'insecure' registry")
}

func FlagUseLayout(useLayout *bool) {
flagSet.BoolVar(useLayout, "layout", *useLayout, "export to OCI layout format on disk")
}
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.InsecureRegistry(&c.InsecureRegistry)
}

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

0 comments on commit 5109e9a

Please sign in to comment.