Skip to content

Commit 5132b0e

Browse files
committed
Add additional RBAC.
1 parent e91987c commit 5132b0e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

config/rbac/role.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,12 @@ rules:
6161
- patch
6262
- update
6363
- watch
64+
- apiGroups:
65+
- gitops.weave.works
66+
resources:
67+
- gitopsclusters
68+
verbs:
69+
- get
70+
- list
71+
- patch
72+
- watch

controllers/clusterbootstrapconfig_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ func NewClusterBootstrapConfigReconciler(c client.Client, s *runtime.Scheme) *Cl
6363
//+kubebuilder:rbac:groups=batch,resources=jobs,verbs=get;list;watch;create;update;patch;delete
6464
//+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters,verbs=get;list;watch;update;patch
6565
//+kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch
66+
// +kubebuilder:rbac:groups="gitops.weave.works",resources=gitopsclusters,verbs=get;watch;list;patch
6667

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

0 commit comments

Comments
 (0)