Skip to content

Commit 1837ce0

Browse files
committed
Fix: default channel is optional for fbc scratch builds
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]>
1 parent 99e84de commit 1837ce0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

operator-pipeline-images/operatorcert/entrypoints/build_scratch_catalog.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,12 @@ def build_and_push_catalog_image(
127127

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

131132
generate_and_save_basic_template(
132133
template_path=template_path,
133134
package=bundle.metadata_operator_name,
134-
default_channel=bundle.default_channel,
135+
default_channel=default_channel,
135136
channel_name=channel_name,
136137
csv_name=bundle.csv["metadata"]["name"],
137138
bundle_pullspec=bundle_pullspec,

0 commit comments

Comments
 (0)