File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import (
2222const (
2323 // The base path. This is both the path of the root shared folder on the
2424 // host filesystem, and when it is mounted into ateom and atelet containers.
25- BasePath = "/run /ateom-gvisor"
25+ BasePath = "/var/lib /ateom-gvisor"
2626)
2727
2828var (
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import (
3131 "sigs.k8s.io/controller-runtime/pkg/client"
3232 "sigs.k8s.io/controller-runtime/pkg/log"
3333
34+ "github.com/agent-substrate/substrate/internal/ateompath"
3435 atev1alpha1 "github.com/agent-substrate/substrate/pkg/api/v1alpha1"
3536)
3637
@@ -155,14 +156,14 @@ func buildDeploymentApplyConfig(wp *atev1alpha1.WorkerPool) *appsv1ac.Deployment
155156 ).
156157 WithVolumeMounts (corev1ac .VolumeMount ().
157158 WithName ("run-ateom" ).
158- WithMountPath ("/run/ateom-gvisor" ))).
159+ WithMountPath (ateompath . BasePath ))).
159160 WithSecurityContext (corev1ac .PodSecurityContext ().
160161 WithRunAsUser (0 ).
161162 WithRunAsGroup (0 )).
162163 WithVolumes (corev1ac .Volume ().
163164 WithName ("run-ateom" ).
164165 WithHostPath (corev1ac .HostPathVolumeSource ().
165- WithPath ("/run/ateom-gvisor" ).
166+ WithPath (ateompath . BasePath ).
166167 WithType (corev1 .HostPathDirectoryOrCreate ))))))
167168}
168169
Original file line number Diff line number Diff line change 9090 protocol : TCP
9191 volumeMounts :
9292 - name : run-ateom
93- mountPath : /run /ateom-gvisor
93+ mountPath : /var/lib /ateom-gvisor
9494 volumes :
9595 - name : run-ateom
9696 hostPath :
97- path : /run /ateom-gvisor
98- type : DirectoryOrCreate
97+ path : /var/lib /ateom-gvisor
98+ type : DirectoryOrCreate
You can’t perform that action at this time.
0 commit comments