From 1990cb76e936d79b202d8f728b1fb8855454150a Mon Sep 17 00:00:00 2001 From: Tejal Desai Date: Tue, 8 Sep 2020 15:50:56 -0700 Subject: [PATCH] change repo string to just string --- pkg/executor/push.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/executor/push.go b/pkg/executor/push.go index d0733eb155..0232abbc56 100644 --- a/pkg/executor/push.go +++ b/pkg/executor/push.go @@ -101,7 +101,7 @@ func CheckPushPermissions(opts *config.KanikoOptions) error { if err != nil { return errors.Wrap(err, "getting tag for destination") } - if checked[destRef.Context().RepositoryStr()] { + if checked[destRef.Context().String()] { continue } @@ -130,7 +130,7 @@ func CheckPushPermissions(opts *config.KanikoOptions) error { if err := checkRemotePushPermission(destRef, creds.GetKeychain(), tr); err != nil { return errors.Wrapf(err, "checking push permission for %q", destRef) } - checked[destRef.Context().RepositoryStr()] = true + checked[destRef.Context().String()] = true } return nil }