Commit Graph

2904 Commits

Author SHA1 Message Date
Pengfei Ni
ef6f88d992 Fix Azure SLB support for multiple backend pools
Azure VM and vmssVM support multiple backend pools for the same SLB, but
not for different LBs.
2019-04-18 10:56:37 +08:00
andyzhangx
6c70ca61be move disk lock process to azure cloud provider
fix comments

fix import keymux check error

add unit test for attach/detach disk funcs
2019-04-16 05:31:18 +00:00
Kubernetes Prow Robot
4685eead2e
Merge pull request #76343 from frankgreco/ensureLoadBalancer-unit-tests
Begin Adding Unit Tests for EnsureLoadBalancer
2019-04-15 13:11:22 -07:00
GRECO, FRANK
91cdcceab5 adding loadbalancer name to log message 2019-04-14 16:37:54 -07:00
andyzhangx
39c239c308 refactor detach azure disk retry operation 2019-04-13 12:45:32 +00:00
M00nF1sh
1d6fe8c6c2 add TLS support for NLB 2019-04-12 15:27:49 -07:00
Andrew Sy Kim
eb1052248c remove pkg/credentialprovider from cloud provider import restrictions
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-04-10 18:40:17 -04:00
GRECO, FRANK
3dfeb51745 begin adding unit tests for ensureLoadBalancer 2019-04-10 10:04:25 -07:00
GRECO, FRANK
ce9c4bf905 ensuring that logic is checking for differences in listener 2019-04-05 14:18:10 -07:00
Maciej Szulik
019d16d8b7
Fix TestCreateDisk by sorting tags
Mock requires stable input, and in CreateDisk we invoke buildTags which uses
a map to create tags, which then get converted into an array. This leads to
unstable sorting order which confuses mock. Sorted tags are not needed in
regular code, but are a must in tests.
2019-04-04 17:32:06 +02:00
Kubernetes Prow Robot
d5b56f4ffc
Merge pull request #75988 from mcrute/add-mcrute-cloudprovider
Add mcrute to cloudprovider related owners files
2019-04-03 14:55:13 -07:00
Kubernetes Prow Robot
2fa5be1633
Merge pull request #75580 from suker200/azure_routetable_rg
Add azure_route support routeTableResourceGroup
2019-04-02 01:36:59 -07:00
suker200
a343be245d Add azure_route support routeTableResourceGroup
fix error from pull-kubernetes-verify

fix error from pull-kubernetes-verify azure_routes_test.go file

fix error from pull-kubernetes-verify azure_routes_test.go file with gofmt

