From 70783b4cebe2d789d86b30fe3a07b0be0775254d Mon Sep 17 00:00:00 2001 From: Zach Koopmans Date: Wed, 25 Oct 2023 17:56:03 -0700 Subject: [PATCH] Rename nvproxy/tpuproxy annotations as internal annotations. PiperOrigin-RevId: 576700439 --- runsc/specutils/nvidia.go | 2 +- runsc/specutils/specutils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runsc/specutils/nvidia.go b/runsc/specutils/nvidia.go index 86e06520e..8a8b151a2 100644 --- a/runsc/specutils/nvidia.go +++ b/runsc/specutils/nvidia.go @@ -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 { diff --git a/runsc/specutils/specutils.go b/runsc/specutils/specutils.go index 9ede869dd..009735434 100644 --- a/runsc/specutils/specutils.go +++ b/runsc/specutils/specutils.go @@ -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"