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
OCPBUGS-14907: Fix operator backed catalog page when copied CSVs disabled #12932
OCPBUGS-14907: Fix operator backed catalog page when copied CSVs disabled #12932
Conversation
/cc @TheRealJon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two main cases we need to cover when listing CSVs and copied CSVs are disabaled:
- Listing in a namespaced context: We are currently in a namespace other than 'openshift', 'openshift-operators', or 'All Namespaces'.
- We are listing in a global context: we are in one of the three excluded namespaces from (1).
Namespaced context
List CSVs from the current namespace and copied CSVs from the 'openshift' namespace
Global Context
a. All Namespaces: List CSVs from all namespaces, but filter out copied CSVs. (This is probably already covered since this is not a new case).
b. 'openshift-operators' namespace: List all operators in this namespace only and they are all available in all namespaces (they have copies in the 'openshift' namespace).
c. 'openshift' namespace: List all operators in this namespace only. Copied CSVs are available in all namespaces, otherwise, they are only available in the current namespace.
@tlwu2013 Could you help confirm this logic? Mainly with (b). Are all CSVs in the 'openshift-operators' namespace considered global or can namespaced operators be installed their as well?
@vikram-raj: This pull request references Jira Issue OCPBUGS-14907, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/jira refresh |
@vikram-raj: This pull request references Jira Issue OCPBUGS-14907, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
hey @TheRealJon, thanks for reaching out.
yes, all Operators in
no, they cannot. --
|
Thanks @tlwu2013! @vikram-raj As Tony mentioned, we also need to handle the case where an operator is installed globally, but not in the default |
a30d180
to
e921b5a
Compare
@TheRealJon I updated the can you PTAL again. Thanks. |
frontend/packages/operator-lifecycle-manager/src/utils/useClusterServiceVersions.tsx
Outdated
Show resolved
Hide resolved
e921b5a
to
b964058
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: TheRealJon, vikram-raj The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
/cherry-pick release-4.13 |
@vikram-raj: once the present PR merges, I will cherry-pick it on top of release-4.13 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@vikram-raj: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@vikram-raj: Jira Issue OCPBUGS-14907: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-14907 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@vikram-raj: new pull request created: #13019 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Fixes: https://issues.redhat.com/browse/OCPBUGS-14907
Descriptions:
Show catalog items in operator backed even if copied to CSVs is disabled.