mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-16 05:20:22 +08:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
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: Role
|
|
metadata:
|
|
name: {{ include "openshell.fullname" . }}-sandbox
|
|
namespace: {{ include "openshell.sandboxNamespace" . }}
|
|
labels:
|
|
{{- include "openshell.labels" . | nindent 4 }}
|
|
rules:
|
|
- apiGroups:
|
|
- agents.x-k8s.io
|
|
resources:
|
|
- sandboxes
|
|
- sandboxes/status
|
|
verbs:
|
|
- create
|
|
- delete
|
|
- get
|
|
- list
|
|
- patch
|
|
- update
|
|
- watch
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- events
|
|
verbs:
|
|
- get
|
|
- list
|
|
- watch
|
|
# Per-sandbox identity: TokenReview authenticates the projected token from
|
|
# the configured sandbox service account, then the gateway resolves the
|
|
# returned pod name and UID to the pod's `openshell.io/sandbox-id`
|
|
# annotation. patch is intentionally NOT granted — the annotation is set
|
|
# once at pod create and must remain immutable for the lifetime of the
|
|
# sandbox.
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- pods
|
|
verbs:
|
|
- get
|