Skip to content

Commit

Permalink
Fix condition for assignment of source ECR auth config (#8670)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-krishna authored Aug 26, 2024
1 parent 94af5ac commit a083f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/cli/pkg/operations/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a083f41

Please sign in to comment.