-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove the non-generated client #35431
remove the non-generated client #35431
Conversation
_ "k8s.io/kubernetes/plugin/pkg/client/auth" | ||
) | ||
|
||
// MatchesServerVersion queries the server to compares the build version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/compares/compare/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticed, it's an old function moved here.
cVer := version.Get() | ||
sVer, err := client.ServerVersion() | ||
if err != nil { | ||
return fmt.Errorf("couldn't read version from server: %v\n", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no \n
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are straight moves. I'm not sure what changing this will end up changing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, straight move minus the, "change the types to accept what you mean".
// MatchesServerVersion queries the server to compares the build version | ||
// (git hash) of the client with the server's build version. It returns an error | ||
// if it failed to contact the server or if the versions are not an exact match. | ||
func MatchesServerVersion(client DiscoveryInterface, c *restclient.Config) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(bool, error)
is the canonical return type here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are straight moves. I'm not sure what changing this will end up changing
cad5ff4
to
a7cccb7
Compare
Please split the file removal from the changes in the second commit.
|
Otherwise, all the changes look mechanical. lgtm. You will win the most-lines-removed award for 1.5 with this. |
a7cccb7
to
c33c84e
Compare
c33c84e
to
7dd818e
Compare
The helper's |
Good job! |
7dd818e
to
e20a9af
Compare
Jenkins verification failed for commit e20a9af2fec5197f97b74820a6bc7a6e52197982. Full PR test history. The magic incantation to run this job again is |
e20a9af
to
81ae130
Compare
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
Automatic merge from submit-queue remove the non-generated client Removes the non-generated client from kube. The package has a few methods left, but nothing that needs updating when adding new groups. @ingvagabund
Removes the non-generated client from kube. The package has a few methods left, but nothing that needs updating when adding new groups.
@ingvagabund
This change is