CONSOLE-5271: Gate lifecycle metadata on server-side OLM lifecycle flag#16668
CONSOLE-5271: Gate lifecycle metadata on server-side OLM lifecycle flag#16668perdasilva wants to merge 2 commits into
Conversation
|
@perdasilva: This pull request references CONSOLE-5271 which is a valid jira issue. 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (7)
✅ Files skipped from review due to trivial changes (2)
🚧 Files skipped from review as they are similar to previous changes (5)
WalkthroughAdds a new ChangesOLM Lifecycle Metadata Flag Pipeline
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
23500fb to
553fdaa
Compare
Replace the frontend FeatureGate CRD watch with a server-side flag so that operator lifecycle metadata columns (cluster compatibility, support phase) on the Installed Operators page are controlled by the console operator configuration rather than requiring frontend RBAC to read the FeatureGate resource. - Add --olm-lifecycle bridge flag and OLMLifecycleEnabled config field - Pass olmLifecycle through SERVER_FLAGS to the frontend - Simplify detectLifecycleMetadata to read the server flag directly - Remove FeatureGateModel (no longer needed in frontend) - Add backend config test for the new flag Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
553fdaa to
6c9e8a3
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: perdasilva, 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 |
Rename all occurrences of the OLM lifecycle config field, CLI flag, and SERVER_FLAGS property to include "Metadata" for consistency with the feature name (operator lifecycle metadata). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Per G. da Silva <pegoncal@redhat.com>
5b0213f to
21eab53
Compare
|
New changes are detected. LGTM label has been removed. |
|
@perdasilva: The following tests failed, say
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. |
Analysis / Root cause:
The operator lifecycle metadata UI (cluster compatibility and support phase columns on the Installed Operators page) was gated on the console's
--tech-previewserver flag (window.SERVER_FLAGS.techPreview). This couples the feature to the console's tech-preview mode rather than the cluster-level FeatureGate that controls the OLM lifecycle service itself. The frontend cannot read theFeatureGateresource directly because not all users have RBAC for it, so the gating must be done server-side via the console-operator.Solution description:
--olm-lifecyclebridge flag andOLMLifecycleEnabledconfig field toClusterInfoolmLifecyclethroughSERVER_FLAGSto the frontend viajsGlobalsdetectLifecycleMetadatato readwindow.SERVER_FLAGS.olmLifecycleinstead oftechPreviewFeatureGateModel(no longer needed — gating is handled server-side)Screenshots / screen recording:
Test setup:
Requires the companion console-operator PR (openshift/console-operator#1174) to set
olmLifecycleEnabledbased on theOLMLifecycleAndCompatibilitycluster FeatureGate.Test cases:
--olm-lifecycleis set to true--tech-previewis setBrowser conformance:
Additional info:
Companion PR: openshift/console-operator#1174 (sets
olmLifecycleEnabledin the ConsoleConfig based on the cluster FeatureGate).Depends on #16655 and #16551.
Reviewers and assignees:
/assign @perdasilva
Summary by CodeRabbit
--olm-lifecycle-metadataconfiguration flag (defaultfalse) to control whether Operator Lifecycle Manager lifecycle metadata is exposed to the frontend.olmLifecycleMetadataEnabled, which maps to the new--olm-lifecycle-metadataflag.olmLifecycleMetadatavalue.