diff --git a/controlplane/config/rbac/role.yaml b/controlplane/config/rbac/role.yaml index 1a36a0077..2f74605cb 100644 --- a/controlplane/config/rbac/role.yaml +++ b/controlplane/config/rbac/role.yaml @@ -5,6 +5,14 @@ metadata: creationTimestamp: null name: manager-role rules: +- apiGroups: + - controlplane.miscord.win + resources: + - cidrblocks + verbs: + - get + - list + - watch - apiGroups: - controlplane.miscord.win resources: diff --git a/controlplane/controllers/cidrclaim_controller.go b/controlplane/controllers/cidrclaim_controller.go index e60f304f6..c940505d9 100644 --- a/controlplane/controllers/cidrclaim_controller.go +++ b/controlplane/controllers/cidrclaim_controller.go @@ -43,6 +43,7 @@ type CIDRClaimReconciler struct { //+kubebuilder:rbac:groups=controlplane.miscord.win,resources=cidrclaims,verbs=get;list;watch;create;update;patch;delete //+kubebuilder:rbac:groups=controlplane.miscord.win,resources=cidrclaims/status,verbs=get;update;patch //+kubebuilder:rbac:groups=controlplane.miscord.win,resources=cidrclaims/finalizers,verbs=update +//+kubebuilder:rbac:groups=controlplane.miscord.win,resources=cidrblocks,verbs=get;list;watch // Reconcile is part of the main kubernetes reconciliation loop which aims to // move the current state of the cluster closer to the desired state.