Skip to content

Commit

Permalink
fix: update role config
Browse files Browse the repository at this point in the history
  • Loading branch information
lbbniu committed Apr 26, 2023
1 parent 162687a commit 9ed25e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions deploy/craned/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ rules:
- apps
resources:
- deployments
- deployments/scale
- statefulsets
- statefulsets/scale
verbs:
- get
- list
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/ehpa/effective_hpa_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type EffectiveHPAController struct {
//+kubebuilder:rbac:groups=core,resources=pods;nodes,verbs=get;list;watch
//+kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;update
//+kubebuilder:rbac:groups=core,resources=events,verbs=create;update;patch
//+kubebuilder:rbac:groups=apps,resources=deployments;statefulsets,verbs=get;list;watch
//+kubebuilder:rbac:groups=apps,resources=deployments;deployments/scale;statefulsets;statefulsets/scale,verbs=get;list;watch
//+kubebuilder:rbac:groups=autoscaling,resources=horizontalpodautoscalers,verbs=*
//+kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;update
//+kubebuilder:rbac:groups=analysis.crane.io,resources=*,verbs=*
Expand Down

0 comments on commit 9ed25e1

Please sign in to comment.