mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	LocalStorageCapacityIsolationFSQuotaMonitoring: feature gate typo in e2e node test
This commit is contained in:
		@@ -21,7 +21,7 @@ import (
 | 
				
			|||||||
	"path/filepath"
 | 
						"path/filepath"
 | 
				
			||||||
	"time"
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	"k8s.io/api/core/v1"
 | 
						v1 "k8s.io/api/core/v1"
 | 
				
			||||||
	"k8s.io/apimachinery/pkg/api/resource"
 | 
						"k8s.io/apimachinery/pkg/api/resource"
 | 
				
			||||||
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
						metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
	"k8s.io/kubernetes/pkg/features"
 | 
						"k8s.io/kubernetes/pkg/features"
 | 
				
			||||||
@@ -63,7 +63,7 @@ func runOneQuotaTest(f *framework.Framework, quotasRequested bool) {
 | 
				
			|||||||
			if quotasRequested && !supportsQuotas("/var/lib/kubelet") {
 | 
								if quotasRequested && !supportsQuotas("/var/lib/kubelet") {
 | 
				
			||||||
				// No point in running this as a positive test if quotas are not
 | 
									// No point in running this as a positive test if quotas are not
 | 
				
			||||||
				// enabled on the underlying filesystem.
 | 
									// enabled on the underlying filesystem.
 | 
				
			||||||
				e2eskipper.Skipf("Cannot run LocalStorageCapacityIsolationQuotaMonitoring on filesystem without project quota enabled")
 | 
									e2eskipper.Skipf("Cannot run LocalStorageCapacityIsolationFSQuotaMonitoring on filesystem without project quota enabled")
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			// setting a threshold to 0% disables; non-empty map overrides default value (necessary due to omitempty)
 | 
								// setting a threshold to 0% disables; non-empty map overrides default value (necessary due to omitempty)
 | 
				
			||||||
			initialConfig.EvictionHard = map[string]string{"memory.available": "0%"}
 | 
								initialConfig.EvictionHard = map[string]string{"memory.available": "0%"}
 | 
				
			||||||
@@ -90,12 +90,12 @@ func runOneQuotaTest(f *framework.Framework, quotasRequested bool) {
 | 
				
			|||||||
	})
 | 
						})
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// LocalStorageCapacityIsolationQuotaMonitoring tests that quotas are
 | 
					// LocalStorageCapacityIsolationFSQuotaMonitoring tests that quotas are
 | 
				
			||||||
// used for monitoring rather than du.  The mechanism is to create a
 | 
					// used for monitoring rather than du.  The mechanism is to create a
 | 
				
			||||||
// pod that creates a file, deletes it, and writes data to it.  If
 | 
					// pod that creates a file, deletes it, and writes data to it.  If
 | 
				
			||||||
// quotas are used to monitor, it will detect this deleted-but-in-use
 | 
					// quotas are used to monitor, it will detect this deleted-but-in-use
 | 
				
			||||||
// file; if du is used to monitor, it will not detect this.
 | 
					// file; if du is used to monitor, it will not detect this.
 | 
				
			||||||
var _ = SIGDescribe("LocalStorageCapacityIsolationQuotaMonitoring [Slow] [Serial] [Disruptive] [Feature:LocalStorageCapacityIsolationQuota][NodeFeature:LSCIQuotaMonitoring]", func() {
 | 
					var _ = SIGDescribe("LocalStorageCapacityIsolationFSQuotaMonitoring [Slow] [Serial] [Disruptive] [Feature:LocalStorageCapacityIsolationQuota][NodeFeature:LSCIQuotaMonitoring]", func() {
 | 
				
			||||||
	f := framework.NewDefaultFramework("localstorage-quota-monitoring-test")
 | 
						f := framework.NewDefaultFramework("localstorage-quota-monitoring-test")
 | 
				
			||||||
	f.NamespacePodSecurityEnforceLevel = admissionapi.LevelPrivileged
 | 
						f.NamespacePodSecurityEnforceLevel = admissionapi.LevelPrivileged
 | 
				
			||||||
	runOneQuotaTest(f, true)
 | 
						runOneQuotaTest(f, true)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user