From d5b142a82393908dba7e17c2175001300e199565 Mon Sep 17 00:00:00 2001 From: Artur Zych <5843875+azych@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:24:59 +0100 Subject: [PATCH] fix: incomplete function chain and renamed function in list-compatible-bundles hack script --- hack/tools/catalogs/list-compatible-bundles | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/tools/catalogs/list-compatible-bundles b/hack/tools/catalogs/list-compatible-bundles index 8e0560414..d89f3885b 100755 --- a/hack/tools/catalogs/list-compatible-bundles +++ b/hack/tools/catalogs/list-compatible-bundles @@ -77,7 +77,7 @@ function extract-olm-package-property() { # Group packages by name and collect versions into an array function group-versions-by-package-name() { - jq -s 'group_by(.packageName) | map({packageName: .[0].packageName, versions: map(.version)})' | regex_it + jq -s 'group_by(.packageName) | map({packageName: .[0].packageName, versions: map(.version)})' } # Apply regex on name @@ -90,7 +90,7 @@ function filter-by-regex-if-necessary() { end' } -cat - | select-bundle-documents | that-support-allnamespace-install-mode | that-dont-have-dependencies | group-versions-by-package-name | filter-by-regex-if-necessary +cat - | select-bundle-documents | that-support-allnamespace-install-mode | that-dont-have-dependencies | extract-olm-package-property | group-versions-by-package-name | filter-by-regex-if-necessary echo "NOTE: OLM v1 currently only supports bundles that support AllNamespaces install model, don't have dependencies, and don't contain webhooks" >&2 -echo "WARNING: These results may include bundles with webhooks, which are incompatible" >&2 \ No newline at end of file +echo "WARNING: These results may include bundles with webhooks, which are incompatible" >&2