mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 19:28:16 +00:00
Move swagger+openapi setup to routes and decouple from run
This commit is contained in:
@@ -46,8 +46,6 @@ func TestKubectlValidation(t *testing.T) {
|
||||
defer components.Stop(true, true)
|
||||
ctx := clientcmdapi.NewContext()
|
||||
cfg := clientcmdapi.NewConfig()
|
||||
// Enable swagger api on master.
|
||||
components.KubeMaster.GenericAPIServer.InstallSwaggerAPI()
|
||||
cluster := clientcmdapi.NewCluster()
|
||||
|
||||
cluster.Server = components.ApiServer.URL
|
||||
|
||||
Reference in New Issue
Block a user