OCPBUGS-65484: Add debug-useful ClusterOperator relatedObjects - #283
OCPBUGS-65484: Add debug-useful ClusterOperator relatedObjects#283RadekManak wants to merge 1 commit into
Conversation
|
@RadekManak: This pull request references Jira Issue OCPBUGS-65484, 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: 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
| }, | ||
| { | ||
| Group: "rbac.authorization.k8s.io", | ||
| Resource: "clusterroles", |
There was a problem hiding this comment.
Is a ClusterRole all you need? I'd expect you'd also need a ClusterRoleBinding that attaches that role to a ServiceAccount? And maybe other things?
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
|
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
|
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 (4)
🚧 Files skipped from review as they are similar to previous changes (3)
WalkthroughThe PR expands ChangesRelated objects synchronization
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/remove-lifecycle rotten |
9707b28 to
b02fadd
Compare
|
@RadekManak: This pull request references Jira Issue OCPBUGS-65484, 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. |
b02fadd to
e078fff
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@related_objects_test.go`:
- Around line 13-22: Add an explicit expected complete set of related objects in
the relatedObjects test, and assert that relatedObjects equals this set
independently of the manifest contents. Retain the existing manifest unmarshal
and equality assertion so the test still detects drift between relatedObjects
and manifests/05-clusteroperator.yaml.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 8b6723fd-d64e-486e-92c1-9c9f44efdbaf
📒 Files selected for processing (3)
manifests/05-clusteroperator.yamlrelated_objects_test.gostatus.go
🚧 Files skipped from review as they are similar to previous changes (1)
- manifests/05-clusteroperator.yaml
|
/hold cancel |
Add ClusterRoles/ClusterRoleBindings, foreign-namespace config-managed Role/RoleBinding, operator-namespace Roles/RoleBindings, CSRs, and PrometheusRules to relatedObjects so inspect and must-gather collect the resources needed to debug machine-approver. Keep Go and the ClusterOperator manifest in sync with a parity test.
e078fff to
6470be8
Compare
|
@RadekManak: This pull request references Jira Issue OCPBUGS-65484, 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: 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. |
|
@openshift-ci-robot: GitHub didn't allow me to request PR reviews from the following users: sunzhaohua2. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. 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-required |
|
@RadekManak: The following test 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. |
Expand
machine-approverClusterOperatorrelatedObjectswith RBAC that namespace inspect does not collect.Keeps the existing namespace and CertificateSigningRequests entries.
Added relatedObjects
system:openshift:controller:machine-approver,system:openshift:controller:machine-approver-capimachine-approverinopenshift-config-managedopenshift-cluster-machine-approverTests
Parity test keeping the Go list in sync with the ClusterOperator manifest.
Summary by CodeRabbit
Bug Fixes
Tests