mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Fixes the experimental api, which appeared to be completely broken.
Fix for rebase with nikhiljindal/deploymentController
This commit is contained in:
@@ -54,7 +54,6 @@ type Response struct {
|
||||
|
||||
type testClient struct {
|
||||
*Client
|
||||
*ExperimentalClient
|
||||
Request testRequest
|
||||
Response Response
|
||||
Error bool
|
||||
@@ -87,16 +86,6 @@ func (c *testClient) Setup() *testClient {
|
||||
Version: version,
|
||||
})
|
||||
}
|
||||
if c.ExperimentalClient == nil {
|
||||
version := c.Version
|
||||
if len(version) == 0 {
|
||||
version = testapi.Version()
|
||||
}
|
||||
c.ExperimentalClient = NewExperimentalOrDie(&Config{
|
||||
Host: c.server.URL,
|
||||
Version: version,
|
||||
})
|
||||
}
|
||||
c.QueryValidator = map[string]func(string, string) bool{}
|
||||
return c
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user