Skip to content

Commit c737f32

Browse files
committed
Allow ateom to see host mounts
1 parent aadc3a5 commit c737f32

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

cmd/atecontroller/internal/controllers/workerpool_apply.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ func buildDeploymentApplyConfig(wp *atev1alpha1.WorkerPool) *appsv1ac.Deployment
4747
).
4848
WithVolumeMounts(corev1ac.VolumeMount().
4949
WithName("run-ateom").
50-
WithMountPath(ateompath.BasePath))
50+
WithMountPath(ateompath.BasePath).
51+
WithMountPropagation(corev1.MountPropagationHostToContainer))
5152

5253
podSpecAC := corev1ac.PodSpec().
5354
WithSecurityContext(corev1ac.PodSecurityContext().

cmd/atecontroller/internal/controllers/workerpool_apply_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ func expectedDeploymentApplyConfig(mutatePodSpec func(*corev1ac.PodSpecApplyConf
299299
WithFieldPath("metadata.uid")))).
300300
WithVolumeMounts(corev1ac.VolumeMount().
301301
WithName("run-ateom").
302-
WithMountPath(ateompath.BasePath)).
302+
WithMountPath(ateompath.BasePath).
303+
WithMountPropagation(corev1.MountPropagationHostToContainer)).
303304
WithResources(corev1ac.ResourceRequirements()))
304305

305306
podSpecAC.NodeSelector = map[string]string{}

0 commit comments

Comments
 (0)