Populate OpenAPI in all integration tests

This commit is contained in:
Jefftree
2022-01-25 12:08:52 -08:00
parent 804630ed24
commit eb8f6fe0f9
7 changed files with 5 additions and 10 deletions

View File

@@ -285,6 +285,11 @@ 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
}