Skip to content

Commit

Permalink
fix(yurt-manager): add clusterrole for nodes/status subresources (#1884)
Browse files Browse the repository at this point in the history
  • Loading branch information
qclc authored Dec 28, 2023
1 parent 817f679 commit 29bca00
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions charts/yurt-manager/templates/yurt-manager-auto-generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,16 @@ rules:
- patch
- update
- watch
- apiGroups:
- ""
resources:
- nodes/status
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ type ReconcileNodeLifeCycle struct {
podUpdateQueue workqueue.RateLimitingInterface
}

// +kubebuilder:rbac:groups=core,resources=nodes/status,verbs=get;list;watch;update;patch

// Add creates a new CsrApprover Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller
// and Start it when the Manager is Started.
func Add(ctx context.Context, cfg *appconfig.CompletedConfig, mgr manager.Manager) error {
Expand Down

0 comments on commit 29bca00

Please sign in to comment.