Populate OpenAPI in all integration tests
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user