Commit Graph

275 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
9c973c6d2c Merge pull request #75515 from dougm/vsphere-token-auth
vSphere: add token auth support for tags client
2019-03-26 12:34:17 -07:00
Kubernetes Prow Robot
e1f8d1e9ca Merge pull request #74919 from pivotal-k8s/vsphere-windows-uuid
Fix Windows to read VM UUIDs from serial numbers
2019-03-25 12:10:20 -07:00
Doug MacEachern
85907f6947 vSphere: add token auth support for tags client
SAML auth support for the vCenter rest API endpoint came to govmomi
a bit after Zone support came to vSphere Cloud Provider.

Fixes #75511
2019-03-25 10:08:08 -07:00
Doug MacEachern
a2d975e02b vsphere: govmomi rest API simulator requires authentication 2019-03-25 10:08:08 -07:00
Kubernetes Prow Robot
046dcbd1ed Merge pull request #73917 from droslean/cleanup
replace loops with go idiomatic.
2019-03-19 19:01:04 -07:00
Fabio Rapposelli
d22a39db8a stop vsphere cloud provider from spamming logs with failed to patch IP
Fixes: #75236
2019-03-14 22:39:13 +01:00
Ben Moss
33bfe74c0d Fix Windows to read VM UUIDs from serial numbers
Certain versions of vSphere do not have the same value for product_uuid
and product_serial. This mimics the change in #59519.

Fixes #74888
2019-03-04 18:06:54 -05:00
SataQiu
7181c44230 fix some golint failures for pkg/cloudprovider/providers/vsphere/vclib and pkg/kubelet/apis/... 2019-02-25 18:01:41 +08:00
Fabio Rapposelli
eb8f3240b0 do not return error on invalid mac address in vsphere cloud provider 2019-02-20 14:12:05 +01:00
skarthiksrinivas
1e5dc21c38 Fix error handling logic in vsphere volume provisioning 2019-02-19 02:54:20 -08:00
skarthiksrinivas
a309d8a6c1 Provision vsphere volume honoring zones 2019-02-17 21:37:00 -08:00
Kubernetes Prow Robot
e4db1471f1 Merge pull request #71147 from pivotal-k8s/vsphere-windows-uuid
Support retrieving the VM UUID on Windows
2019-02-15 21:49:50 -08:00
Kubernetes Prow Robot
e691e5f2d9 Merge pull request #74082 from pivotal-k8s/loopback_check
Fix testing if an interface is the loopback
2019-02-15 20:35:41 -08:00
Ben Moss
70923dd9db Fix testing if an interface is the loopback
It's not guaranteed that the loopback interface only has the loopback
IP, in our environments our loopback interface is also assigned a 169
address as well.
2019-02-15 16:40:34 -05:00
Subramanian Neelakantan
ba9a9cf7c3 Applies zone labels to newly created vsphere volumes 2019-02-15 15:06:01 +05:30
Nikolaos Moraitis
6e820cdcaf replace loops with go idiomatic. 2019-02-11 11:21:52 +01:00
Kubernetes Prow Robot
b50c643be0 Merge pull request #73540 from rlenferink/patch-5
Updated OWNERS files to include link to docs
2019-02-08 09:05:56 -08:00
Fabio Rapposelli
dbeb5f02b5 fix mac filtering in vsphere cloud provider 2019-02-05 23:44:17 +01:00
Roy Lenferink
b43c04452f Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
Andrew Kim
369fd95a9f move AddToNodeAddresses to k8s.io/cloud-provider/node/helpers
Co-authored-by: Weibin Lin <linweibin1@huawei.com>
2019-02-01 14:47:07 -05:00
Kubernetes Prow Robot
5be8d9552b Merge pull request #70005 from stewart-yu/stewart-cloud-controller-manager-movefile
remove `pkg/controller` dependencies from `k8s.io/kubernetes/pkg/cloudprovider/providers`
2019-01-31 20:43:03 -08:00
stewart-yu
0ca7bf5e86 remove pkg/controller dependencies from k8s.io/kubernetes/pkg/cloudprovider/providers 2019-02-01 08:48:23 +08:00
Andrew Kim
ece2b0db19 remove dep to pkg/version in vSphere provider 2019-01-31 17:26:05 -05:00
Kubernetes Prow Robot
cbf52183fa Merge pull request #73115 from alvaroaleman/71997-non-english-vsphere-pvc
Fix PV allocation on non-English vSphere
2019-01-29 11:32:15 -08:00
Alvaro Aleman
37426c511a Vsphere: Add 15 missing err checks 2019-01-26 22:14:54 +01:00
Alvaro Aleman
345049b663 Fix PV allocation on non-English vSphere 2019-01-26 19:57:56 +01:00
Roman Krasavtsev
18938acdff fix typo 2019-01-04 21:32:21 +01:00
andrewsykim
4b0f2ab442 compile check to ensure cloud providers implement cloud interfaces 2018-11-30 10:33:34 -05:00
Leah Hanson
255f056614 Support retrieving the VM UUID on Windows
Signed-off-by: Ben Moss <bmoss@pivotal.io>
2018-11-17 13:41:48 -05:00
Davanum Srinivas
954996e231 Move from glog to klog
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
  * github.com/kubernetes/repo-infra
  * k8s.io/gengo/
  * k8s.io/kube-openapi/
  * github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods

Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
andrewsykim
2908174517 pass in stopCh to cloud provider Initialize method for custom controllers 2018-10-19 17:51:58 -04:00
k8s-ci-robot
43d61f42f1 Merge pull request #69187 from SandeepPissay/addOwner
Adding myself as OWNER for vSphere Cloud Provider.
2018-10-10 20:24:37 -07:00
k8s-ci-robot
0f17e9ade6 Merge pull request #69386 from cblecker/go-1.11
Update to go1.11.1
2018-10-05 17:35:51 -07:00
Christoph Blecker
97b2992dc1 Update gofmt for go1.11 2018-10-05 12:59:38 -07:00
Walter Fender
f3f46d5f5a Moving the cloudprovider interface to staging.
Individual implementations are not yet being moved.
Fixed all dependencies which call the interface.
Fixed golint exceptions to reflect the move.
Added project info as per @dims and
https://github.com/kubernetes/kubernetes-template-project.
Added dims to the security contacts.
Fixed minor issues.
Added missing template files.
Copied ControllerClientBuilder interface to cp.
This allows us to break the only dependency on K8s/K8s.
Added TODO to ControllerClientBuilder.
Fixed GoDeps.
Factored in feedback from JustinSB.
2018-10-04 14:41:20 -07:00
k8s-ci-robot
a372a9fcd6 Merge pull request #68264 from tanshanshan/fmt-0905
remove unused format log print
2018-10-03 08:09:54 -07:00
k8s-ci-robot
042139d8c9 Merge pull request #64452 from wgliang/master.remove-cloudprovider
cleanup some dead cloudprovider code
2018-09-30 23:24:31 -07:00
SandeepPissay
a2debeef7e Adding myself as OWNER for vSphere Cloud Provider. And removing few users who are not owners. 2018-09-27 16:47:00 -07:00
Benjamin Elder
8b56eb8588 hack/update-gofmt.sh 2018-09-24 12:21:29 -07:00
Benjamin Elder
f828c6f662 hack/update-bazel.sh 2018-09-24 12:03:24 -07:00
Benjamin Elder
088cf3c37b find & replace version import 2018-09-24 12:03:24 -07:00
Guoliang Wang
05aeea12ce fix bug that defer in infinite loop 2018-09-18 15:45:43 +08:00
tanshanshan
f6da98c54f remove unused format log print 2018-09-05 11:23:51 +08:00
hui luo
ce15129b9e add test to verify vsphere cloud provider report node hostname
as in pull #67922 has modify vsphere cloud provider to report
node hostname, this patch is to add the test for it.

