From ad6509a8af0981c133b086907b68d97cfd0f0977 Mon Sep 17 00:00:00 2001 From: Vince Prignano Date: Wed, 26 Jun 2019 09:56:48 -0700 Subject: [PATCH] fix rbac Signed-off-by: Vince Prignano --- config/rbac/role.yaml | 8 ++++---- pkg/controller/controller.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 0759718b1e5d..d3d450ecadfb 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -37,7 +37,7 @@ rules: - patch - delete - apiGroups: - - cluster.k8s.io + - cluster.sigs.k8s.io resources: - clusters verbs: @@ -49,7 +49,7 @@ rules: - patch - delete - apiGroups: - - cluster.k8s.io + - cluster.sigs.k8s.io resources: - machines - machines/status @@ -62,7 +62,7 @@ rules: - patch - delete - apiGroups: - - cluster.k8s.io + - cluster.sigs.k8s.io resources: - machinedeployments - machinedeployments/status @@ -75,7 +75,7 @@ rules: - patch - delete - apiGroups: - - cluster.k8s.io + - cluster.sigs.k8s.io resources: - machinesets - machinesets/status diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index a40e21905ea9..1f0c6bec2c9e 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -23,10 +23,10 @@ import ( // +kubebuilder:rbac:groups=core,resources=events,verbs=get;list;watch;create;patch // +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch // +kubebuilder:rbac:groups=core,resources=nodes,verbs=get;list;watch;create;update;patch;delete -// +kubebuilder:rbac:groups=cluster.k8s.io,resources=clusters,verbs=get;list;watch;create;update;patch;delete -// +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=machinedeployments;machinedeployments/status,verbs=get;list;watch;create;update;patch;delete -// +kubebuilder:rbac:groups=cluster.k8s.io,resources=machinesets;machinesets/status,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=cluster.sigs.k8s.io,resources=clusters,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=cluster.sigs.k8s.io,resources=machines;machines/status,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=cluster.sigs.k8s.io,resources=machinedeployments;machinedeployments/status,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=cluster.sigs.k8s.io,resources=machinesets;machinesets/status,verbs=get;list;watch;create;update;patch;delete // AddToManagerFuncs is a list of functions to add all Controllers to the Manager var AddToManagerFuncs []func(manager.Manager) error