Skip to content

Fix "Return list of packages that support AllNamespaces install mode and do not use webhooks" catalog query in the docs #1460

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
m1kola opened this issue Nov 14, 2024 · 2 comments · Fixed by #1464
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@m1kola
Copy link
Member

m1kola commented Nov 14, 2024

Need to fix "Return list of packages that support AllNamespaces install mode and do not use webhooks" query here and here.

Currently the query returns nothing.

@m1kola m1kola added the documentation Improvements or additions to documentation label Nov 14, 2024
@m1kola
Copy link
Member Author

m1kola commented Nov 14, 2024

@grokspawn did a bit of investigation and here are the important bits:

The issue appears to be that the catalog has shifted from bundle-level metadata stashed in olm.bundle.object to olm.csv.metadata.

Here's a flawed replacement for jq when olm.csv.metadata is present in the catalog:

jq -cs '.[]|select(.schema == "olm.bundle") | {"package":.package, "version": .properties[] | select(.type == "olm.package").value.version, "compatibleInstallMode": .properties[] | select(.type == "olm.csv.metadata").value | select((.installModes[] | select(.type == "AllNamespaces" and .supported == true))).labels[]}'

Flawed because it seems to report each matching entry three times.

@bentito bentito self-assigned this Nov 14, 2024
@bentito
Copy link
Contributor

bentito commented Nov 14, 2024

Fixed in #1464

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants