Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions manifests/05-clusteroperator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
5 changes: 5 additions & 0 deletions status.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ var relatedObjects = []osconfigv1.ObjectReference{
Resource: "certificatesigningrequests",
Name: "",
},
{
Group: "rbac.authorization.k8s.io",
Resource: "clusterroles",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Name: "system:openshift:controller:machine-approver",
},
}

type statusController struct {
Expand Down