From a083f417029fcc35112cb55a384b1824a486f84b Mon Sep 17 00:00:00 2001 From: Abhay Krishna Date: Mon, 26 Aug 2024 16:20:21 -0700 Subject: [PATCH] Fix condition for assignment of source ECR auth config (#8670) --- release/cli/pkg/operations/upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/cli/pkg/operations/upload.go b/release/cli/pkg/operations/upload.go index 9de9ff852235..36bc7f23cdfb 100644 --- a/release/cli/pkg/operations/upload.go +++ b/release/cli/pkg/operations/upload.go @@ -162,7 +162,7 @@ func handleImageUpload(_ context.Context, r *releasetypes.ReleaseConfig, package sourceImageUri := artifact.Image.SourceImageURI releaseImageUri := artifact.Image.ReleaseImageURI sourceEcrAuthConfig := defaultSourceEcrAuthConfig - if packagesutils.NeedsPackagesAccountArtifacts(r) && strings.Contains(sourceImageUri, "eks-anywhere-packages") || strings.Contains(sourceImageUri, "ecr-token-refresher") || strings.Contains(sourceImageUri, "credential-provider-package") { + if packagesutils.NeedsPackagesAccountArtifacts(r) && (strings.Contains(sourceImageUri, "eks-anywhere-packages") || strings.Contains(sourceImageUri, "ecr-token-refresher") || strings.Contains(sourceImageUri, "credential-provider-package")) { sourceEcrAuthConfig = packagesSourceEcrAuthConfig } fmt.Printf("Source Image - %s\n", sourceImageUri)