1
0
mirror of https://github.com/ko-build/ko.git synced 2025-07-12 23:50:31 +02:00

Propagate --insecure-registry to base image (#370)

This commit is contained in:
jonjohnsonjr
2021-06-01 09:47:30 -07:00
committed by GitHub
parent d6b3a3cba3
commit 23ecf4753b
7 changed files with 25 additions and 16 deletions

View File

@ -56,6 +56,7 @@ func addResolve(topLevel *cobra.Command) {
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
ctx := createCancellableContext()
bo.InsecureRegistry = po.InsecureRegistry
builder, err := makeBuilder(ctx, bo)
if err != nil {
return fmt.Errorf("error creating builder: %v", err)