make v1 enabled by default
This commit is contained in:
@@ -397,7 +397,6 @@ func TestAuthModeAlwaysAllow(t *testing.T) {
|
||||
APIPrefix: "/api",
|
||||
Authorizer: apiserver.NewAlwaysAllowAuthorizer(),
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
transport := http.DefaultTransport
|
||||
@@ -538,7 +537,6 @@ func TestAuthModeAlwaysDeny(t *testing.T) {
|
||||
APIPrefix: "/api",
|
||||
Authorizer: apiserver.NewAlwaysDenyAuthorizer(),
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
transport := http.DefaultTransport
|
||||
@@ -607,7 +605,6 @@ func TestAliceNotForbiddenOrUnauthorized(t *testing.T) {
|
||||
Authenticator: getTestTokenAuth(),
|
||||
Authorizer: allowAliceAuthorizer{},
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
previousResourceVersion := make(map[string]float64)
|
||||
@@ -695,7 +692,6 @@ func TestBobIsForbidden(t *testing.T) {
|
||||
Authenticator: getTestTokenAuth(),
|
||||
Authorizer: allowAliceAuthorizer{},
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
transport := http.DefaultTransport
|
||||
@@ -757,7 +753,6 @@ func TestUnknownUserIsUnauthorized(t *testing.T) {
|
||||
Authenticator: getTestTokenAuth(),
|
||||
Authorizer: allowAliceAuthorizer{},
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
transport := http.DefaultTransport
|
||||
@@ -838,7 +833,6 @@ func TestNamespaceAuthorization(t *testing.T) {
|
||||
Authenticator: getTestTokenAuth(),
|
||||
Authorizer: a,
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
previousResourceVersion := make(map[string]float64)
|
||||
@@ -954,7 +948,6 @@ func TestKindAuthorization(t *testing.T) {
|
||||
Authenticator: getTestTokenAuth(),
|
||||
Authorizer: a,
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
previousResourceVersion := make(map[string]float64)
|
||||
@@ -1057,7 +1050,6 @@ func TestReadOnlyAuthorization(t *testing.T) {
|
||||
Authenticator: getTestTokenAuth(),
|
||||
Authorizer: a,
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
transport := http.DefaultTransport
|
||||
|
Reference in New Issue
Block a user