remove duplicate comment
2019-04-02 10:33:02 +07:00
Mike Crute
85d72950eb Add mcrute to cloudprovider related owners files 2019-04-01 19:06:34 -07:00
tiffany jernigan
0d63fa4543 Update aws provider build files 2019-03-28 07:15:28 +00:00
tiffany jernigan
81c4fde489 Remove aws cred provider dep on cloud provider 2019-03-27 01:00:26 +00:00
Kubernetes Prow Robot
531dbd409f
Merge pull request #75445 from shinytang6/enhance/fmt
Replace all time.Now().Sub with time.Since
2019-03-26 13:55:17 -07:00
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
055061637a
Merge pull request #75062 from Fedosin/openstack_config_from_secrets
Allow to read OpenStack config from the secret
2019-03-25 09:01:20 -07:00
Kubernetes Prow Robot
994582965d
Merge pull request #75496 from andrewsykim/area-cloudprovider-label
add area/cloudprovider label for changes in pkg/cloudprovider & k8s.i…
2019-03-22 15:46:21 -07:00
shinytang6
5c9f4d9dc6 replace time.Now().Sub with time.Since 2019-03-21 18:02:55 +08:00
Kubernetes Prow Robot
3adae6ce2f
Merge pull request #75490 from yastij/azure-lb-idle-timeout
skip idleTimeout erros when deleting azure LB
2019-03-21 00:27:36 -07:00
Yassine TIJANI
f457179289 skip idleTimeout erros when deleting azure LB 2019-03-20 12:32:45 +01:00
Kubernetes Prow Robot
d7103187a3
Merge pull request #75054 from leakingtapan/ebs-wait
Remove the condition for only wait for KMS key is used
2019-03-19 21:27:14 -07:00
Andrew Sy Kim
e2ad79a302 add area/cloudprovider label for changes in pkg/cloudprovider & k8s.io/cloud-provider
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-03-19 21:16:20 -07:00
Kubernetes Prow Robot
0c0bd8a4cb
Merge pull request #74528 from droslean/gce-cleanup
gce: remove unused constants
2019-03-19 20:14:28 -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
Kubernetes Prow Robot
364b18cb9e
Merge pull request #75375 from frapposelli/GH-75236
Stop vsphere cloud provider from spamming logs with `failed to patch IP`
2019-03-18 03:45:12 -07:00
Kubernetes Prow Robot
d5a3db0039
Merge pull request #74311 from hpedrorodrigues/fix-lb-sg-deletion
Ensure ownership when deleting a load balancer security group
2019-03-14 18:10:58 -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
Pengfei Ni
84617c8b51 Allow disable outbound snat when Azure standard load balancer is used 2019-03-13 10:29:41 +08:00
Pengfei Ni
88907da9a4 Ensure Azure load balancer cleaned up on 404 or 403 2019-03-11 16:40:23 +08:00
Pedro Rodrigues
eb4087d5b5
Using lower case letter on the error message 2019-03-07 20:36:48 -03:00
Pedro Rodrigues
09a47d2bc0
Fix typo and format logs 2019-03-07 20:34:07 -03:00
Pedro Rodrigues
014cb38ecb
Check for ownership when deleting a load balancer security group
Co-authored-by: Marcus Fonseca <marcus.080196@gmail.com>
2019-03-07 20:34:07 -03:00
Mike Fedosin
cf8c193b87 Allow to read OpenStack config from the secret
Currently OpenStack cloud provider reads user credentials from config
file, where data is stored in clear text. This approach is not recommended,
as it is a serious security issue.

This commit add an ability to read the config from secrets, if necessary.
To do so, two new parameters are added to the config: SecretNamespace and
SecretName. If they are specified, the provider will try to read config
from the secret.
2019-03-07 19:20:54 +01:00
Kubernetes Prow Robot
2f930306a4
Merge pull request #74936 from rjaini/rj_1.14
Adding a check to make sure Metadata is read only if flag value is true.
2019-03-07 01:07:13 -08:00
Kubernetes Prow Robot
752d18d2b0
Merge pull request #74510 from SataQiu/fix-golint-2019022502
Fix some golint failures for pkg/kubelet/apis/...
2019-03-06 17:59:25 -08:00
Cheng Pan
ac6d32a65a Remove the condition for only wait for KMS key is used 2019-03-06 22:47:13 +00:00
Rohit Jaini
e0f51bcc2e Adding a check to make sure UseInstanceMetadata flag is true to get data from metadata. 2019-03-06 09:31:33 -08:00
Cheng Pan
001d9c694e Add CSI migration logic for EBS Volume ID format 2019-03-05 23:11:43 +00:00
Pengfei Ni
1d61d8d4a4 Convert resource group name in Azure provider ID to lower cases 2019-03-05 11:22:17 +08: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
andyzhangx
38f0908597 make funcs in azure cloud provider as public 2019-03-03 01:58:59 +00:00
andyzhangx
199ef0fba9 add more logging in azure disk attach/detach 2019-02-26 13:37:20 +00:00
Kubernetes Prow Robot
d5007409f7
Merge pull request #74398 from andyzhangx/detach-azuredisk-retry
add retry for detach azure disk
2019-02-26 00:35:32 -08:00
Kubernetes Prow Robot
6c5810c495
Merge pull request #74542 from gnufied/make-cinder-limits-via-openshift-conf
Allow cinder volume limits to be configurable
2019-02-25 21:48:52 -08:00
Hemant Kumar
7a46b30a7a Allow cinder volume limits to be configurable 2019-02-25 16:09:24 -05:00
Nikolaos Moraitis
c16acb61f0 remove unused constants 2019-02-25 16:25:10 +01: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
Pengfei Ni
8d0c5d9727 Fix subnet annotation checking for Azure internal loadbalancer 2019-02-25 14:48:53 +08:00
Mike Danese
47043bcac1 enforce that cloud providers are only linked in main or app packages 2019-02-22 11:56:39 -08:00
Kubernetes Prow Robot
8d6f20ea43
Merge pull request #74191 from andyzhangx/get-account-timeout
fix get azure accounts timeout issue when there is no out-bound IP
2019-02-22 05:22:45 -08:00
Kubernetes Prow Robot
eae5b730c8
Merge pull request #74200 from andyzhangx/lb-mixed-proto
fix mixed protocol issue for azure load balancer
2019-02-22 04:06:15 -08:00
andyzhangx
8c53db0941 add retry for detach azure disk
add more logging info in detach disk
2019-02-22 07:44:59 +00:00
andyzhangx
8cd09bb143 add timeout in GetVolumeLimits operation
add timeout for getAllStorageAccounts
2019-02-22 07:22:05 +00:00
andyzhangx
156602408a remove get azure accounts in the init process
set timeout for get azure account operation

