From 352655b41ea4db3aa59b272a91d7157634622565 Mon Sep 17 00:00:00 2001 From: Varma Maryala Date: Fri, 20 Dec 2024 10:32:13 -0600 Subject: [PATCH] Skipping the kubernetes-csi/external-snapshotter images to update --- release/pkg/generate_spec.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/release/pkg/generate_spec.go b/release/pkg/generate_spec.go index a3c3b0ce7..ac5f19822 100644 --- a/release/pkg/generate_spec.go +++ b/release/pkg/generate_spec.go @@ -86,6 +86,11 @@ func UpdateImageDigests(ecrPublicClient *ecrpublic.ECRPublic, r *ReleaseConfig, releaseUriSplit := strings.Split(asset.Image.URI, ":") repoName := strings.Replace(releaseUriSplit[0], r.ContainerImageRepository+"/", "", -1) imageTag = releaseUriSplit[1] + // Skip updating digest for the specific repository kubernetes-csi/external-snapshotter/snapshot-validation-webhook + if repoName == "kubernetes-csi/external-snapshotter/snapshot-validation-webhook" { + fmt.Printf("Skipping digest update for %s:%s\n", repoName, imageTag) + continue + } describeImagesOutput, err := ecrPublicClient.DescribeImages( &ecrpublic.DescribeImagesInput{ ImageIds: []*ecrpublic.ImageIdentifier{