Skip to content

Commit

Permalink
Merge pull request #19 from vshn/fix/kubebuilder-typos
Browse files Browse the repository at this point in the history
Fix typos in configuration used to generate controller ClusterRole
  • Loading branch information
simu authored Oct 20, 2021
2 parents 13d83e1 + 74d46c2 commit f8966cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rules:
- apiGroups:
- ""
resources:
- serviceaccount
- serviceaccounts
verbs:
- create
- delete
Expand Down Expand Up @@ -79,7 +79,7 @@ rules:
- apiGroups:
- rbac.authorization.k8s.io
resources:
- rolebinding
- rolebindings
verbs:
- create
- delete
Expand Down
4 changes: 2 additions & 2 deletions controllers/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ type StatefulSetReconciler struct {
//+kubebuilder:rbac:groups=core,resources=persistentvolumeclaims,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=batch,resources=jobs,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=batch,resources=jobs/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebinding,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups="",resources=serviceaccount,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups="",resources=serviceaccounts,verbs=get;list;watch;create;update;patch;delete

// Reconcile is the main work loop, reacting to changes in statefulsets and initiating resizing of StatefulSets.
func (r *StatefulSetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
Expand Down

0 comments on commit f8966cc

Please sign in to comment.