Skip to content

Commit

Permalink
add endpoints list/watch access to the manager c-role (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
therealak12 authored Jan 11, 2024
1 parent 3c2163a commit 3ac43ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ rules:
- endpoints
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/route/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func NewReconciler(mgr manager.Manager, cfg *config.Config) *Reconciler {
// +kubebuilder:rbac:groups=projectcontour.io,resources=httpproxies,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch
// +kubebuilder:rbac:groups=core,resources=endpoints,verbs=get
// +kubebuilder:rbac:groups=core,resources=endpoints,verbs=get;list;watch

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
r.logger = log.FromContext(ctx)
Expand Down

0 comments on commit 3ac43ae

Please sign in to comment.