Revert "Populate OpenAPI in all integration tests"

This commit is contained in:
Jeffrey Ying
2022-01-26 13:30:03 -05:00
committed by GitHub
parent be38633742
commit ecb9b620fe
7 changed files with 10 additions and 5 deletions

View File

@@ -285,11 +285,6 @@ func NewIntegrationTestControlPlaneConfigWithOptions(opts *ControlPlaneConfigOpt
// TODO: get rid of these tests or port them to secure serving
controlPlaneConfig.GenericConfig.SecureServing = &genericapiserver.SecureServingInfo{Listener: fakeLocalhost443Listener{}}
// Enable OpenAPI and Server Side Apply in integration tests
if controlPlaneConfig.GenericConfig.OpenAPIConfig == nil {
controlPlaneConfig.GenericConfig.OpenAPIConfig = DefaultOpenAPIConfig()
}
return controlPlaneConfig
}