diff --git a/manifests/0000_26_cloud-controller-manager-operator_12_clusteroperator.yaml b/manifests/0000_26_cloud-controller-manager-operator_12_clusteroperator.yaml index 18ca4d325..b2c7112ce 100644 --- a/manifests/0000_26_cloud-controller-manager-operator_12_clusteroperator.yaml +++ b/manifests/0000_26_cloud-controller-manager-operator_12_clusteroperator.yaml @@ -22,3 +22,6 @@ status: - group: "" name: openshift-cloud-controller-manager-operator resource: namespaces + - group: rbac.authorization.k8s.io + name: cloud-controller-manager + resource: clusterroles diff --git a/pkg/controllers/status.go b/pkg/controllers/status.go index 46dfbc1d5..73e3c9cdf 100644 --- a/pkg/controllers/status.go +++ b/pkg/controllers/status.go @@ -207,6 +207,7 @@ func (r *ClusterOperatorStatusClient) relatedObjects() []configv1.ObjectReferenc {Resource: "namespaces", Name: defaultManagementNamespace}, {Group: configv1.GroupName, Resource: "clusteroperators", Name: clusterOperatorName}, {Resource: "namespaces", Name: r.ManagedNamespace}, + {Group: "rbac.authorization.k8s.io", Resource: "clusterroles", Name: clusterOperatorName}, } }