Skip to content

Commit

Permalink
Add flag to csv-merger to pass the test images NVRs (kubevirt#2981)
Browse files Browse the repository at this point in the history
This is a manual backport of kubevirt#2757

Signed-off-by: Oren Cohen <ocohen@redhat.com>
  • Loading branch information
orenc1 authored Jun 4, 2024
1 parent 9433107 commit c5eb9c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion tools/csv-merger/csv-merger.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ var (
"Comma separated list of CSVs that can be skipped (read replaced) by this version")
olmSkipRange = flag.String("olm-skip-range", "",
"Semver range expression for CSVs that can be skipped (read replaced) by this version")
testImagesNVRs = flag.String("test-images-nvrs", "", "Test Images NVRs")

envVars EnvVarFlags
)
Expand Down Expand Up @@ -330,12 +331,15 @@ func getHcoCsv() {
csvBase.Spec.DisplayName = *specDisplayName
}

if *testImagesNVRs != "" {
csvBase.ObjectMeta.Annotations["test-images-nvrs"] = *testImagesNVRs
}

setSupported(csvBase)

applyOverrides(csvBase)

csvBase.Spec.RelatedImages = sortRelatedImages(csvBase.Spec.RelatedImages)

panicOnError(util.MarshallObject(csvBase, os.Stdout))
}

Expand Down
4 changes: 2 additions & 2 deletions tools/release-notes/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ require (
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/xanzy/ssh-agent v0.3.0 // indirect
golang.org/x/crypto v0.0.0-20211215165025-cf75a172585e // indirect
golang.org/x/net v0.6.0 // indirect
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/net v0.7.0 // indirect
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 // indirect
golang.org/x/sys v0.5.0 // indirect
google.golang.org/appengine v1.6.6 // indirect
Expand Down

0 comments on commit c5eb9c3

Please sign in to comment.