Commit Graph

429 Commits

Author SHA1 Message Date
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
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
Cheng Pan
ac6d32a65a Remove the condition for only wait for KMS key is used 2019-03-06 22:47:13 +00: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
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
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
ampsingram
5daa004105 Add SigningName as optional parameter
Makes AWS testing simpler
2019-01-29 09:45:03 -05: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
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
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
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
andrewsykim
4b0f2ab442 compile check to ensure cloud providers implement cloud interfaces 2018-11-30 10:33:34 -05: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
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
Cheng Pan
6013bad90f Remove unused code in aws cloud provider 2018-10-29 20:30:38 +00:00
Andrew Garrett
14565f05d6 Use SSL/HTTPS health checks for ELBs when backend protocol is SSL/HTTPS
Fixes #45746
2018-10-26 22:09:58 +00: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
3d4cc707a2
Merge pull request #69454 from zetaab/fix_aws_node_delete
delete node from aws if it is terminated
2018-10-19 00:10:22 -07:00
Renan Gonçalves
5cd3c00dba
Combine creating a volume and applying tags in one operation
The previous version forced us to create AWS IAM Policies that are too
permissive when dealing with volumes. That's because:

1. Volumes were created without tags that identifies the new resource as
managed by the cluster. So technically the resourse, at creation time,
is not owned by the cluster.

2. Tags were added to the volume making the resource now managed by the
cluster. The problem being that it could make ANY volume as managed by the
cluster. Thus allowing resources that aren't really part of the cluster,
or part of no cluster at all, to become a resource managed by the cluster.

By combining the operations we can both make the code simpler, since we
don't need to deal with deleting a volume in case we can't apply tags to
it, plus the security model gets a nice improvement.
2018-10-17 11:14:01 +02:00
Jesse Haka
5ff99a2a58 delete node from aws if it is terminated
fix comment
2018-10-17 10:11:09 +03:00
k8s-ci-robot
5a0220a6d8
Merge pull request #69387 from mcrute/master
fix golint for pkg/cloudprovider/providers/aws
2018-10-16 17:53:02 -07:00
Guoliang Wang
a9beb4f932 AWS: unexport unnecessarily exported methods and variables about recognize region 2018-10-12 07:24:59 +08:00
Mike Crute
4d65f20ff6 fix golint for pkg/cloudprovider/providers/aws 2018-10-08 12:08:56 -07:00
k8s-ci-robot
13705ac81e
Merge pull request #68310 from cheftako/cpiMove
Moving the cloudprovider interface to staging.
2018-10-05 13:29:01 -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
Mike Crute
076dbc6fd6 [aws] allow true/false in lb annotations 2018-10-04 12:19:32 -07:00
k8s-ci-robot
1ce5f67af0
Merge pull request #62774 from Raffo/bugfix/aws-custom-elb-sg
Fixes #49445 by not adding the default SG when using SG annotation (AWS)
2018-10-01 15:51:13 -07:00