Skip to content

Commit

Permalink
Merge pull request #9225 from radTuti/hashrelease-ISS
Browse files Browse the repository at this point in the history
[release tool] hashrelease: fix sending images to ISS
  • Loading branch information
radTuti committed Sep 12, 2024
2 parents e67e663 + e109bee commit 756c62e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions release/pkg/tasks/hashrelease.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func imgExists(name string, component hashrelease.Component, ch chan imageExists
// HashreleaseValidate validates the images in the hashrelease.
// These images are checked to ensure they exist in the registry
// as they should have been pushed in the standard build process.
func HashreleaseValidate(cfg *config.Config, sendImagestoISS bool) {
func HashreleaseValidate(cfg *config.Config, skipISS bool) {
tmpDir := cfg.TmpFolderPath()
name, err := hashrelease.RetrieveReleaseName(tmpDir)
if err != nil {
Expand Down Expand Up @@ -143,7 +143,8 @@ func HashreleaseValidate(cfg *config.Config, sendImagestoISS bool) {
logrus.WithField("images", strings.Join(failedImageNames, ", ")).
Fatalf("Failed to validate %d images, see above for details", failedCount)
}
if sendImagestoISS {
if !skipISS {
logrus.Info("Sending images to ISS")
imageList := []string{}
for _, component := range images {
imageList = append(imageList, component.String())
Expand Down

0 comments on commit 756c62e

Please sign in to comment.