Commit Graph

550 Commits

Author SHA1 Message Date
Cheng Pan
001d9c694e Add CSI migration logic for EBS Volume ID format 2019-03-05 23:11:43 +00:00
Davanum Srinivas
8fa332cce3
Ensure prometheus metrics are not registered twice
Change-Id: I0f05fae65689b1e22c18d2c46dc5125780e81024
2019-02-14 09:01:14 -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
M00nF1sh
416a98e030 support multiple cidr vpc for nlb health check 2019-02-05 17:31:16 -08: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
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
Kubernetes Prow Robot
aa7220876a
Merge pull request #73550 from andrewsykim/cloud-provider-version
use k8s.io/client-go/pkg/version for cloud providers
2019-01-31 11:44:46 -08:00
Andrew Kim
c01caa6796 use k8s.io/client-go/pkg/version for cloud providers 2019-01-30 18:11:11 -05:00
Andrew Kim
da1ea1c7f0 move cloud node helper functions to k8s.io/cloud-provider/node/helpers 2019-01-30 12:06:52 -05:00
Andrew Kim
1e4ff79f25 remove cloud provider dependencies to pkg/controller 2019-01-29 18:45:31 -05:00
Kubernetes Prow Robot
26d32a7cff
Merge pull request #72245 from ampsight/master
Add AWS Custom Endpoint capability #70588
2019-01-29 12:49:50 -08:00
Kubernetes Prow Robot
d2570d3971
Merge pull request #73427 from andrewsykim/cloud-provider-controller-client-builder
use ControllerClientBuilder in k8s.io/cloud-provider for AWS/GCE cloud providers
2019-01-29 08:12:24 -08:00
ampsingram
5daa004105 Add SigningName as optional parameter
Makes AWS testing simpler
2019-01-29 09:45:03 -05:00
Kubernetes Prow Robot
41e6fc50de
Merge pull request #73187 from micahhausler/micahhausler-approver
Added micahhausler as approver for AWS cloud provider
2019-01-28 23:06:41 -08:00
Andrew Kim
0cec135ba9 use ControllerClientBuilder in k8s.io/cloud-provider for AWS/GCE cloud providers 2019-01-28 15:58:58 -05:00
ampsingram
1ab6569da2 format changes 2019-01-25 18:16:48 -05:00
ampsingram
28d3774004 Add SigningMethod, make it optional, copy in verbatim
An empty SigningMethod will default properly.
2019-01-25 18:15:41 -05:00
andrewsykim
596c6fbf03 e2e test for node deleted in cloud provider 2019-01-25 17:45:18 -05:00
ampsingram
87592b3811 Fix golint findings 2019-01-24 11:58:12 -05:00
ampsingram
cc835a86c9 gofmt changes 2019-01-24 16:07:14 +00:00
ampsingram
d6ea2296e8 Fix comment in CloudConfig s/Name/Service 2019-01-23 10:30:19 -05:00
ampsingram
0dea245978 Change to CloudConfig methods for validation and Resolver fn get
Move to a separate section for service overrides in INI, populate a struct for each override
update-bazel, update-gofmt and verify-spelling run
2019-01-23 10:04:37 -05:00
Micah Hausler
d8c797f4b2 Added micahhausler as approver for AWS cloud provider 2019-01-22 15:01:11 -08:00
ampsingram
6f60d57dab Fail early, helps readability
responding to a comment in the PR
2019-01-16 18:47:09 -05:00
ampsingram
2a6ed9a698 Improvement suggested by PR comment
Fail early makes the code more readable
2019-01-16 18:18:16 -05:00
ampsingram
207a5a1267 Updates for PR comments 2019-01-16 18:12:49 -05:00
Andrew Garrett
72895a84a9 PR feedback - do not change protocol for externalTrafficPolicy = Local 2019-01-03 17:55:36 +00:00
Johannes Würbach
5e6d865794
AWS NLB: Support cross-zone load balancing annotation
AWS Network Load Balancer recently got support for cross-zone load balancing.

Use the existing `service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled`
annotation to configure it.
2019-01-02 20:38:59 +01:00
Micah Hausler
949d5f97c4 Added kubernetes version to user-agent for AWS SDK calls 2018-12-20 21:04:44 -08:00
ampsingram
86a8ede789 Add AWS Custom Endpoint capability #70588
Solves "Allow to override default AWS endpoint #70588"

Add several new properties to AWS CloudConfig to support custom endpoints.
Initialize/Parse on aws.go init() method which gets called when aws is loaded.
Allows overridden endpoints per servce and region. This allows functionality on air gapped networks.
This change is benign if services are not overridden in CloudConfig
2018-12-20 09:42:01 -05:00
Kubernetes Prow Robot
e056703ea7
Merge pull request #71547 from andrewsykim/check-provider-implements-interface
compile check to ensure cloud providers implement cloud interfaces
2018-11-30 23:40:18 -08:00
andrewsykim
4b0f2ab442 compile check to ensure cloud providers implement cloud interfaces 2018-11-30 10:33:34 -05:00
k8s-ci-robot
2fd1949b7f
Merge pull request #71294 from Chenditang/verify-golint
Fix golint verify errors.
2018-11-29 21:45:02 -08:00
k8s-ci-robot
d2ca5194ae
Merge pull request #70432 from mvladev/fix-cloud-provider-aws
fix aws provider to handle only EBS volumes
2018-11-29 00:47:55 -08:00
Andrew Garrett
7a8357554e
Merge branch 'master' into ssl-healthchecks 2018-11-21 16:33:33 -08:00
chendt.fnst
80de428f49 Fix golint verify errors.
**What type of PR is this?**
/kind cleanup

**What this PR does / why we need it**:
$ hack/verify-golint.sh
Errors from golint:
pkg/cloudprovider/providers/aws/aws_fakes.go:357:9: if block ends with a return statement, so drop this else and outdent its block
pkg/volume/util/util.go:204:9: if block ends with a return statement, so drop this else and outdent its block

**Which issue(s) this PR fixes** *(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged)*:

**Special notes for your reviewer**:

**Release note**:
```
NONE
```
2018-11-21 09:11:20 +08:00
Fulton Byrne
996c37c72b Unit test for aws_lb security group filtering
kubernetes/kubernetes#60825
2018-11-11 06:42:13 -05:00
Kelly Campbell
f052146a96 Fix AWS NLB security group updates
This corrects a problem where valid security group ports were removed
unintentionally when updating a service or when node changes occur.

Fixes #60825, #64148
2018-11-11 06:42:13 -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
k8s-ci-robot
101ba1f3b4
Merge pull request #67812 from renan/AWS_CreateVolumeWithTags
Combine creating a volume and applying tags in one operation
2018-10-30 14:59:44 -07:00
k8s-ci-robot
a49e4e128e
Merge pull request #69708 from mcrute/fix-aws-imports
Fix AWS volume and cloud provider import order
2018-10-30 13:44:50 -07:00
Martin Vladev
fa80dd5354 fix aws provider to handle only EBS volumes
When the cloud-controller-manager is running with PV label initializing controller
and NFS volume is created, it causes nill reference error.

fixes #68996
2018-10-30 21:07:45 +02:00
Mike Crute
49df100af9 fix AWS volume and cloud provider import order 2018-10-30 08:18:45 -07:00