Files
OpenShell/deploy/helm/openshell/templates/clusterrole.yaml

27 lines
656 B
YAML

# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "openshell.fullname" . }}-node-reader
labels:
{{- include "openshell.labels" . | nindent 4 }}
rules:
# Validate projected sandbox ServiceAccount tokens during the
# IssueSandboxToken bootstrap exchange.
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- list
- watch