Skip to content

Commit

Permalink
storage fsquota monitoring pod should be user namespaced
Browse files Browse the repository at this point in the history
  • Loading branch information
pacoxu committed Oct 15, 2024
1 parent 5b1a4ca commit a0b58c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e_node/quota_lsci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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{
{
Expand Down

0 comments on commit a0b58c4

Please sign in to comment.