Support insecure pull (#401)

This commit is contained in:
Daisuke Taniwaki
2018-10-22 14:33:41 -07:00
committed by Sharif Elgamal
parent 5108ee3ee1
commit 05e3250043
5 changed files with 34 additions and 9 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ func DoPush(image v1.Image, opts *config.KanikoOptions) error {
// continue pushing unless an error occurs
for _, destRef := range destRefs {
if opts.InsecurePush {
if opts.Insecure {
newReg, err := name.NewInsecureRegistry(destRef.Repository.Registry.Name(), name.WeakValidation)
if err != nil {
return errors.Wrap(err, "getting new insecure registry")