mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 12:16:03 +09:00
feat(tenant): add the vGPU entitlement, keep GPU budgets out of quotas
A vGPU class may be used only by an entitled tenant, and no tenant may grant itself the entitlement. The Tenant field gpu.vgpu is set by the parent's administrator, so the effective value is the field and the parent's value together, and it reaches the namespace as the namespace.cozystack.io/vgpu label. The label is always written, so only "true" entitles and a missing label cannot be read as consent. _namespace.vgpu is written only when entitled, since every app in the tenant reads that Secret and an always-present key would upgrade them all. GPU budget keys in the gpuclass.cozystack.io domain are checked when a VM or a worker pool is written, not against pods, so they are dropped before the ResourceQuota render, and a tenant with only GPU budgets gets no ResourceQuota or LimitRange. The domain test matches the one the API server uses, so a malformed budget key never becomes a pod quota either. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>
This commit is contained in:
10 files changed
+281
-5
No files matched your search
Generated
+9
@@ -53,4 +53,13 @@ type ConfigSpec struct {
|
||||
// Define resource quotas for the tenant.
|
||||
// +kubebuilder:default:={}
|
||||
ResourceQuotas map[string]resource.Quantity `json:"resourceQuotas,omitempty"`
|
||||
// GPU settings of the tenant.
|
||||
// +kubebuilder:default:={}
|
||||
Gpu GPU `json:"gpu"`
|
||||
}
|
||||
|
||||
type GPU struct {
|
||||
// Entitle the tenant to vGPU classes. Takes effect only when the parent tenant is entitled too; the root tenant takes its value from the platform's `gpu.vgpu`.
|
||||
// +kubebuilder:default:=false
|
||||
Vgpu bool `json:"vgpu,omitempty"`
|
||||
}
|
||||
+16
@@ -66,6 +66,7 @@ func (in *ConfigSpec) DeepCopyInto(out *ConfigSpec) {
|
||||
(*out)[key] = val.DeepCopy()
|
||||
}
|
||||
}
|
||||
out.Gpu = in.Gpu
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigSpec.
|
||||
@@ -77,3 +78,18 @@ func (in *ConfigSpec) DeepCopy() *ConfigSpec {
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *GPU) DeepCopyInto(out *GPU) {
|
||||
*out = *in
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GPU.
|
||||
func (in *GPU) DeepCopy() *GPU {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(GPU)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
@@ -92,6 +92,8 @@ Tenant network isolation is enforced with Cilium network policies. On the `isp-h
|
||||
| `schedulingClass` | The name of a SchedulingClass CR to apply scheduling constraints for this tenant's workloads. | `string` | `""` |
|
||||
| `allowedSchedulingClasses` | SchedulingClasses an application in this tenant may select through its own `schedulingClass`, in place of the tenant's. Empty allows none, so every application runs under the tenant's class. Inherited from the parent tenant, and not settable here, when the parent has a `schedulingClass` or a non-empty list. | `[]string` | `[]` |
|
||||
| `resourceQuotas` | Define resource quotas for the tenant. | `map[string]quantity` | `{}` |
|
||||
| `gpu` | GPU settings of the tenant. | `object` | `{}` |
|
||||
| `gpu.vgpu` | Entitle the tenant to vGPU classes. Takes effect only when the parent tenant is entitled too; the root tenant takes its value from the platform's `gpu.vgpu`. | `bool` | `false` |
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
@@ -86,6 +86,8 @@
|
||||
{{- if or $parentNamespace.schedulingClass $parentNamespace.allowedSchedulingClasses }}
|
||||
{{- $allowedSchedulingClasses = $parentNamespace.allowedSchedulingClasses | default list }}
|
||||
{{- end }}
|
||||
|
||||
{{- $vgpu := and (eq (printf "%v" ($parentNamespace.vgpu | default false)) "true") (eq (printf "%v" ((.Values.gpu).vgpu | default false)) "true") }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
@@ -101,6 +103,7 @@ metadata:
|
||||
namespace.cozystack.io/monitoring: {{ $monitoring | quote }}
|
||||
namespace.cozystack.io/seaweedfs: {{ $seaweedfs | quote }}
|
||||
namespace.cozystack.io/host: {{ $computedHost | quote }}
|
||||
namespace.cozystack.io/vgpu: {{ $vgpu | quote }}
|
||||
{{- with $schedulingClass }}
|
||||
scheduler.cozystack.io/scheduling-class: {{ . | quote }}
|
||||
{{- end }}
|
||||
@@ -148,4 +151,7 @@ stringData:
|
||||
{{- with $allowedSchedulingClasses }}
|
||||
allowedSchedulingClasses: {{ toJson . }}
|
||||
{{- end }}
|
||||
{{- if $vgpu }}
|
||||
vgpu: true
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -1,4 +1,13 @@
|
||||
{{- if .Values.resourceQuotas }}
|
||||
{{- /* Keys in the gpuclass.cozystack.io domain are GPU budgets, not pod
|
||||
resources; model.IsGPUQuotaKey in internal/gpu decides the same. */}}
|
||||
{{- $resourceQuotas := dict }}
|
||||
{{- range $key, $value := .Values.resourceQuotas }}
|
||||
{{- $domain := index (splitList "/" $key) 0 }}
|
||||
{{- if not (or (eq $domain "gpuclass.cozystack.io") (hasSuffix ".gpuclass.cozystack.io" $domain)) }}
|
||||
{{- $_ := set $resourceQuotas $key $value }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if $resourceQuotas }}
|
||||
apiVersion: v1
|
||||
kind: ResourceQuota
|
||||
metadata:
|
||||
@@ -6,14 +15,14 @@ metadata:
|
||||
namespace: {{ include "tenant.name" . }}
|
||||
spec:
|
||||
hard:
|
||||
{{- include "cozy-lib.resources.flatten" (list .Values.resourceQuotas $) | nindent 6 }}
|
||||
{{- include "cozy-lib.resources.flatten" (list $resourceQuotas $) | nindent 6 }}
|
||||
{{- /* The LimitRange only exists so pods without requests or limits still pass
|
||||
a quota that tracks them, so it defaults only the resources the quota
|
||||
bounds. A default limit on any other resource does nothing for the quota
|
||||
and refuses every container that requests more without a limit of its
|
||||
own: a 128Mi memory default under a quota on load balancers, cpu or
|
||||
ephemeral-storage alone kept virt-launcher from starting. */}}
|
||||
{{- $hard := include "cozy-lib.resources.flatten" (list .Values.resourceQuotas $) | fromYaml }}
|
||||
{{- $hard := include "cozy-lib.resources.flatten" (list $resourceQuotas $) | fromYaml }}
|
||||
{{- $cpu := or (hasKey $hard "requests.cpu") (hasKey $hard "limits.cpu") }}
|
||||
{{- $memory := or (hasKey $hard "requests.memory") (hasKey $hard "limits.memory") }}
|
||||
{{- $ephemeral := or (hasKey $hard "requests.ephemeral-storage") (hasKey $hard "limits.ephemeral-storage") }}
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
suite: tenant vGPU entitlement
|
||||
# A tenant is entitled to vGPU only when its own gpu.vgpu is set and its
|
||||
# parent is entitled. The label is always written so that only "true"
|
||||
# entitles; the cozystack-values key is written only when entitled, because
|
||||
# every app in the tenant reads that Secret and a new key re-upgrades them all.
|
||||
templates:
|
||||
- templates/namespace.yaml
|
||||
release:
|
||||
name: tenant-acme
|
||||
namespace: tenant-root
|
||||
set:
|
||||
_cluster:
|
||||
root-host: example.com
|
||||
tests:
|
||||
- it: entitles a tenant that sets the flag under an entitled parent
|
||||
set:
|
||||
_namespace:
|
||||
vgpu: true
|
||||
gpu:
|
||||
vgpu: true
|
||||
asserts:
|
||||
- documentSelector:
|
||||
path: kind
|
||||
value: Namespace
|
||||
equal:
|
||||
path: metadata.labels["namespace.cozystack.io/vgpu"]
|
||||
value: "true"
|
||||
- documentSelector:
|
||||
path: kind
|
||||
value: Secret
|
||||
matchRegex:
|
||||
path: stringData["values.yaml"]
|
||||
pattern: "(?m)^_namespace:\\n( .*\\n)* vgpu: true$"
|
||||
|
||||
- it: does not entitle a tenant whose parent is not entitled
|
||||
set:
|
||||
gpu:
|
||||
vgpu: true
|
||||
asserts:
|
||||
- documentSelector:
|
||||
path: kind
|
||||
value: Namespace
|
||||
equal:
|
||||
path: metadata.labels["namespace.cozystack.io/vgpu"]
|
||||
value: "false"
|
||||
- documentSelector:
|
||||
path: kind
|
||||
value: Secret
|
||||
notMatchRegex:
|
||||
path: stringData["values.yaml"]
|
||||
pattern: "(?m)^ vgpu:"
|
||||
|
||||
- it: does not entitle a tenant that leaves the flag unset under an entitled parent
|
||||
set:
|
||||
_namespace:
|
||||
vgpu: true
|
||||
asserts:
|
||||
- documentSelector:
|
||||
path: kind
|
||||
value: Namespace
|
||||
equal:
|
||||
path: metadata.labels["namespace.cozystack.io/vgpu"]
|
||||
value: "false"
|
||||
- documentSelector:
|
||||
path: kind
|
||||
value: Secret
|
||||
notMatchRegex:
|
||||
path: stringData["values.yaml"]
|
||||
pattern: "(?m)^ vgpu:"
|
||||
|
||||
- it: writes the label as false by default
|
||||
asserts:
|
||||
- documentSelector:
|
||||
path: kind
|
||||
value: Namespace
|
||||
equal:
|
||||
path: metadata.labels["namespace.cozystack.io/vgpu"]
|
||||
value: "false"
|
||||
|
||||
# The parent value arrives through a Secret any chart can write; only the
|
||||
# text "true" entitles, so a quoted "false" must not.
|
||||
- it: treats a parent value of the string "false" as not entitled
|
||||
set:
|
||||
_namespace:
|
||||
vgpu: "false"
|
||||
gpu:
|
||||
vgpu: true
|
||||
asserts:
|
||||
- documentSelector:
|
||||
path: kind
|
||||
value: Namespace
|
||||
equal:
|
||||
path: metadata.labels["namespace.cozystack.io/vgpu"]
|
||||
value: "false"
|
||||
|
||||
- it: accepts a parent value of the string "true"
|
||||
set:
|
||||
_namespace:
|
||||
vgpu: "true"
|
||||
gpu:
|
||||
vgpu: true
|
||||
asserts:
|
||||
- documentSelector:
|
||||
path: kind
|
||||
value: Namespace
|
||||
equal:
|
||||
path: metadata.labels["namespace.cozystack.io/vgpu"]
|
||||
value: "true"
|
||||
|
||||
- it: passes the entitlement down to a grandchild that sets the flag
|
||||
release:
|
||||
name: tenant-team
|
||||
namespace: tenant-acme
|
||||
set:
|
||||
_namespace:
|
||||
vgpu: true
|
||||
gpu:
|
||||
vgpu: true
|
||||
asserts:
|
||||
- documentSelector:
|
||||
path: kind
|
||||
value: Namespace
|
||||
equal:
|
||||
path: metadata.labels["namespace.cozystack.io/vgpu"]
|
||||
value: "true"
|
||||
@@ -0,0 +1,90 @@
|
||||
suite: tenant quota render with GPU budget keys
|
||||
# Keys in the gpuclass.cozystack.io domain are GPU budgets checked when a VM
|
||||
# or a worker pool is written, not pod resources, so they never reach the
|
||||
# namespace ResourceQuota, and a tenant whose only keys are GPU budgets gets
|
||||
# neither a ResourceQuota nor the default LimitRange that comes with it.
|
||||
templates:
|
||||
- templates/quota.yaml
|
||||
release:
|
||||
name: tenant-acme
|
||||
namespace: tenant-root
|
||||
tests:
|
||||
- it: renders nothing for a tenant with only GPU budget keys
|
||||
set:
|
||||
resourceQuotas:
|
||||
l40s-24c.gpuclass.cozystack.io/devices: 2
|
||||
gpuclass.cozystack.io/devices: 4
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
|
||||
- it: keeps the GPU budget keys out of a ResourceQuota rendered for other keys
|
||||
set:
|
||||
resourceQuotas:
|
||||
cpu: "4"
|
||||
h100.gpuclass.cozystack.io/devices: 2
|
||||
gpuclass.cozystack.io/devices: 4
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 2
|
||||
- documentSelector:
|
||||
path: kind
|
||||
value: ResourceQuota
|
||||
equal:
|
||||
path: spec.hard
|
||||
value:
|
||||
limits.cpu: "4"
|
||||
requests.cpu: "0.4"
|
||||
- documentSelector:
|
||||
path: kind
|
||||
value: LimitRange
|
||||
equal:
|
||||
path: metadata.name
|
||||
value: tenant-range-limits
|
||||
|
||||
# A malformed key in the budget domain is still a budget, never a pod
|
||||
# resource.
|
||||
- it: keeps a malformed budget-domain key out of the ResourceQuota
|
||||
set:
|
||||
resourceQuotas:
|
||||
a.b.gpuclass.cozystack.io/units: 1
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
|
||||
# A domain that only ends like the budget domain is not one. It bounds no
|
||||
# cpu, memory or ephemeral-storage, so no LimitRange comes with it.
|
||||
- it: renders a key in a look-alike domain into the ResourceQuota
|
||||
set:
|
||||
resourceQuotas:
|
||||
xgpuclass.cozystack.io/devices: 1
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- documentSelector:
|
||||
path: kind
|
||||
value: ResourceQuota
|
||||
isSubset:
|
||||
path: spec.hard
|
||||
content:
|
||||
requests.xgpuclass.cozystack.io/devices: 1
|
||||
|
||||
# A raw resource-name key is a pod quota and stays one.
|
||||
- it: renders a tenant with a raw GPU resource-name key a ResourceQuota
|
||||
set:
|
||||
resourceQuotas:
|
||||
nvidia.com/AD102GL_L40S: 1
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- documentSelector:
|
||||
path: kind
|
||||
value: ResourceQuota
|
||||
matchRegex:
|
||||
path: metadata.name
|
||||
pattern: ^tenant-quota$
|
||||
|
||||
- it: renders nothing without resourceQuotas
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
@@ -76,6 +76,18 @@
|
||||
],
|
||||
"x-kubernetes-int-or-string": true
|
||||
}
|
||||
},
|
||||
"gpu": {
|
||||
"description": "GPU settings of the tenant.",
|
||||
"type": "object",
|
||||
"default": {},
|
||||
"properties": {
|
||||
"vgpu": {
|
||||
"description": "Entitle the tenant to vGPU classes. Takes effect only when the parent tenant is entitled too; the root tenant takes its value from the platform's `gpu.vgpu`.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,3 +37,10 @@ allowedSchedulingClasses: []
|
||||
|
||||
## @param {map[string]quantity} resourceQuotas - Define resource quotas for the tenant.
|
||||
resourceQuotas: {}
|
||||
|
||||
## @typedef {struct} GPU - GPU settings of the tenant.
|
||||
## @field {bool} [vgpu] - Entitle the tenant to vGPU classes. Takes effect only when the parent tenant is entitled too; the root tenant takes its value from the platform's `gpu.vgpu`.
|
||||
|
||||
## @param {GPU} gpu - GPU settings of the tenant.
|
||||
gpu:
|
||||
vgpu: false
|
||||
+2
-2
@@ -21,7 +21,7 @@ spec:
|
||||
singular: tenant
|
||||
plural: tenants
|
||||
openAPISchema: |-
|
||||
{"title":"Chart Values","type":"object","properties":{"host":{"description":"The hostname used to access tenant services (defaults to using the tenant name as a subdomain for its parent tenant host).","type":"string","default":""},"etcd":{"description":"Deploy own Etcd cluster.","type":"boolean","default":false},"monitoring":{"description":"Deploy own Monitoring Stack.","type":"boolean","default":false},"tracingCentral":{"description":"Send this tenant's traces to the shared VictoriaTraces store in tenant-root instead of a per-tenant backend; its Grafana reads them through a vmauth there that pins the tenant's own account, so tenants sharing the store cannot read each other's traces. It needs the tenant's own Monitoring (`monitoring: true`) and tenant-root hosting the store (`tracingCentralHost: true` on its Monitoring, with a `cluster`-mode tracingStorages entry named `generic`); without that the tenant's monitoring render fails rather than dropping spans. tenant-root, and whoever it admits to its Grafana, are inside the store's trust boundary. Applications should export over OTLP/HTTP, in requests below 3 MiB: spans above the platform's per-tenant write rate are retried over HTTP but dropped over gRPC, and a larger request is refused and not retried.","type":"boolean","default":false},"ingress":{"description":"Deploy own Ingress Controller.","type":"boolean","default":false},"gateway":{"description":"Deploy own Gateway API Gateway (backed by Cilium Gateway API controller). When `false` (the default), the tenant does not own a Gateway and instead publishes through the nearest ancestor tenant that owns one, regardless of whether `host` is empty or custom. Set to `true` to give the tenant its own Gateway with its own LoadBalancer IP and Certificate. A tenant with a custom (non-derived) `host` that needs its apex publicly reachable must set `true` explicitly, because an ancestor's TLS certificate does not cover a custom apex.","type":"boolean","default":false},"gatewayClass":{"description":"GatewayClass for this tenant's own Gateway. Empty uses the platform default (`gateway.className`). Only the classes the operator lists in the platform's `gateway.tenantSelectableClasses`, plus that default, may be named here — anything else fails this tenant's own gateway release and reaches no other tenant. Read only when this tenant owns a Gateway; an inheriting tenant uses its ancestor's. Whether a class terminates TLS itself or at its provider's edge is declared once per class on the platform, not here.","type":"string","default":""},"seaweedfs":{"description":"Deploy own SeaweedFS.","type":"boolean","default":false},"computeplane":{"description":"Deploy own ComputePlane — a single-tenant, Cozystack-managed cluster for untrusted-code applications. The tenant receives no admin kubeconfig for it. Automatic routing of catalog applications onto it (placement: ComputePlane) is a planned follow-up and is not available yet; until it lands, external catalogs target the cluster via its computeplane-cluster-admin-kubeconfig Secret. See design-proposals/compute-plane in cozystack/community.","type":"boolean","default":false},"schedulingClass":{"description":"The name of a SchedulingClass CR to apply scheduling constraints for this tenant's workloads.","type":"string","default":""},"allowedSchedulingClasses":{"description":"SchedulingClasses an application in this tenant may select through its own `schedulingClass`, in place of the tenant's. Empty allows none, so every application runs under the tenant's class. Inherited from the parent tenant, and not settable here, when the parent has a `schedulingClass` or a non-empty list.","type":"array","default":[],"items":{"type":"string"}},"resourceQuotas":{"description":"Define resource quotas for the tenant.","type":"object","default":{},"additionalProperties":{"pattern":"^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$","anyOf":[{"type":"integer"},{"type":"string"}],"x-kubernetes-int-or-string":true}}}}
|
||||
{"title":"Chart Values","type":"object","properties":{"host":{"description":"The hostname used to access tenant services (defaults to using the tenant name as a subdomain for its parent tenant host).","type":"string","default":""},"etcd":{"description":"Deploy own Etcd cluster.","type":"boolean","default":false},"monitoring":{"description":"Deploy own Monitoring Stack.","type":"boolean","default":false},"tracingCentral":{"description":"Send this tenant's traces to the shared VictoriaTraces store in tenant-root instead of a per-tenant backend; its Grafana reads them through a vmauth there that pins the tenant's own account, so tenants sharing the store cannot read each other's traces. It needs the tenant's own Monitoring (`monitoring: true`) and tenant-root hosting the store (`tracingCentralHost: true` on its Monitoring, with a `cluster`-mode tracingStorages entry named `generic`); without that the tenant's monitoring render fails rather than dropping spans. tenant-root, and whoever it admits to its Grafana, are inside the store's trust boundary. Applications should export over OTLP/HTTP, in requests below 3 MiB: spans above the platform's per-tenant write rate are retried over HTTP but dropped over gRPC, and a larger request is refused and not retried.","type":"boolean","default":false},"ingress":{"description":"Deploy own Ingress Controller.","type":"boolean","default":false},"gateway":{"description":"Deploy own Gateway API Gateway (backed by Cilium Gateway API controller). When `false` (the default), the tenant does not own a Gateway and instead publishes through the nearest ancestor tenant that owns one, regardless of whether `host` is empty or custom. Set to `true` to give the tenant its own Gateway with its own LoadBalancer IP and Certificate. A tenant with a custom (non-derived) `host` that needs its apex publicly reachable must set `true` explicitly, because an ancestor's TLS certificate does not cover a custom apex.","type":"boolean","default":false},"gatewayClass":{"description":"GatewayClass for this tenant's own Gateway. Empty uses the platform default (`gateway.className`). Only the classes the operator lists in the platform's `gateway.tenantSelectableClasses`, plus that default, may be named here — anything else fails this tenant's own gateway release and reaches no other tenant. Read only when this tenant owns a Gateway; an inheriting tenant uses its ancestor's. Whether a class terminates TLS itself or at its provider's edge is declared once per class on the platform, not here.","type":"string","default":""},"seaweedfs":{"description":"Deploy own SeaweedFS.","type":"boolean","default":false},"computeplane":{"description":"Deploy own ComputePlane — a single-tenant, Cozystack-managed cluster for untrusted-code applications. The tenant receives no admin kubeconfig for it. Automatic routing of catalog applications onto it (placement: ComputePlane) is a planned follow-up and is not available yet; until it lands, external catalogs target the cluster via its computeplane-cluster-admin-kubeconfig Secret. See design-proposals/compute-plane in cozystack/community.","type":"boolean","default":false},"schedulingClass":{"description":"The name of a SchedulingClass CR to apply scheduling constraints for this tenant's workloads.","type":"string","default":""},"allowedSchedulingClasses":{"description":"SchedulingClasses an application in this tenant may select through its own `schedulingClass`, in place of the tenant's. Empty allows none, so every application runs under the tenant's class. Inherited from the parent tenant, and not settable here, when the parent has a `schedulingClass` or a non-empty list.","type":"array","default":[],"items":{"type":"string"}},"resourceQuotas":{"description":"Define resource quotas for the tenant.","type":"object","default":{},"additionalProperties":{"pattern":"^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$","anyOf":[{"type":"integer"},{"type":"string"}],"x-kubernetes-int-or-string":true}},"gpu":{"description":"GPU settings of the tenant.","type":"object","default":{},"properties":{"vgpu":{"description":"Entitle the tenant to vGPU classes. Takes effect only when the parent tenant is entitled too; the root tenant takes its value from the platform's `gpu.vgpu`.","type":"boolean","default":false}}}}}
|
||||
release:
|
||||
prefix: tenant-
|
||||
labels:
|
||||
@@ -36,7 +36,7 @@ spec:
|
||||
plural: Tenants
|
||||
description: Separated tenant namespace
|
||||
icon: PHN2ZyB3aWR0aD0iMTQ0IiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDE0NCAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIxNDQiIGhlaWdodD0iMTQ0IiByeD0iMjQiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl82ODdfMzQwMykiLz4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzY4N18zNDAzKSI+CjxwYXRoIGQ9Ik03MiAyOUM2Ni4zOTI2IDI5IDYxLjAxNDggMzEuMjM4OCA1Ny4wNDk3IDM1LjIyNEM1My4wODQ3IDM5LjIwOTEgNTAuODU3MSA0NC42MTQxIDUwLjg1NzEgNTAuMjVDNTAuODU3MSA1NS44ODU5IDUzLjA4NDcgNjEuMjkwOSA1Ny4wNDk3IDY1LjI3NkM2MS4wMTQ4IDY5LjI2MTIgNjYuMzkyNiA3MS41IDcyIDcxLjVDNzcuNjA3NCA3MS41IDgyLjk4NTIgNjkuMjYxMiA4Ni45NTAzIDY1LjI3NkM5MC45MTUzIDYxLjI5MDkgOTMuMTQyOSA1NS44ODU5IDkzLjE0MjkgNTAuMjVDOTMuMTQyOSA0NC42MTQxIDkwLjkxNTMgMzkuMjA5MSA4Ni45NTAzIDM1LjIyNEM4Mi45ODUyIDMxLjIzODggNzcuNjA3NCAyOSA3MiAyOVpNNjAuOTgyNiA4My4zMDM3QzYwLjQ1NCA4Mi41ODk4IDU5LjU5NTEgODIuMTkxNCA1OC43MTk2IDgyLjI3NDRDNDUuMzg5NyA4My43MzU0IDM1IDk1LjEwNzQgMzUgMTA4LjkwM0MzNSAxMTEuNzI2IDM3LjI3OTUgMTE0IDQwLjA3MSAxMTRIMTAzLjkyOUMxMDYuNzM3IDExNCAxMDkgMTExLjcwOSAxMDkgMTA4LjkwM0MxMDkgOTUuMTA3NCA5OC42MTAzIDgzLjc1MiA4NS4yNjM4IDgyLjI5MUM4NC4zODg0IDgyLjE5MTQgODMuNTI5NSA4Mi42MDY0IDgzLjAwMDkgODMuMzIwM0w3NC4wOTc4IDk1LjI0MDJDNzMuMDQwNiA5Ni42NTE0IDcwLjkyNjMgOTYuNjUxNCA2OS44NjkyIDk1LjI0MDJMNjAuOTY2MSA4My4zMjAzTDYwLjk4MjYgODMuMzAzN1oiIGZpbGw9ImJsYWNrIi8+CjwvZz4KPGRlZnM+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQwX2xpbmVhcl82ODdfMzQwMyIgeDE9IjcyIiB5MT0iMTQ0IiB4Mj0iLTEuMjgxN2UtMDUiIHkyPSI0IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNDMEQ2RkYiLz4KPHN0b3Agb2Zmc2V0PSIwLjMiIHN0b3AtY29sb3I9IiNDNERBRkYiLz4KPHN0b3Agb2Zmc2V0PSIwLjY1IiBzdG9wLWNvbG9yPSIjRDNFOUZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U5RkZGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzY4N18zNDAzIj4KPHJlY3Qgd2lkdGg9Ijc0IiBoZWlnaHQ9Ijg1IiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzUgMjkpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==
|
||||
keysOrder: [["apiVersion"], ["appVersion"], ["kind"], ["metadata"], ["metadata", "name"], ["spec", "host"], ["spec", "etcd"], ["spec", "monitoring"], ["spec", "tracingCentral"], ["spec", "ingress"], ["spec", "gateway"], ["spec", "gatewayClass"], ["spec", "seaweedfs"], ["spec", "computeplane"], ["spec", "schedulingClass"], ["spec", "allowedSchedulingClasses"], ["spec", "resourceQuotas"]]
|
||||
keysOrder: [["apiVersion"], ["appVersion"], ["kind"], ["metadata"], ["metadata", "name"], ["spec", "host"], ["spec", "etcd"], ["spec", "monitoring"], ["spec", "tracingCentral"], ["spec", "ingress"], ["spec", "gateway"], ["spec", "gatewayClass"], ["spec", "seaweedfs"], ["spec", "computeplane"], ["spec", "schedulingClass"], ["spec", "allowedSchedulingClasses"], ["spec", "resourceQuotas"], ["spec", "gpu"], ["spec", "gpu", "vgpu"]]
|
||||
secrets:
|
||||
exclude: []
|
||||
include: []
|
||||
Reference in new issue
Block a user