Commit Graph

353 Commits

Author SHA1 Message Date
Ole Markus With 09615935fd Make kOps CLI handle ASG warm pools 2021-04-15 11:10:23 +02:00
Ole Markus With 5a8d47d45f Fix bug with deleting OIDC providers 2021-03-19 20:07:22 +01:00
Bharath Vedartham 0c0767c0c9 Remove support for launch configurations 2021-03-09 09:04:15 +02:00
Kubernetes Prow Robot 9c5c186442
Merge pull request #10915 from t1cg/caw/publicLoadbalancer
add support for azure public loadbalancer
2021-02-24 19:51:24 -08:00
liranp 955e5072dc
fix: prevent igs with same suffix from being deleted 2021-02-24 17:53:34 +02:00
Kubernetes Prow Robot 1b42286cfe
Merge pull request #10832 from rifelpet/aws-sdk
Add Tagging to Instance Profiles and OIDC Providers
2021-02-24 05:40:50 -08:00
Collin Woodruff ee7fc850ff add support for azure public loadbalancer 2021-02-23 17:42:33 -05:00
Nicholas Galantowicz 616d446658 add usage of subnet and routetable shared resources in azure 2021-02-22 15:28:55 -05:00
Ciprian Hacman 4f70c4237c Update mock to v1.21.0-alpha.1 2021-02-16 14:19:58 +02:00
Peter Rifel d52fd9f76c
Add tagging support to AWS Instance Profiles and OIDC Providers 2021-02-15 16:48:43 -06:00
Peter Rifel 6e6e072d93
Use AWS SDK const for IAM entities not found 2021-02-15 15:53:59 -06:00
Collin Woodruff 6a8d474acd add internal loadbalancer for azure 2021-02-12 17:13:01 -05:00
Peter Rifel c28c4c728d
Cleanup kops-controller Route53 record during cluster deletion 2021-02-03 22:41:49 -06:00
Jesse Haka 643997320d fix comment 2021-01-13 11:57:01 +02:00
Jesse Haka 1bc330b0bb nameprefix -> groupname 2021-01-13 11:54:07 +02:00
Jesse Haka 38831ff70d fix test 2021-01-12 15:50:40 +02:00
Jesse Haka 46de9f145e update gophercloud dependency 2021-01-11 14:48:22 +02:00
Matthew Wong 7e9392e72c Treat InvalidDhcpOptionsId.NotFound as already-deleted 2020-12-28 17:27:34 -08:00
Kenji Kaneda a61caea8d2 Add Azure support
This commit contains all changes required to support Azure
(https://github.com/kubernetes/kops/issues/3957).
2020-12-21 08:27:54 -08:00
srikiz c911976516 Fix tests 2020-11-26 15:55:17 +05:30
Ciprian Hacman c8de1d3042 Handle cluster cleanup more gracefully 2020-11-12 18:21:04 +02:00
Ciprian Hacman 1d6a51aff9 Address review comments 2020-11-09 21:41:58 +02:00
Ciprian Hacman fdf976809e Use pagination when listing LaunchTemplates 2020-11-09 21:41:58 +02:00
Ciprian Hacman 565adceab9 Use LaunchTemplate versions instead of timestamped LaunchTemplates 2020-11-09 21:40:33 +02:00
Srikanth Rao 4d251fe900
[Digital Ocean] Implement Delete Instance logic for rolling update (#10000)
* Add delete Instance implementation for DO

* Add warning for DeleteInstance usage

* Use reconcile option for rolling update

* Update pkg/instancegroups/instancegroups.go

Co-authored-by: Ciprian Hacman <ciprianhacman@gmail.com>

Co-authored-by: Ciprian Hacman <ciprianhacman@gmail.com>
2020-10-13 10:06:27 -07:00
Ciprian Hacman c7bc3d4397 Update mock version to 1.19.0-alpha.3 2020-09-08 08:45:25 +03:00
Ole Markus With 0ec71686b9 Refactor cloudinstancegroupmember in a more independent cloud instance representation
Apply suggestions from code review

Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2020-08-30 21:37:03 +02:00
Ole Markus With ef25dda399 Migrate floating IP deletion to neutron 2020-08-24 06:44:29 +02:00
Peter Rifel 4d9f0128a3
Upgrade to klog2
This splits up the kubernetes 1.19 PR to make it easier to keep up to date until we get it sorted out.
2020-08-16 20:56:48 -05:00
Ole Markus With 9890839cec Add an integration test for openstack floating ip
* Integration test for floatingip cluster
* Implements mocking of floatingIP (only list for now)
* Expands various cloudmocks
* Fixes an NPR in openstack validation
* Fixes a bug where kops tries to use DNS even if the cluster is gossip
2020-08-12 12:59:30 +02:00
Peter Rifel 6c661d236d
openstack - dont panic if the dns zone is not found 2020-08-05 18:37:09 -05:00
Kubernetes Prow Robot be783014f2
Merge pull request #9637 from hakman/aws-eventual-consistency
Cleanup AWS EC2 eventual consistency warnings
2020-07-29 14:20:03 -07:00
Peter Rifel a17581e21d
Add cloud tags to AWS SSH Keys 2020-07-28 13:35:09 -05:00
Ciprian Hacman 85da6b1c85 Cleanup AWS EC2 dependency violation messages 2020-07-28 19:04:32 +03:00
Ciprian Hacman 81c2e76449 Print error during cluster delete for dependency violation 2020-07-17 18:16:06 +03:00
Kubernetes Prow Robot 065824851b
Merge pull request #9476 from srikiz/DO-implement-validate-cluster
[Digital Ocean] Implement KOPS validate cluster
2020-07-15 12:12:37 -07:00
Srikanth 160a4b81c9 incorporate review comments to use instance group name for DO instance group tag 2020-07-14 13:25:01 +05:30
Kubernetes Prow Robot 98ed5d4fa1
Merge pull request #9527 from hakman/update-mock-version
Update mock version to 1.19.0-alpha.1
2020-07-08 10:09:08 -07:00
Ciprian Hacman 827d8c041f Update mock version to 1.19.0-alpha.1 2020-07-08 18:31:18 +03:00
Peter Rifel fc35f9d59e
fix unit tests 2020-07-08 08:53:01 -05:00
Srikanth 0209830ff4 incorporate review comments 2020-07-07 10:04:58 +05:30
Srikanth 6b98cdd8cb incorporate review comment 2020-07-03 23:30:47 +05:30
Srikanth 5a34d42ee4 add err nil checks 2020-07-02 17:04:32 +05:30
Srikanth bff90aab21 Implement DO Validate Cluster method 2020-06-29 20:26:43 +05:30
Srikanth 422b03340d Initial changes for validate cluster implementation 2020-06-29 20:26:43 +05:30
Peter Rifel a837a7ee6c
Handle NoSuchEntity errors when deleting OIDC Provider 2020-06-16 14:36:57 -05:00
Peter Rifel a7d2161c0e
Add OIDC Provider awstask, mock, and resource lister and deleter 2020-06-16 14:36:56 -05:00
ZouYu 2fc52ec6be fix some go-lint warning
Signed-off-by: ZouYu <zouy.fnst@cn.fujitsu.com>
2020-06-09 08:52:50 +08:00
Ole Markus With 7342525872 Remove vsphere from kops files 2020-05-30 13:36:55 +02:00
Ole Markus With 89fba09caa Remove vsphere vendor stuff and related build files 2020-05-30 13:34:39 +02:00
liranp 23c0cdab36
feat(spotinst): new hybrid mode 2020-05-23 21:39:04 +03:00
Kubernetes Prow Robot ee504ac781
Merge pull request #9116 from srikiz/DO-LB-HandleUpdates
[Digital Ocean] Handle logic for kops edit/update cluster
2020-05-22 01:02:37 -07:00
Kubernetes Prow Robot 83c2a0885e
Merge pull request #8989 from hs0210/work
Add unit test for func matchesElbTags
2020-05-19 22:08:30 -07:00
Justin Santa Barbara 3306549749 Add general contract test for IsEmpty
This was the root bug that was causing the over-logging on GCE.
2020-05-17 17:11:01 -04:00
Justin Santa Barbara 7e710e85d9 DNS: Apply should be a no-op when empty
Document the contract a bit more, change the signature by adding a
context arg and following through to make sure we honor the contract
everywhere.
2020-05-17 16:45:08 -04:00
Srikanth f46ebbc7af Incorporate review comments 2020-05-14 17:25:25 +05:30
John Gardiner Myers 154833e652 Fail cluster validation if too few nodes for ig's target size 2020-05-12 22:28:26 -07:00
Srikanth c68f013468 Fix static checks 2020-05-12 10:02:58 +05:30
Srikanth 203449d7ac Minor changes for code cleanup 2020-05-12 00:29:02 +05:30
Srikanth b6a197e02e Update minor changes 2020-05-11 15:10:52 +05:30
Srikanth 5d3f2447e4 Changes for handling kops update 2020-05-11 15:10:52 +05:30
Jesse Haka bdaeb6df36 upgrade to cinder v3 to use api 2020-05-11 08:06:13 +03:00
John Gardiner Myers 463456737c Treat NatGatewaysNotFound error as already-deleted 2020-05-04 20:33:21 -07:00
Kubernetes Prow Robot b738f8e946
Merge pull request #8869 from justinsb/follow_on_8250
GCE DNS Cleanup: Print record name
2020-04-29 21:18:18 -07:00
Hu Shuai bf83440dfa Add unit test for func matchesElbTags
Signed-off-by: Hu Shuai <hus.fnst@cn.fujitsu.com>
2020-04-27 15:36:21 +08:00
eric-hole f25b26ff07 Migrates GCE sdk from v0.beta to v1 2020-04-24 10:54:19 -07:00
Justin Santa Barbara be1a03a3c0 GCE DNS Cleanup: Print record name
Use the GroupKey to pass the zone name, meaning the name can be the
user-facing value.

Follow-on to #8250
2020-04-07 22:11:09 -04:00
Christian van der Leeden eb3bb41c6b kops delete will also delete the DNS entries for GCE 2020-04-07 10:37:00 -04:00
Ciprian Hacman 59a6b065a0 Add root volume tags for CF and TF targets 2020-03-16 18:41:39 +02:00
Peter Rifel a999b3ea61 fix OWNERS labels format
These need to be lists
2020-03-10 22:47:50 -05:00
Peter Rifel 237a125f2c Add labels to OWNERS files
This will automatically label PRs that touch these directories.

This makes it easier to query GitHub for PRs that affect certain areas of the code.

I mostly used existing labels but created some new ones as well.
2020-03-10 08:35:58 -05:00
John Gardiner Myers 1b7c5139e0 Merge branch 'master' into surge 2020-03-03 17:53:18 -08:00
Kashif Saadat 697f4610c6 Fix SecurityGroup check when there are no Network Interfaces associated with a LaunchTemplate 2020-03-03 16:53:33 +00:00
Ciprian Hacman 7b5a4714e0 Find launch templates based on network interface security groups 2020-02-28 07:52:59 +02:00
Kubernetes Prow Robot 9cbbdd8426
Merge pull request #8533 from spotinst/fix-spotinst-owners
Spotinst: Add OWNERS file to Spotinst specific packages
2020-02-19 07:00:31 -08:00
John Gardiner Myers 9f9b98e9f4 Merge branch 'master' into surge 2020-02-17 09:17:26 -08:00
Matt Ouille f025ff0e70
Add External Policies (AWS managed policy attachments) 2020-02-16 21:54:12 -08:00
liranp fb54cbfd1a
chore(spotinst): add OWNERS file to spotinst specific packages 2020-02-12 18:08:24 +02:00
Kubernetes Prow Robot 4c6b87494a
Merge pull request #8237 from srikiz/DO-AddLoadBalancer
[DigitalOcean] Add load balancer support for master HA
2020-02-02 21:09:20 -08:00
Srikanth e440397548 Incorporate review comments 2020-01-28 14:22:49 +05:30
Ciprian Hacman 5f930683ed Update support for Amazon Linux 2 2020-01-28 08:13:45 +02:00
John Gardiner Myers cc5b6f4b8f Add fi.Cloud.DetachInstance() 2020-01-27 20:15:11 -08:00
Srikanth 38513b3a91 Address all review comments 2020-01-27 15:03:05 +05:30
Srikanth ddf2a90dde Update more review comments 2020-01-27 15:03:05 +05:30
Srikanth 42e88a7f89 Initial changes for load balancer task
Add load balancer fi tasks

Add load balancer builder for DO

Fix go imports

Implement FindIPAddress functionality

Add load balancer api ingress status calls

Add error checks for FindIPAddress

Add delete LB option

Update load balancer delete logic

Revert make file changes

revert utils code changes

Revert NewDOCloud changes

Remove minor code comments

Update with gomod for dependencies
2020-01-27 15:03:05 +05:30
Peter Rifel 21c5a82ed3 Update mock kops version 2020-01-03 08:17:02 -06:00
tanjunchen 7e25f9831d nodeup/pkg/ pkg/ staticcheck 2019-12-31 15:03:39 +08:00
John Gardiner Myers 4ef035faa2 Fix pkg/resources/openstack staticcheck failure 2019-12-29 15:57:14 -08:00
Kubernetes Prow Robot f57c09b279
Merge pull request #8079 from vvbogdanov87/fix-shared-volume-removal
Set shared field for volume resource on delete
2019-12-28 11:35:39 -08:00
ares 1e6675f9e9
Merge branch 'master' into fix-staticcheck-pkg-resources-digitalocean 2019-12-26 13:05:01 +08:00
Aresforchina 8ebcea0024 fix staticcheck failures in pkg/resources 2019-12-24 17:12:53 +08:00
Kubernetes Prow Robot dffc8975d6 pkg/resources/aws:simplify code and remove code 2019-12-24 10:56:57 +08:00
Kubernetes Prow Robot 61d556f9e9
Merge pull request #8188 from Aresforchina/fix-pkg-resources-aws
pkg/resources/aws:simplify code and remove code
2019-12-23 16:19:29 -08:00
Aresforchina 8f86a1b201 pkg/resources-aws:simplify code and remove code 2019-12-23 19:00:17 +08:00
Justin SB 802b1add43
Refactor: Add Region() method to fi.Cloud
This enables us to simply the apply logic.
2019-12-22 13:40:38 -05:00
vvbogdanov87 1b6ae9cb88 Add shared volume test 2019-12-12 20:54:41 +08:00
vvbogdanov87 a5c2fd5e59 Set shared field for volume resource
Signed-off-by: vvbogdanov87 <vvbogdanov87@gmail.com>
2019-12-08 18:11:00 +08:00
陈谭军 e197b32b0e
Merge branch 'master' into remove-some-unused-code 2019-11-13 09:50:30 +08:00
Kubernetes Prow Robot e29a04e5af
Merge pull request #7854 from FayerZhang/master
fix golint failures
2019-11-07 11:37:43 -08:00
feifei.zhang@huawei.com 4b49412105 fix golint failures 2019-10-31 20:22:37 +08:00
Srikanth 60329f07db Incorporate review comments 2019-10-30 20:09:45 +05:30
Srikanth d237a4cb04 Code cleanup for PR 2019-10-29 09:45:30 +05:30
Srikanth cb4a8ef6fc Rebase with latest master 2019-10-29 09:40:38 +05:30
Jesse Haka 5e3b94ae17 use existing network and subnet 2019-10-27 08:21:25 +02:00
hwdef b0c63b4cd9 pkg: fix static check 2019-10-24 14:16:41 +08:00
tanjunchen fa6d0130c8 remove unused functions and simplify return str 2019-10-15 23:54:10 +08:00
Kubernetes Prow Robot 34c7d5a64a
Merge pull request #7755 from tanjunchen/fix-up-static-error
fix-up staticcheck error
2019-10-13 08:20:35 -07:00
tanjunchen 28fdb358f8 fix-up staticcheck error 2019-10-08 13:53:04 +08:00
tanjunchen 43bf6bdab6 fix-up gosimple check error 2019-10-07 11:59:57 +08:00
tanjunchen 119e36be29 simplfy code 2019-10-04 22:19:08 +08:00
chentanjun 3d1966df84 fix-up some spelling mistakes in /pkg 2019-09-26 10:15:44 +08:00
chentanjun d47b4b6534 fix-typo 2019-09-25 21:34:24 +08:00
mikesplain 9e55b8230a Update copyright notices
Also cleans some white spaces
2019-09-09 14:47:51 -04:00
Deniz Zoeteman aaade12830 Don't try to delete ElasticIPs of NatGateway is shared 2019-09-06 15:39:14 +02:00
Srikanth 12732e3b3a Address review comments 2019-08-24 21:33:07 +05:30
Srikanth ccd9bd922e Fix volume_test for context and minor cleanup 2019-08-23 23:44:25 +05:30
Srikanth 430d5eded7 Go format code 2019-08-23 23:27:36 +05:30
Srikanth a67f1ac388 Update godo dependency to v1.19.0 version 2019-08-23 23:23:01 +05:30
Guangming Wang 129dd69f7d
ali.go: cleanup error words in messages
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
2019-08-19 21:55:21 +08:00
Kubernetes Prow Robot cdd3496c8a
Merge pull request #6229 from justinsb/gce_ipalias
GCE: support ipalias networking mode, named "gce"
2019-07-22 06:26:51 -07:00
Justin SB 4a8997a71d
GCE: support subnet deletion 2019-07-19 07:57:44 -04:00
liranp ff58f4aac9
fix(spotinst): rolling-update workaround 2019-07-16 01:08:53 +03:00
Jesse Haka ddaa0dd502 Possibility to use openstack without lbaas 2019-06-24 08:56:34 +03:00
Kubernetes Prow Robot a8e7109129
Merge pull request #7040 from spotinst/feature-spotinst-ocean
Spotinst: New instance group type: Ocean
2019-06-20 12:24:10 -07:00
Kubernetes Prow Robot d4bf54cb7c
Merge pull request #7045 from drekle/openstack_delete_dynamic_floating_ip
Openstack delete dynamic floating ip in delete cluster
2019-06-03 06:34:21 -07:00
liranp 80020052d3
feat(spotinst): new instance group type: ocean 2019-06-03 12:38:46 +03:00
Derek Lemon (delemon) 9542e9d1d7 Removing Unused type 2019-05-31 11:18:12 -06:00
Derek Lemon (delemon) 7b433cfae7 Openstack port resources derived from network 2019-05-29 07:42:09 -06:00
Derek Lemon (delemon) 7c53b35c9d Delete floating IP's based on the subnet resource, to clean up dynamically added ones as well, allowing for subnet deletion
Bazel updates

Updating deletion logic for octavia clusters
2019-05-23 07:53:09 -06:00
Justin SB 49b40c9150
VPC cleanup: recognize the error code for concurrent VPC deletion
Hit this when I was cleaning up my VPCs manually.
2019-05-16 16:06:41 -04:00
Justin SB 76d03b3f71
Generated files: glog -> klog 2019-05-06 12:56:03 -04:00
Justin SB 3e33ac7682
Change code from glog to klog
We don't call klog.InitFlags yet, because that will cause a flag
redefinition error until we get everyone to stop using glog.  That
will happen when we update to k8s 1.13.
2019-05-06 12:54:51 -04:00
Lily dafbc17c5a add natGateways tasks for ALICloud 2019-03-15 16:39:37 +08:00
Kubernetes Prow Robot 1564a67461
Merge pull request #6277 from gambol99/mix_instances_policy
AWS Mixed Instances Policy / Fleet
2019-02-20 10:30:33 -08:00
Kubernetes Prow Robot 12307284d6
Merge pull request #6487 from justinsb/ssh_guess_username_for_rhel_family
Guess SSH usernames for RHEL & Centos in toolbox dump
2019-02-20 02:37:14 -08:00
Kubernetes Prow Robot 2094ef7d20
Merge pull request #6438 from zetaab/octavia
support both octavia and old lbaasv2 api in openstack
2019-02-20 00:23:30 -08:00
Justin SB cf4bd22a80
Guess SSH usernames for RHEL & Centos in toolbox dump
A small bit of polish!
2019-02-19 21:23:34 -05:00
Kubernetes Prow Robot ced14aa57e
Merge pull request #6442 from zetaab/fixhostnames
fix hostnames in kops openstack
2019-02-18 13:34:00 -08:00
Kubernetes Prow Robot 7f93a102d9
Merge pull request #6367 from zetaab/os_owner
add OWNERS file to openstack spesific folders
2019-02-18 10:44:03 -08:00
Jesse Haka 0a2d375c7b removing dims from reviewer and add drekle as reviewer 2019-02-05 17:09:22 +02:00
Jesse Haka 3482a34ef5 support both octavia and old lbaasv2 api 2019-02-05 16:45:44 +02:00
Jesse Haka 306895fb4b ports should also use replaced name 2019-02-05 16:01:56 +02:00
Rohith 093e1f2fff - adding the logic to delete the launch template on cluster destruction
- fixing up the goformat for v1.10
2019-02-05 10:52:13 +00:00
Jesse Haka 44b5b4d57d fix hostnames in kops 2019-02-03 23:26:18 +02:00
Derek Lemon -T (delemon - AEROTEK INC at Cisco) 752775d613 Bazel updates for openstack floating ip resource deletion
Variable Naming Sanity
2019-01-31 15:18:40 -07:00
Derek Lemon -T (delemon - AEROTEK INC at Cisco) 498615e10c Openstack Floating IP Deletion 2019-01-31 14:50:50 -07:00
Jesse Haka 98ad9126c5 implement delete cluster for openstack 2019-01-29 12:56:48 +02:00
Jesse Haka 93974b4637 find sshkey resource when updating cluster 2019-01-24 08:59:23 +02:00
Jesse Haka c989dd52f5 add OWNERS file to openstack spesific folders
bootstrap
2019-01-20 19:29:09 +02:00
Derek Lemon -T (delemon - AEROTEK INC at Cisco) 4f0169bb79 codegen 2019-01-16 09:30:40 -07:00