PodSecurity: baseline hostProcess check

This commit is contained in:
Jordan Liggitt
2021-06-30 15:33:24 -04:00
parent e5135985fa
commit 49d31c45b1
3 changed files with 169 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ import (
func TestPodSecurity(t *testing.T) {
// Enable all feature gates needed to allow all fields to be exercised
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.ProcMountType, true)()
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.WindowsHostProcessContainers, true)()
// Ensure the PodSecurity feature is enabled
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.PodSecurity, true)()
// Start server