From f046f445d724a0170658f620a0954e2b5f0af027 Mon Sep 17 00:00:00 2001 From: Drew Sirenko <68304519+AndrewSirenko@users.noreply.github.com> Date: Thu, 28 Sep 2023 12:07:11 -0400 Subject: [PATCH] TEMP: Change default image and security context --- tests/e2e/testsuites/testsuites.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/e2e/testsuites/testsuites.go b/tests/e2e/testsuites/testsuites.go index 9f22e0f1bc..00f6866478 100644 --- a/tests/e2e/testsuites/testsuites.go +++ b/tests/e2e/testsuites/testsuites.go @@ -636,10 +636,14 @@ func NewTestPod(c clientset.Interface, ns *v1.Namespace, command string) *TestPo Containers: []v1.Container{ { Name: "volume-tester", - Image: imageutils.GetE2EImage(imageutils.BusyBox), + Image: "docker.io/ubuntu", // TODO can be refactored out, waiting to see if Connor can big brain way to use busybox Command: []string{"/bin/sh"}, Args: []string{"-c", command}, VolumeMounts: make([]v1.VolumeMount, 0), + // TODO Should be refactored out, waiting to see if Connor can big brain a non-privileged way to get fs info + SecurityContext: &v1.SecurityContext{ + Privileged: func(b bool) *bool { return &b }(true), // TODO https://stackoverflow.com/questions/28817992/how-to-set-bool-pointer-to-true-in-struct-literal + }, }, }, RestartPolicy: v1.RestartPolicyNever,