Skip to content

Commit

Permalink
Fix: default channel is optional for fbc scratch builds
Browse files Browse the repository at this point in the history
A default channel is optional and a build process uses channel value in
case a default channel is not used.

Signed-off-by: Ales Raszka <[email protected]>
  • Loading branch information
Allda committed Aug 15, 2024
1 parent 99e84de commit 1837ce0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,12 @@ def build_and_push_catalog_image(

template_path = os.path.join(tmpdir, "template.yaml")
channel_name = list(bundle.channels)[0] if bundle.channels else "stable"
default_channel = bundle.default_channel or channel_name

generate_and_save_basic_template(
template_path=template_path,
package=bundle.metadata_operator_name,
default_channel=bundle.default_channel,
default_channel=default_channel,
channel_name=channel_name,
csv_name=bundle.csv["metadata"]["name"],
bundle_pullspec=bundle_pullspec,
Expand Down

0 comments on commit 1837ce0

Please sign in to comment.