Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b3ccad23
Commit
b3ccad23
authored
Dec 15, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18680 from caesarxuchao/clean-client
Auto commit by PR queue bot
parents
06df5c97
f565646e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
client.go
pkg/client/unversioned/client.go
+0
-20
No files found.
pkg/client/unversioned/client.go
View file @
b3ccad23
...
...
@@ -25,7 +25,6 @@ import (
"github.com/emicklei/go-restful/swagger"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/pkg/api/v1"
"k8s.io/kubernetes/pkg/version"
...
...
@@ -156,25 +155,6 @@ func (c *Client) ServerAPIVersions() (*unversioned.APIVersions, error) {
return
&
v
,
nil
}
type
ComponentValidatorInterface
interface
{
ValidateComponents
()
(
*
api
.
ComponentStatusList
,
error
)
}
// ValidateComponents retrieves and parses the master's self-monitored cluster state.
// TODO: This should hit the versioned endpoint when that is implemented.
func
(
c
*
Client
)
ValidateComponents
()
(
*
api
.
ComponentStatusList
,
error
)
{
body
,
err
:=
c
.
Get
()
.
AbsPath
(
"/validate"
)
.
DoRaw
()
if
err
!=
nil
{
return
nil
,
err
}
statuses
:=
[]
api
.
ComponentStatus
{}
if
err
:=
json
.
Unmarshal
(
body
,
&
statuses
);
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"got '%s': %v"
,
string
(
body
),
err
)
}
return
&
api
.
ComponentStatusList
{
Items
:
statuses
},
nil
}
// SwaggerSchemaInterface has a method to retrieve the swagger schema. Used in
// client.Interface
type
SwaggerSchemaInterface
interface
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment