From c872719688765e563194a616e32cae506cf392d2 Mon Sep 17 00:00:00 2001 From: Eitan Yarmush Date: Thu, 4 Jun 2026 15:11:04 +0000 Subject: [PATCH] Switch ateom gVisor state path --- internal/ateompath/ateompath.go | 2 +- internal/controllers/workerpool_controller.go | 5 +++-- manifests/ate-install/atelet.yaml | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/internal/ateompath/ateompath.go b/internal/ateompath/ateompath.go index c5b4ad3a9..304d53f5f 100644 --- a/internal/ateompath/ateompath.go +++ b/internal/ateompath/ateompath.go @@ -22,7 +22,7 @@ import ( const ( // The base path. This is both the path of the root shared folder on the // host filesystem, and when it is mounted into ateom and atelet containers. - BasePath = "/run/ateom-gvisor" + BasePath = "/var/lib/ateom-gvisor" ) var ( diff --git a/internal/controllers/workerpool_controller.go b/internal/controllers/workerpool_controller.go index c026ce7f2..7ddaca871 100644 --- a/internal/controllers/workerpool_controller.go +++ b/internal/controllers/workerpool_controller.go @@ -31,6 +31,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/log" + "github.com/agent-substrate/substrate/internal/ateompath" atev1alpha1 "github.com/agent-substrate/substrate/pkg/api/v1alpha1" ) @@ -155,14 +156,14 @@ func buildDeploymentApplyConfig(wp *atev1alpha1.WorkerPool) *appsv1ac.Deployment ). WithVolumeMounts(corev1ac.VolumeMount(). WithName("run-ateom"). - WithMountPath("/run/ateom-gvisor"))). + WithMountPath(ateompath.BasePath))). WithSecurityContext(corev1ac.PodSecurityContext(). WithRunAsUser(0). WithRunAsGroup(0)). WithVolumes(corev1ac.Volume(). WithName("run-ateom"). WithHostPath(corev1ac.HostPathVolumeSource(). - WithPath("/run/ateom-gvisor"). + WithPath(ateompath.BasePath). WithType(corev1.HostPathDirectoryOrCreate)))))) } diff --git a/manifests/ate-install/atelet.yaml b/manifests/ate-install/atelet.yaml index 1dd3d370b..8060317b4 100644 --- a/manifests/ate-install/atelet.yaml +++ b/manifests/ate-install/atelet.yaml @@ -90,9 +90,9 @@ spec: protocol: TCP volumeMounts: - name: run-ateom - mountPath: /run/ateom-gvisor + mountPath: /var/lib/ateom-gvisor volumes: - name: run-ateom hostPath: - path: /run/ateom-gvisor - type: DirectoryOrCreate \ No newline at end of file + path: /var/lib/ateom-gvisor + type: DirectoryOrCreate