Skip to content

Commit 35935e6

Browse files
committed
fix(helm): grant node read access to service account for GPU capacity checks
Add ClusterRole and ClusterRoleBinding so the openshell service account can list nodes at the cluster scope, which is required by the GPU node capacity check in the Kubernetes driver. Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent 9706725 commit 35935e6

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
apiVersion: rbac.authorization.k8s.io/v1
5+
kind: ClusterRole
6+
metadata:
7+
name: {{ include "openshell.fullname" . }}-node-reader
8+
labels:
9+
{{- include "openshell.labels" . | nindent 4 }}
10+
rules:
11+
- apiGroups:
12+
- ""
13+
resources:
14+
- nodes
15+
verbs:
16+
- get
17+
- list
18+
- watch
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
apiVersion: rbac.authorization.k8s.io/v1
5+
kind: ClusterRoleBinding
6+
metadata:
7+
name: {{ include "openshell.fullname" . }}-node-reader
8+
labels:
9+
{{- include "openshell.labels" . | nindent 4 }}
10+
roleRef:
11+
apiGroup: rbac.authorization.k8s.io
12+
kind: ClusterRole
13+
name: {{ include "openshell.fullname" . }}-node-reader
14+
subjects:
15+
- kind: ServiceAccount
16+
name: {{ include "openshell.serviceAccountName" . }}
17+
namespace: {{ .Release.Namespace }}

0 commit comments

Comments
 (0)