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 1031c40 commit 1f8f949
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion release/pkg/assets_snapshotter.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (r *ReleaseConfig) GetSnapshotterComponent(spec distrov1alpha1.ReleaseSpec)
return nil, errors.Cause(err)
}
assets := []distrov1alpha1.Asset{}
binaries := []string{"csi-snapshotter", "snapshot-controller", "snapshot-validation-webhook"}
binaries := []string{"csi-snapshotter", "snapshot-controller"}
for _, binary := range binaries {
assets = append(assets, distrov1alpha1.Asset{
Name: fmt.Sprintf("%s-image", binary),
Expand Down
5 changes: 0 additions & 5 deletions release/pkg/generate_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@ 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 1f8f949

Please sign in to comment.