Description of problem: bundle validate command fails when the icon is not present. This is inconsistent with the operator courier tests: https://github.com/operator-framework/operator-courier/blob/master/operatorcourier/const_io.py#L94 How reproducible: always Steps to Reproduce: 1. create a csv without an icon 2. run the sdk bundle validate command Actual results: error Expected results: warning Additional info:
*** Bug 1921724 has been marked as a duplicate of this bug. ***
Just tried with a recent bundle that had the following entry: icon: - base64data: "" mediatype: "" $ operator-sdk bundle validate ./bundle INFO[0000] Found annotations file bundle-dir=bundle container-tool=docker INFO[0000] Could not find optional dependencies file bundle-dir=bundle container-tool=docker INFO[0000] All validation tests have completed successfully $ echo $? 0 $ operator-sdk version operator-sdk version: "v1.3.0", commit: "1abf57985b43bf6a59dcd18147b3c574fa57d3f6", kubernetes version: "v1.19.4", go version: "go1.15.3", GOOS: "linux", GOARCH: "amd64"
Removed the entire icon stanza from the CSV. And did bundle validate again. # backup csv before editing $ cp bundle/manifests/demo-zeus-operator.clusterserviceversion.yaml demo-zeus-operator.clusterserviceversion.yaml.backup # remove the icon stanza $ vi bundle/manifests/demo-zeus-operator.clusterserviceversion.yaml # verify there's no icon anywhere in the bundle $ ag icon bundle # validate bundle $ operator-sdk bundle validate ./bundle INFO[0000] Found annotations file bundle-dir=bundle container-tool=docker INFO[0000] Could not find optional dependencies file bundle-dir=bundle container-tool=docker INFO[0000] All validation tests have completed successfully # exits with 0 $ echo $? 0
Moving this to 4.8 since it won't be in the downstream until 1.4.0 gets synced.
Updated doctext