also fix an issue at InstanceID(), it suppose to return
cloudprovider.InstanceNotFound when vm not found, after the fix,
test TestInstance() can pass
2018-08-29 11:46:24 -07:00
Jordan Liggitt
722e0bca2e Report Hostname node address for vsphere 2018-08-27 23:32:09 -04:00
Doug MacEachern
ec732d8aab vsphere: support zone tags at any level in the hierarchy
Rather than just looking for zone tags at the VM's Host level, traverse up the hierarchy.
This allows zone tags to be attached at host level, along with cluster, datacenter, root folder
and any inventory folders in between.

Issue #64021
2018-08-23 14:57:21 -07:00
Doug MacEachern
191d9ced30 update bazel 2018-08-22 18:49:15 -07:00
Doug MacEachern
11af6932e5 vsphere: add tests for Cloud Provider Zones implementation
- Add tests for GetZones()

- Fix bug where a host tag other than region or zone caused an error

- Fix bug where GetZones() errored if zone tag was set, but region was not

Follow up to PR #66795 / towards #64021
2018-08-22 18:47:30 -07:00
Doug MacEachern
d4d5c1e7db vsphere: adjust to govmomi tags API changes 2018-08-22 11:22:24 -07:00
Doug MacEachern
5816a8bc18 godeps: update vmware/govmomi
Update required to continue work on #64021

- The govmomi tag API changed

- Pulling in the new vapi/simulator package for testing the VCP Zones impl
2018-08-22 11:11:11 -07:00