Skip to content

Commit

Permalink
Update RBAC from upstream docs.
Browse files Browse the repository at this point in the history
The cluster-api project has docs that describe how to build a
provider.  This patch syncs some recent changes to their documented
RBAC.

kubernetes-sigs/cluster-api#947
  • Loading branch information
russellb committed May 20, 2019
1 parent 7f21570 commit e293957
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions config/rbac/rbac_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ rules:
resources:
- machines
- machines/status
- machinedeployments
- machinedeployments/status
- machinesets
- machinesets/status
- machineclasses
verbs:
- get
- list
Expand All @@ -25,8 +20,7 @@ rules:
- apiGroups:
- cluster.k8s.io
resources:
- clusters
- clusters/status
- machineClasses
verbs:
- get
- list
Expand Down
4 changes: 2 additions & 2 deletions pkg/cloud/baremetal/actuators/machine/actuator.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ const (
)

// Add RBAC rules to access cluster-api resources
//+kubebuilder:rbac:groups=cluster.k8s.io,resources=machines;machines/status;machinedeployments;machinedeployments/status;machinesets;machinesets/status;machineclasses,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=cluster.k8s.io,resources=clusters;clusters/status,verbs=get;list;watch
//+kubebuilder:rbac:groups=cluster.k8s.io,resources=machines;machines/status,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=cluster.k8s.io,resources=machineClasses,verbs=get;list;watch
//+kubebuilder:rbac:groups="",resources=nodes;events,verbs=get;list;watch;create;update;patch;delete

// RBAC to access BareMetalHost resources from metal3.io
Expand Down

0 comments on commit e293957

Please sign in to comment.