mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #116153 from alexzielenski/podsecurity-featuregate-re-enable
skip special features in TestPodSecurityGAOnly
This commit is contained in:
commit
9b213330f5
@ -75,7 +75,11 @@ func TestPodSecurity(t *testing.T) {
|
||||
func TestPodSecurityGAOnly(t *testing.T) {
|
||||
// Disable all alpha and beta features
|
||||
for k, v := range utilfeature.DefaultFeatureGate.DeepCopy().GetAll() {
|
||||
if v.PreRelease == featuregate.Alpha || v.PreRelease == featuregate.Beta {
|
||||
if k == "AllAlpha" || k == "AllBeta" {
|
||||
// Skip special features. When processed first, special features may
|
||||
// erroneously disable other features.
|
||||
continue
|
||||
} else if v.PreRelease == featuregate.Alpha || v.PreRelease == featuregate.Beta {
|
||||
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, k, false)()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user