mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 16:06:51 +00:00
remove psp in extensions api/apis
This commit is contained in:
@@ -520,15 +520,6 @@ func TestDefaultRequestIsNotSetForReplicaSet(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestDefaultAllowPrivilegeEscalationForPodSecurityPolicy(t *testing.T) {
|
||||
psp := &extensionsv1beta1.PodSecurityPolicy{}
|
||||
output := roundTrip(t, runtime.Object(psp))
|
||||
psp2 := output.(*extensionsv1beta1.PodSecurityPolicy)
|
||||
if psp2.Spec.AllowPrivilegeEscalation == nil || *psp2.Spec.AllowPrivilegeEscalation != true {
|
||||
t.Errorf("Expected default to true, got: %#v", psp2.Spec.AllowPrivilegeEscalation)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSetDefaultNetworkPolicy(t *testing.T) {
|
||||
tests := []struct {
|
||||
original *extensionsv1beta1.NetworkPolicy
|
||||
|
||||
Reference in New Issue
Block a user