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 3, 2024
1 parent ab9aed3 commit 3e12421
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion deploy/charts/arcadia/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: arcadia
description: A Helm chart(KubeBB Component) for KubeAGI Arcadia
type: application
version: 0.2.30
version: 0.2.31
appVersion: "0.1.0"

keywords:
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 3e12421

Please sign in to comment.