Skip to content

Commit

Permalink
Merge pull request #76 from miscord-dev/add-env
Browse files Browse the repository at this point in the history
Add tetrapod_clients.yaml
  • Loading branch information
tsuzu authored Mar 15, 2023
2 parents 48471a0 + 4194cf4 commit 053a547
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
1 change: 1 addition & 0 deletions controlplane/config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ resources:
- auth_proxy_role.yaml
- auth_proxy_role_binding.yaml
- auth_proxy_client_clusterrole.yaml
- tetrapod_clients.yaml
8 changes: 8 additions & 0 deletions controlplane/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
60 changes: 60 additions & 0 deletions controlplane/config/rbac/tetrapod_clients.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: tetrapod-clients-role
rules:
# CIDRClaimTemplates
- apiGroups:
- controlplane.miscord.win
resources:
- cidrclaimtemplates
verbs:
- get
- list
- watch
- apiGroups:
- controlplane.miscord.win
resources:
- cidrclaimtemplates/status
verbs:
- get

# CIDRClaims
- apiGroups:
- controlplane.miscord.win
resources:
- cidrclaims
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- controlplane.miscord.win
resources:
- cidrclaims/status
verbs:
- get

# PeerNodes
- apiGroups:
- controlplane.miscord.win
resources:
- peernodes
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- controlplane.miscord.win
resources:
- peernodes/status
verbs:
- get
1 change: 1 addition & 0 deletions controlplane/controllers/cidrclaim_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 053a547

Please sign in to comment.