OCPBUGS-65469: Add all managed resources to ClusterOperator relatedObjects#459
OCPBUGS-65469: Add all managed resources to ClusterOperator relatedObjects#459RadekManak wants to merge 2 commits intoopenshift:mainfrom
Conversation
This adds the cloud-controller-manager ClusterRole to the ClusterOperator's relatedObjects to ensure it's collected by oc adm inspect and must-gather for debugging purposes. The name field is set to the specific ClusterRole name since the operator manages a single ClusterRole resource. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Add configmaps, services, deployments, networkpolicies, serviceaccounts, roles, rolebindings, clusterrolebindings, and credentialsrequests to the relatedObjects list so that oc adm inspect and must-gather collect the full set of resources managed by the operator. Also fixes the namespace ordering to list the operator namespace before the managed namespace.
|
@RadekManak: This pull request references Jira Issue OCPBUGS-65469, 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. |
|
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 (2)
WalkthroughThe pull request expands the cloud-controller-manager operator's relatedObjects tracking by adding comprehensive resource references across multiple namespaces and reordering existing entries. The implementation logic in status.go is updated to return a larger set of ObjectReference entries, and the corresponding manifest declaration is similarly expanded. ChangesRelatedObjects Tracking Expansion
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 11 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.1)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions Comment |
|
[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 |
|
@RadekManak: 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. |
Adds all resources managed by the cloud-controller-manager operator to the ClusterOperator's relatedObjects list, ensuring
oc adm inspectand must-gather collect the complete set of resources needed for debugging.Resources added
Also fixes the namespace ordering to list the operator namespace (
openshift-cloud-controller-manager-operator) before the managed namespace (openshift-cloud-controller-manager).Both the static manifest YAML and the Go source are kept in sync.
Summary by CodeRabbit