From 9707b28d1a6487f8239fdc4d398446da06a76dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Ma=C5=88=C3=A1k?= Date: Wed, 12 Nov 2025 17:56:43 +0100 Subject: [PATCH] Add ClusterRole to ClusterOperator relatedObjects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds the system:openshift:controller:machine-approver ClusterRole to the ClusterOperator's relatedObjects to ensure it's collected by oc adm inspect and must-gather for debugging purposes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- manifests/05-clusteroperator.yaml | 3 +++ status.go | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/manifests/05-clusteroperator.yaml b/manifests/05-clusteroperator.yaml index ffa8b6a48..87cb664a7 100644 --- a/manifests/05-clusteroperator.yaml +++ b/manifests/05-clusteroperator.yaml @@ -15,6 +15,9 @@ status: - group: certificates.k8s.io name: "" resource: certificatesigningrequests + - group: rbac.authorization.k8s.io + name: system:openshift:controller:machine-approver + resource: clusterroles versions: - name: operator version: "0.0.1-snapshot" diff --git a/status.go b/status.go index 12823511e..6e3e9aa00 100644 --- a/status.go +++ b/status.go @@ -46,6 +46,11 @@ var relatedObjects = []osconfigv1.ObjectReference{ Resource: "certificatesigningrequests", Name: "", }, + { + Group: "rbac.authorization.k8s.io", + Resource: "clusterroles", + Name: "system:openshift:controller:machine-approver", + }, } type statusController struct {