-
Notifications
You must be signed in to change notification settings - Fork 667
OCPBUGS-66247: make cloudCredentials optional so operators load when … #15803
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
Conversation
|
@rhamilto: This pull request references Jira Issue OCPBUGS-66247, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
/assign @TheRealJon /cherrypick release-4.20 |
WalkthroughRemoved dependency on Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Comment |
|
@rhamilto: once the present PR merges, I will cherry-pick it on top of DetailsIn 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-sigs/prow repository. |
|
/jira refresh |
|
@rhamilto: This pull request references Jira Issue OCPBUGS-66247, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to Reviews -> Disable Knowledge Base setting
📒 Files selected for processing (1)
frontend/packages/operator-lifecycle-manager/src/hooks/useOperatorCatalogItems.tsx(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**
⚙️ CodeRabbit configuration file
-Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity.
Files:
frontend/packages/operator-lifecycle-manager/src/hooks/useOperatorCatalogItems.tsx
🧬 Code graph analysis (1)
frontend/packages/operator-lifecycle-manager/src/hooks/useOperatorCatalogItems.tsx (1)
frontend/packages/operator-lifecycle-manager/src/hooks/useClusterCloudCredentialConfig.tsx (1)
useClusterCloudCredentialConfig(9-13)
🔇 Additional comments (2)
frontend/packages/operator-lifecycle-manager/src/hooks/useOperatorCatalogItems.tsx (2)
92-108: LGTM: Correctly implements optional cloudCredentials.The removal of
cloudCredentialsLoadedfrom theloadedcheck andcloudCredentialsLoadErrorfrom theloadErroraggregation correctly implements the PR objective. The operator catalog will now load even when cloudCredentials are unavailable or fail to load, which resolves the issue where operators wouldn't display on clusters without cloudCredentials.Also applies to: 110-128
130-132: Verify that cluster check functions handle undefined cloudCredentials.Since
cloudCredentialscan beundefinedwhen not available or failed to load, ensure thatisAWSSTSCluster,isAzureWIFCluster, andisGCPWIFClusterhandle undefined gracefully without throwing runtime errors. Inspect their implementations in the operator-hub-utils file to confirm they perform null/undefined checks before accessing properties on the cloudCredentials parameter.
frontend/packages/operator-lifecycle-manager/src/hooks/useOperatorCatalogItems.tsx
Outdated
Show resolved
Hide resolved
…cloudCredential isn't present on the cluster
b44bc28 to
4222608
Compare
|
/retest |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhamilto, TheRealJon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/label acknowledge-critical-fixes-only |
|
/assign @yapei for verification |
|
@rhamilto: GitHub didn't allow me to assign the following users: for, verification. Note that only openshift members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. DetailsIn 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-sigs/prow repository. |
|
/hold Revision 4222608 was retested 3 times: holding |
|
/hold cancel |
|
/retest |
|
/retest |
|
/override ci/prow/okd-scos-images |
|
@jhadvig: Overrode contexts on behalf of jhadvig: ci/prow/okd-scos-images DetailsIn 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-sigs/prow repository. |
|
/retest |
|
/hold Revision 4222608 was retested 3 times: holding |
|
/hold cancel |
|
/retest |
1 similar comment
|
/retest |
|
/test backend |
|
@rhamilto: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
|
@rhamilto: Jira Issue Verification Checks: Jira Issue OCPBUGS-66247 Jira Issue OCPBUGS-66247 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 DetailsIn 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 openshift-eng/jira-lifecycle-plugin repository. |
|
@rhamilto: new pull request created: #15900 DetailsIn 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-sigs/prow repository. |
|
@rhamilto: new pull request created: #15901 DetailsIn 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-sigs/prow repository. |
|
Fix included in accepted release 4.22.0-0.nightly-2026-01-14-031657 |
…cloudCredential isn't present on the cluster
Tested against CRC version: 2.57.0+ae41f6 and Operators now display in Software Catalog.
Screen.Recording.2025-12-03.at.11.36.52.AM.mov