Skip to content

Commit

Permalink
Skipping the kubernetes-csi/external-snapshotter images to update
Browse files Browse the repository at this point in the history
  • Loading branch information
varma-maryala committed Dec 20, 2024
1 parent 43fb785 commit 352655b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions release/pkg/generate_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 352655b

Please sign in to comment.