Skip to content

Commit 053a547

Browse files
authored
Merge pull request #76 from miscord-dev/add-env
Add tetrapod_clients.yaml
2 parents 48471a0 + 4194cf4 commit 053a547

File tree

4 files changed

+70
-0
lines changed

4 files changed

+70
-0
lines changed

controlplane/config/rbac/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ resources:
1616
- auth_proxy_role.yaml
1717
- auth_proxy_role_binding.yaml
1818
- auth_proxy_client_clusterrole.yaml
19+
- tetrapod_clients.yaml

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:
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: tetrapod-clients-role
5+
rules:
6+
# CIDRClaimTemplates
7+
- apiGroups:
8+
- controlplane.miscord.win
9+
resources:
10+
- cidrclaimtemplates
11+
verbs:
12+
- get
13+
- list
14+
- watch
15+
- apiGroups:
16+
- controlplane.miscord.win
17+
resources:
18+
- cidrclaimtemplates/status
19+
verbs:
20+
- get
21+
22+
# CIDRClaims
23+
- apiGroups:
24+
- controlplane.miscord.win
25+
resources:
26+
- cidrclaims
27+
verbs:
28+
- create
29+
- delete
30+
- get
31+
- list
32+
- patch
33+
- update
34+
- watch
35+
- apiGroups:
36+
- controlplane.miscord.win
37+
resources:
38+
- cidrclaims/status
39+
verbs:
40+
- get
41+
42+
# PeerNodes
43+
- apiGroups:
44+
- controlplane.miscord.win
45+
resources:
46+
- peernodes
47+
verbs:
48+
- create
49+
- delete
50+
- get
51+
- list
52+
- patch
53+
- update
54+
- watch
55+
- apiGroups:
56+
- controlplane.miscord.win
57+
resources:
58+
- peernodes/status
59+
verbs:
60+
- get

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)