use const for timeout value

remove get azure accounts in the init process

add lock for account init
2019-02-20 13:18:34 +00: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
Kubernetes Prow Robot
de2ceac50d
Merge pull request #74124 from truongnh1992/fix-typo
Correcting error on source codes
2019-02-18 20:16:46 -08:00
Kubernetes Prow Robot
fcaa726e60
Merge pull request #74080 from dims/ensure-prometheus-metrics-are-not-registered-twice
Ensure prometheus metrics are not registered twice
2019-02-18 11:59:30 -08:00
andyzhangx
4e4684662d add mixed protocol support for azure load balancer 2019-02-18 08:29:37 +00:00
skarthiksrinivas
a309d8a6c1 Provision vsphere volume honoring zones 2019-02-17 21:37:00 -08:00
andyzhangx
3b37dc566e add azure disk snapshot client in cloud provider 2019-02-16 13:35:39 +00: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
Kubernetes Prow Robot
72b0971f3b
Merge pull request #72687 from subramanian-neelakantan/vsphere_volume_zone
Applies zone labels to newly created vsphere volumes
2019-02-15 15:20:35 -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
Ben Moss
34ac4d9ee9 Update deprecated links 2019-02-15 09:13:07 -05:00
Nguyen Hai Truong
34961dc16c trivial fix typo: resouce -> resource
Although it is spelling mistakes, it might make an affects while reading.

Signed-off-by: Nguyen Hai Truong <truongnh@vn.fujitsu.com>
2019-02-15 02:05:28 -08:00
Subramanian Neelakantan
ba9a9cf7c3 Applies zone labels to newly created vsphere volumes 2019-02-15 15:06:01 +05:30
Davanum Srinivas
8fa332cce3
Ensure prometheus metrics are not registered twice
Change-Id: I0f05fae65689b1e22c18d2c46dc5125780e81024
2019-02-14 09:01:14 -05:00
Andrew Kim
a82481ff21 update import restrictions for pkg/cloudprovider/providers 2019-02-13 21:46:44 -05:00
Kubernetes Prow Robot
2aedcbc7ca
Merge pull request #73761 from andrewsykim/remove-cloud-provider-volume-deps
remove cloud provider dependencies to pkg/volume
2019-02-12 18:45:24 -08:00
Nikolaos Moraitis
6e820cdcaf replace loops with go idiomatic. 2019-02-11 11:21:52 +01:00
Davanum Srinivas
9870b74f90
cleanup .import-restrictions for cloud provider
Change-Id: I8f9b8a28474d12d6eb74ecef85a988dd3f1f851e
2019-02-10 22:56:53 -05:00
Andrew Kim
a62ee8b0a9 clean up volume rounding functions and move to k8s.io/cloud-provider/volume 2019-02-09 01:16:55 -05:00
Andrew Kim
ca6a051b00 remove cloud provider dependencies to pkg/volume
Co-authored-by: Weibin Lin <linweibin1@huawei.com>
2019-02-09 01:16:55 -05: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
Kubernetes Prow Robot
eac19a3ab9
Merge pull request #73616 from dims/move-part-of-kubelet-apis-well-known-lables
move pkg/kubelet/apis/well_known_labels.go to staging/src/k8s.io/api/core/v1/
2019-02-07 19:44:34 -08:00
Kubernetes Prow Robot
af17925f68
Merge pull request #73594 from masterzen/bugfix/73479-nlb-target-groups-tags
Fix #73479 AWS NLB target groups missing tags
2019-02-07 17:12:10 -08:00
Brice Figureau
bbee2da7f3 Fix #73479 AWS NLB target groups missing tags
`elbv2.AddTags` doesn't seem to support assigning the same set of
tags to multiple resources at once leading to the following error:
  Error adding tags after modifying load balancer targets:
  "ValidationError: Only one resource can be tagged at a time"

