Skip to content

Commit 4194cf4

Browse files
committed
Fix bugs
1 parent 5ce4d37 commit 4194cf4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

controlplane/config/rbac/role.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ metadata:
55
creationTimestamp: null
66
name: manager-role
77
rules:
8+
- apiGroups:
9+
- controlplane.miscord.win
10+
resources:
11+
- cidrblocks
12+
verbs:
13+
- get
14+
- list
15+
- watch
816
- apiGroups:
917
- controlplane.miscord.win
1018
resources:

controlplane/controllers/cidrclaim_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ type CIDRClaimReconciler struct {
4343
//+kubebuilder:rbac:groups=controlplane.miscord.win,resources=cidrclaims,verbs=get;list;watch;create;update;patch;delete
4444
//+kubebuilder:rbac:groups=controlplane.miscord.win,resources=cidrclaims/status,verbs=get;update;patch
4545
//+kubebuilder:rbac:groups=controlplane.miscord.win,resources=cidrclaims/finalizers,verbs=update
46+
//+kubebuilder:rbac:groups=controlplane.miscord.win,resources=cidrblocks,verbs=get;list;watch
4647

4748
// Reconcile is part of the main kubernetes reconciliation loop which aims to
4849
// move the current state of the cluster closer to the desired state.

0 commit comments

Comments
 (0)