Skip to content
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

Conversation

monopole
Copy link
Contributor

@monopole monopole commented Apr 18, 2017

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.

Fix for [Windows kubectl sending full path to binary in User Agent](https://github.com/kubernetes/kubernetes/issues/44419).

…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.
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 18, 2017
@k8s-github-robot k8s-github-robot added do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. release-note-label-needed labels Apr 18, 2017
@k8s-reviewable
Copy link

This change is Reviewable

@monopole
Copy link
Contributor Author

can someone assign this to @enisoc please?

@liggitt
Copy link
Member

liggitt commented Apr 18, 2017

change lgtm

@monopole
Copy link
Contributor Author

thanks @liggitt !

@enisoc enisoc added this to the v1.6 milestone Apr 18, 2017
@enisoc enisoc added approved Indicates a PR has been approved by an approver from all required OWNERS files. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. release-note-label-needed labels Apr 18, 2017
@enisoc
Copy link
Member

enisoc commented Apr 18, 2017

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 18, 2017
@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: enisoc, monopole
We suggest the following additional approver: @bgrant0607

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit ec5b632 into kubernetes:release-1.6 Apr 18, 2017
@@ -100,6 +102,42 @@ func TestSetKubernetesDefaultsUserAgent(t *testing.T) {
}
}

func TestAdjustVersion(t *testing.T) {
assert := assert.New(t)
Copy link
Member

@mikedanese mikedanese Apr 18, 2017

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.

https://github.com/golang/go/wiki/TableDrivenTests

@monopole monopole deleted the jr_patch_to_upstream_release-1.6 branch October 27, 2019 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants