Skip to content

Commit 0a08d57

Browse files
committed
fix: karpenter permission issue
1 parent dd02c5c commit 0a08d57

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

charts/tensor-fusion/templates/rbac.yaml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -177,22 +177,9 @@ rules:
177177
- apiGroups:
178178
- karpenter.sh
179179
resources:
180-
- nodeclaims
181-
verbs:
182-
- delete
183-
- get
184-
- list
185-
- patch
186-
- update
187-
- watch
188-
- apiGroups:
189-
- karpenter.*
190-
resources:
191180
- '*'
192181
verbs:
193-
- get
194-
- list
195-
- watch
182+
- '*'
196183
- apiGroups:
197184
- authentication.k8s.io
198185
resources:

config/rbac/role.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ rules:
125125
- patch
126126
- update
127127
- watch
128+
- apiGroups:
129+
- karpenter.sh
130+
resources:
131+
- '*'
132+
verbs:
133+
- '*'
128134
- apiGroups:
129135
- tensor-fusion.ai
130136
resources:

internal/controller/gpunode_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ type GPUNodeReconciler struct {
5858
// +kubebuilder:rbac:groups=tensor-fusion.ai,resources=gpunodes/status,verbs=get;update;patch
5959
// +kubebuilder:rbac:groups=tensor-fusion.ai,resources=gpunodes/finalizers,verbs=update
6060
// +kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;list;watch;create;update;patch;delete
61+
// +kubebuilder:rbac:groups=karpenter.sh,resources=*,verbs=*
6162

6263
// Reconcile GPU nodes
6364
func (r *GPUNodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {

0 commit comments

Comments
 (0)