Commit Graph

228 Commits

Author SHA1 Message Date
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
Jon Perritt 3064f6be15 server groups, lb, instance, and dns tasks, models and resources 2019-01-15 14:06:54 -07:00
Justin SB 26bd75aecb
Bulk spelling fixes
Experimenting with my own spelling checker, these are the typos it caught.
2018-12-20 17:43:56 -05:00
SataQiu d6a7299038 fix typos: dnsmaq -> dnsmasq, mutiple -> multiple 2018-11-21 18:47:47 +08:00
Liran Polak 9ccbe5b39a fix: do not log unmatched groups as warnings 2018-10-31 16:50:46 +02:00
Liran Polak e1f85e0827 fix: update doc comments 2018-10-14 11:37:31 +03:00
Liran Polak 6509e32b1b fix: boilerplate headers and packages list 2018-10-14 11:37:31 +03:00
Liran Polak 9f94c06e67 fix: rename spotinst's feature flag 2018-10-14 11:37:31 +03:00
Liran Polak 4c8ac60bf3 deps: vendor dependencies 2018-10-14 11:37:31 +03:00
Liran Polak 7654a923f1 feature: new integration: spotinst 2018-10-14 11:37:31 +03:00
mikeweiwei 027d324aaf If don't use formatted output,fix logging calls 2018-10-10 19:19:09 +08:00
k8s-ci-robot 2ad8588e51
Merge pull request #5635 from nareshku/support-albs-nlbs
Support for deletion of aws resources albs nlbs during delete
2018-09-21 11:40:33 -07:00
Justin Santa Barbara 7861a056d8 Recognize ubuntu images in sshUser dumping 2018-09-16 21:56:44 -04:00
Naresh Kumar Amrutham 37651c3534 fixed merge conflicts 2018-09-10 11:45:47 -07:00
Naresh Kumar Amrutham 2242e4cd0a modified comments 2018-09-10 10:57:56 -07:00
k8s-ci-robot d622f05054
Merge pull request #5686 from wingyplus/fix_go_vet
Fixes go vet complains
2018-09-04 18:36:46 -07:00
Levi Blackstone 206d95d614
OpenStack: enable cluster state deletion
Stub out a list resources method and call it from the collector
so that cluster state can be deleted via the API.
2018-08-30 20:08:57 -06:00
Thanabodee Charoenpiriyakij 49b203e126 Fixes go vet complains
When try `make govet` on `go1.11beta1`. It complains many things
related to invalid string formatting:

```
pkg/kubemanifest/visitor.go:35: Verbose.Infof format %s has arg v of wrong type bool
pkg/kubemanifest/visitor.go:40: Verbose.Infof format %s has arg v of wrong type float64
upup/pkg/fi/cloudup/alitasks/disk.go:76: Verbose.Info call has possible formatting directive %q
upup/pkg/fi/cloudup/alitasks/disk.go:91: Verbose.Info call has possible formatting directive %q
upup/pkg/fi/cloudup/alitasks/launchconfiguration.go:89: Verbose.Info call has possible formatting directive %q
upup/pkg/fi/cloudup/alitasks/loadbalancer.go:71: Verbose.Info call has possible formatting directive %q
upup/pkg/fi/cloudup/alitasks/loadbalancer.go:125: Verbose.Info call has possible formatting directive %q
upup/pkg/fi/cloudup/alitasks/scalinggroup.go:71: Verbose.Info call has possible formatting directive %q
dns-controller/pkg/dns/dnscontroller.go:603: Verbose.Infof format %s has arg records of wrong type []dns.Record
dns-controller/cmd/dns-controller/main.go:184: Verbose.Info call has possible formatting directive %q
pkg/acls/s3/storage.go:62: Verbose.Infof format %q arg u.String is a func value, not called
pkg/apis/kops/validation/validation_test.go:199: T.Fatalf format %q has arg config of wrong type *k8s.io/kops/pkg/apis/kops.DockerConfig
pkg/resources/aws/aws.go:1306: Warning call has possible formatting directive %q
pkg/resources/aws/aws.go:1313: Warning call has possible formatting directive %v
upup/pkg/fi/cloudup/aliup/ali_cloud.go:218: Verbose.Info call has possible formatting directive %q
upup/pkg/fi/cloudup/aliup/ali_cloud.go:290: Verbose.Info call has possible formatting directive %q
upup/pkg/fi/fitasks/keypair.go:266: Errorf format %q has arg e.Name of wrong type *string
upup/pkg/fi/files_owner.go:56: Infof format %s has arg group of wrong type *fi.Group
upup/pkg/fi/users.go:57: Warning call has possible formatting directive %q
upup/pkg/fi/users.go:63: Warning call has possible formatting directive %q
upup/pkg/fi/users.go:68: Warning call has possible formatting directive %q
upup/pkg/fi/users.go:129: Warning call has possible formatting directive %q
upup/pkg/fi/users.go:135: Warning call has possible formatting directive %q
upup/pkg/fi/nodeup/nodetasks/file.go:313: Errorf format %q has arg e.Mode of wrong type *string
upup/pkg/fi/cloudup/awsup/aws_cloud.go:1021: Warningf format %q reads arg #2, but call has 1 arg
upup/pkg/fi/cloudup/awsup/aws_cloud.go:1025: Warningf format %q reads arg #2, but call has 1 arg
```
2018-08-22 22:48:22 +07:00
Naresh Kumar Amrutham 97b258ca64 update build files 2018-08-17 13:12:03 -07:00
Naresh Kumar Amrutham ff2c0d4157 Revert "include dep"
This reverts commit b9c09878cd.
2018-08-17 12:59:58 -07:00
Naresh Kumar Amrutham b9c09878cd include dep 2018-08-15 11:14:19 -07:00
Naresh Kumar Amrutham 4e9d6760b8 initialize elbv2 session 2018-08-15 10:51:55 -07:00
Naresh Kumar Amrutham 76a0018d53 add delete support for NLBs, ALBs and Target groups 2018-08-14 16:15:22 -07:00
Justin Santa Barbara 5933aed899 Add ssh user to kops toolbox dump
Where we can identify the SSH user to use, we can include it in kops
toolbox dump.  This is a precursor to trying to better understand
what's in an image (warnings about NVME or network drivers, or showing
the correct SSH username)
2018-07-24 17:18:40 -04:00
LilyFaFa 7e1f400d11 delete cloud resources for ALicloud 2018-06-30 09:55:43 +08:00
andrewsykim da1adfd764 digitalocean: only delete A DNS records 2018-04-15 20:38:58 -04:00