-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Use OS-specific libs when computing client User-Agent in kubectl, etc. #44622
Use OS-specific libs when computing client User-Agent in kubectl, etc. #44622
Conversation
…nch. The original full PR kubernetes#44423 came after a large PR kubernetes#40777 that split /vendor/BUILD into hundreds of BUILD files. Thus PR 44423's version of rest/BUILD does not exist in the 1.6 release branch, and had to be tweaked here.
can someone assign this to @enisoc please? |
change lgtm |
thanks @liggitt ! |
/lgtm |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: enisoc, monopole
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue |
@@ -100,6 +102,42 @@ func TestSetKubernetesDefaultsUserAgent(t *testing.T) { | |||
} | |||
} | |||
|
|||
func TestAdjustVersion(t *testing.T) { | |||
assert := assert.New(t) |
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.
Go style guide recommends against using assert libraries.
https://github.com/golang/go/wiki/CodeReviewComments#useful-test-failures
A table test would have worked effectively here.
This PR fixes issue 44419 in the release branch.
This PR is a patchable version of mainline PR #44423 for 1.6 release branch
The original full PR
#44423
came after a large PR
#40777
that split /vendor/BUILD into hundreds of BUILD files.
Thus PR 44423's version of rest/BUILD does not exist
in the 1.6 release branch, and had to be tweaked here.