Skip to content

Commit

Permalink
Add additional RBAC.
Browse files Browse the repository at this point in the history
  • Loading branch information
bigkevmcd committed Sep 20, 2022
1 parent e91987c commit 5132b0e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,12 @@ rules:
- patch
- update
- watch
- apiGroups:
- gitops.weave.works
resources:
- gitopsclusters
verbs:
- get
- list
- patch
- watch
1 change: 1 addition & 0 deletions controllers/clusterbootstrapconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func NewClusterBootstrapConfigReconciler(c client.Client, s *runtime.Scheme) *Cl
//+kubebuilder:rbac:groups=batch,resources=jobs,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters,verbs=get;list;watch;update;patch
//+kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch
// +kubebuilder:rbac:groups="gitops.weave.works",resources=gitopsclusters,verbs=get;watch;list;patch

// 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 5132b0e

Please sign in to comment.