Skip to content

Commit

Permalink
fix: apiserver needs access to storageclass
Browse files Browse the repository at this point in the history
  • Loading branch information
0xff-dev committed Feb 2, 2024
1 parent b4556df commit d8ff21e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -601,3 +601,10 @@ rules:
- get
- patch
- update
- apiGroups:
- storage.k8s.io
resources:
- storageclasses
verbs:
- get
- list
1 change: 1 addition & 0 deletions controllers/evaluation/rag_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ type RAGReconciler struct {
//+kubebuilder:rbac:groups=evaluation.arcadia.kubeagi.k8s.com.cn,resources=rags/finalizers,verbs=update
//+kubebuilder:rbac:groups=batch,resources=jobs,verbs=*
//+kubebuilder:rbac:groups="",resources=persistentvolumeclaims,verbs=*
//+kubebuilder:rbac:groups="storage.k8s.io",resources=storageclasses,verbs=get;list

// 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
7 changes: 7 additions & 0 deletions deploy/charts/arcadia/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -618,3 +618,10 @@ rules:
- get
- patch
- update
- apiGroups:
- storage.k8s.io
resources:
- storageclasses
verbs:
- get
- list

0 comments on commit d8ff21e

Please sign in to comment.