This can happen when using AWS NLB with multiple listeners pointing
to different node ports.

When k8s creates a NLB it creates a target group per listener along
with installing security group ingress rules allowing the traffic to
reach the k8s nodes.

Unfortunately if those target groups are not tagged, k8s will not
manage them, thinking it is not the owner.

This small changes assigns tags one resource at a time instead of
batching them as before.

Signed-off-by: Brice Figureau <brice@daysofwonder.com>
2019-02-07 19:43:46 +01:00
Kubernetes Prow Robot
98de0729cf
Merge pull request #73770 from M00nF1sh/master
support multiple cidr vpc for nlb health check
2019-02-06 12:06:32 -08:00
Kubernetes Prow Robot
7788606ec6
Merge pull request #73721 from frapposelli/fix-vsphere-ip-patch
Fix MAC filtering in vSphere cloud provider
2019-02-05 20:16:16 -08:00
M00nF1sh
416a98e030 support multiple cidr vpc for nlb health check 2019-02-05 17:31:16 -08:00
Fabio Rapposelli
dbeb5f02b5
fix mac filtering in vsphere cloud provider 2019-02-05 23:44:17 +01:00
Davanum Srinivas
6e954322b3
Fix BUILD files
Change-Id: Ie36cde9511a3123ae8f68449bcdee08a9b78cfd2
2019-02-05 13:40:29 -05:00
Davanum Srinivas
b975573385
move pkg/kubelet/apis/well_known_labels.go to staging/src/k8s.io/api/core/v1/
Co-Authored-By: Weibin Lin <linweibin1@huawei.com>

Change-Id: I163b2f2833e6b8767f72e2c815dcacd0f4e504ea
2019-02-05 13:39:07 -05:00
Andrew Kim
da22fcaac0 remove cloud provider dependencies to pkg/api/v1/service 2019-02-04 18:25:56 -05:00
Roy Lenferink
b43c04452f Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
Ashish Ranjan
7be223e798 Refactor to use k8s.io/utils/net/ package instead of kubernetes/pkg/util/net/sets
Signed-off-by: Ashish Ranjan <ashishranjan738@gmail.com>
2019-02-04 10:34:53 +05:30
Davanum Srinivas
3722989fe4
Cleanup pkg/cloudprovider/providers/.import-restrictions
Change-Id: I4d09ea3cc68eddd90cbafb2726fefc0701fe6925
2019-02-02 21:41:12 -05:00
Kubernetes Prow Robot
30566b990a
Merge pull request #73645 from andrewsykim/remove-dep-node-addresses
move AddToNodeAddresses to k8s.io/cloud-provider/node/helpers
2019-02-01 18:29:29 -08:00
Kubernetes Prow Robot
c953daa3bc
Merge pull request #73604 from andrewsykim/gce-features
move GCERegionalPersistentDisk feature to k8s.io/cloud-provider/features
2019-02-01 17:14:36 -08:00
Kubernetes Prow Robot
b0a455b811
Merge pull request #70309 from 2rs2ts/ssl-healthchecks
Use SSL health checks for ELBs when backend protocol is SSL/HTTPS
2019-02-01 14:31:41 -08: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
495ee5ea40
Merge pull request #73611 from andrewsykim/gce-lb-ports
remove GCE cloud provider dependency to pkg/master/ports
2019-02-01 06:32:23 -08:00