mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Rename nvproxy/tpuproxy annotations as internal annotations.
PiperOrigin-RevId: 576700439
This commit is contained in:
committed by
gVisor bot
parent
80ee2d3acc
commit
70783b4ceb
@@ -30,7 +30,7 @@ import (
|
||||
const nvdEnvVar = "NVIDIA_VISIBLE_DEVICES"
|
||||
|
||||
// annotationNVProxy enables nvproxy.
|
||||
const annotationNVProxy = "dev.gvisor.spec.nvproxy"
|
||||
const annotationNVProxy = "dev.gvisor.internal.nvproxy"
|
||||
|
||||
// NVProxyEnabled checks both the nvproxy annotation and conf.NVProxy to see if nvproxy is enabled.
|
||||
func NVProxyEnabled(spec *specs.Spec, conf *config.Config) bool {
|
||||
|
||||
@@ -43,7 +43,7 @@ import (
|
||||
const (
|
||||
annotationFlagPrefix = "dev.gvisor.flag."
|
||||
annotationSeccomp = "dev.gvisor.internal.seccomp."
|
||||
annotationTPU = "dev.gvisor.spec.tpuproxy"
|
||||
annotationTPU = "dev.gvisor.internal.tpuproxy"
|
||||
annotationSeccompRuntimeDefault = "RuntimeDefault"
|
||||
|
||||
annotationContainerName = "io.kubernetes.cri.container-name"
|
||||
|
||||
Reference in New Issue
Block a user