kubernetes/cmd/kubeadm/app/discovery
Kubernetes Submit Queue 4b41a54eda
Merge pull request #53895 from kad/kubeadm-proxy-transports
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

kubeadm: Utilize transport defaults from API machinery for http calls inside kubeadm

**What this PR does / why we need it**:
Default Go HTTP transport does not allow to use CIDR notations in
NO_PROXY variables, thus for certain HTTP calls that is done inside
kubeadm user needs to put explicitly multiple IP addresses. For most of
calls done via API machinery it is get solved by setting different Proxy
resolver. This patch allows to use CIDR notations in NO_PROXY variables
for currently all other HTTP calls that is made inside kubeadm.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes kubernetes/kubeadm#324

**Special notes for your reviewer**:
Based on discussion in #52788, replacing this patch replacing all calls inside kubeadm that are done via DefaultTransport to explicitly defined and initialized with API machinery defaults Transport and http client.

**Release note**:
```release-note
- kubeadm now supports CIDR notations in NO_PROXY environment variable
```
2018-01-19 16:48:06 -08:00
..
file create auto-gen files 2018-01-17 16:23:03 +08:00
https kubeadm: Utilize transport defaults from API machinery for http calls 2017-11-10 14:05:58 +02:00
token Merge pull request #57941 from stewart-yu/improveErrorMessages 2018-01-19 14:34:12 -08:00
BUILD Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
discovery_test.go kubeadm: join ux changes 2017-02-28 11:06:08 -08:00
discovery.go Merge pull request #47699 from supereagle/fix-typos 2017-10-17 02:35:52 -07:00