From a0b58c4c023365af0adea0677e687738899fc558 Mon Sep 17 00:00:00 2001 From: Paco Xu Date: Tue, 15 Oct 2024 10:10:05 +0800 Subject: [PATCH] storage fsquota monitoring pod should be user namespaced --- test/e2e_node/quota_lsci_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/e2e_node/quota_lsci_test.go b/test/e2e_node/quota_lsci_test.go index cd80462323393..0277d8cdeeb34 100644 --- a/test/e2e_node/quota_lsci_test.go +++ b/test/e2e_node/quota_lsci_test.go @@ -43,6 +43,8 @@ const ( LSCIQuotaFeature = features.LocalStorageCapacityIsolationFSQuotaMonitoring ) +var falseVar = false + func runOneQuotaTest(f *framework.Framework, quotasRequested bool, userNamespacesEnabled bool) { evictionTestTimeout := 10 * time.Minute sizeLimit := resource.MustParse("100Mi") @@ -135,6 +137,7 @@ func diskConcealingPod(name string, diskConsumedMB int, volumeSource *v1.VolumeS return &v1.Pod{ ObjectMeta: metav1.ObjectMeta{Name: fmt.Sprintf("%s-pod", name)}, Spec: v1.PodSpec{ + HostUsers: &falseVar, RestartPolicy: v1.RestartPolicyNever, Containers: []v1.Container{ {