Commit Graph

48 Commits

Author SHA1 Message Date
Ciprian Hacman 3a1120724e Cleanup AWS EC2 eventual consistency warnings 2020-07-29 23:38:15 +03:00
Peter Rifel 2144143018
Update NAT Gateways for tag-on-create 2020-07-10 14:14:47 -05:00
Peter Rifel 04a5ead08e Add cty field tags to Terraform structs 2020-04-05 21:18:02 -05:00
Ciprian Hacman 41f60dccfd Fix CloudFormation template tags for NatGateway 2019-12-07 05:55:18 +02:00
mikesplain 9e55b8230a Update copyright notices
Also cleans some white spaces
2019-09-09 14:47:51 -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
Thanabodee Charoenpiriyakij 8284237917 Fixes go vet complain in package upup/pkg/fi/cloudup/awstasks
This commit fixes the result from `go vet k8s.io/kops/upup/pkg/fi/cloudup/awstasks`:

upup/pkg/fi/cloudup/awstasks/iamrole.go:80: Errorf format %q has arg e.Name of wrong type *string
upup/pkg/fi/cloudup/awstasks/iamrole.go:88: Errorf format %q has arg e.Name of wrong type *string
upup/pkg/fi/cloudup/awstasks/iamrole.go:93: Errorf format %q has arg e.Name of wrong type *string
upup/pkg/fi/cloudup/awstasks/iamrole.go:98: Errorf format %q has arg e.Name of wrong type *string
upup/pkg/fi/cloudup/awstasks/iamrolepolicy.go:78: Errorf format %q has arg e.Name of wrong type *string
upup/pkg/fi/cloudup/awstasks/load_balancer.go:115: Warningf format %q has arg lb.LoadBalancerName of wrong type *string
upup/pkg/fi/cloudup/awstasks/load_balancer.go:328: Verbose.Info call has possible formatting directive %+v
upup/pkg/fi/cloudup/awstasks/load_balancer.go:382: Verbose.Infof format %q has arg actual.LoadBalancerName of wrong type *string
upup/pkg/fi/cloudup/awstasks/natgateway.go:189: Errorf format %q has arg id of wrong type *string
upup/pkg/fi/cloudup/awstasks/natgateway.go:193: Verbose.Infof format %q has arg id of wrong type *string
upup/pkg/fi/cloudup/awstasks/natgateway.go:197: Errorf format %q has arg id of wrong type *string
upup/pkg/fi/cloudup/awstasks/natgateway.go:283: Errorf format %q has arg e.Name of wrong type *string
2018-08-20 11:54:54 +07:00
Justin Santa Barbara 110c1a2aa7 Find RouteTable by cluster & role tag
Once we dropped the Name tag,we have no way to find RouteTables
otherwise.
2018-03-15 20:11:54 -04:00
Justin Santa Barbara 7af6f42e8b Tests: create vpc-12345678 & nat-12345678 2018-03-15 20:11:54 -04:00
Justin Santa Barbara dfb62a56ec Misc task code cleanups 2018-03-12 02:39:23 -04:00
Mike Splain 4bd5797bb1 Fix NAT find based on #4572 2018-03-08 13:26:34 -05:00
Mike Splain 7bd39bd9e7 Tag nat gateways 2018-03-08 13:09:59 -05:00
Kashif Saadat b79f310d6b Set lifecycle on ElasticIP and NAT Gateway tasks to avoid spurious changes 2017-08-21 08:43:59 +01:00
Justin Santa Barbara 3e1ce4f950 Add Lifecycle 2017-07-15 22:01:03 -04:00
Carlos Alexandro Becker f595c17394
fixed ineff assign on natgateway.go 2017-05-15 14:15:26 -03:00
Carlos Alexandro Becker dba9c4b286
fixed trying to match NatGateway via RouteTable log 2017-05-01 20:45:45 -03:00
Justin Santa Barbara 8230d8a140 Fix shared NAT gateways
Also add a test

Fix #1890
2017-03-01 00:15:12 -05:00
Justin Santa Barbara 7d68f744f6 Initial support for cloudformation output 2017-02-17 10:59:16 -05:00
Chris Love c96a79fd3d Merge pull request #1571 from justinsb/communicate_expected_elb_creation_time
Add message about expected time for NAT gateway creation
2017-01-23 10:09:37 -07:00
Justin Santa Barbara 76b1e6cc2e Add message about expected time for NAT gateway creation 2017-01-20 11:08:50 -05:00
Justin Santa Barbara 94e54156b2 Fix segfault in NatGateway
Fix #1568
2017-01-20 10:05:22 -05:00
Eric Hole 1e3d94392c Major redo/squash of the work to get egress added to the API and hooked up.
One commit from the always incredible @kris-nova was incorporated here, it was to
check for tags in `kutil/delete_cluster.go`. She was a major driver and instrumental in getting
this to where we aere now!
2017-01-19 16:57:42 -05:00
Kris Nova d41c655d9f Adding notes from call 2017-01-17 09:35:38 -07:00
Eric Hole 0f84494dbd Merge branch 'master' into kris-and-eric-1282 2017-01-08 11:10:13 -05:00
Eric Hole 3de7bfb93f First pass at Shared NGW docs. 2017-01-08 09:35:56 -05:00
Eric Hole cab1251161 New API fields ngwId and ngwEip. 2017-01-08 09:35:20 -05:00
Justin Santa Barbara 8cdd8bb7da Discover existing ElasticIP & NatGateway without tagging
This should allow for round-tripping with terraform (which can't
practically do remote-resource tagging)
2017-01-08 01:52:15 -05:00
Kris Nova 1b769b48c8 Adding notes from our meeting 2017-01-04 10:01:51 -07:00
icereval bf62eb7019 fill in RenderTerraform methods for private topology 2016-12-10 17:29:46 -05:00
Justin Santa Barbara 86622dad09 Cleanups to make kops update apply cleanly for private topologies
Remove a few spurious changes
2016-12-07 11:44:36 -05:00
Kris Childress 7377250a13 logging 2016-12-07 00:13:26 -07:00
Kris Childress db11e113d9 Adding sanity check for natgateways 2016-12-06 23:49:08 -07:00
Justin Santa Barbara 68250e4b9a Fixes to existing NAT gateway detection 2016-12-06 13:28:10 -05:00
alok87 99aa9d6490 Merge remote-tracking branch 'kopsrepo/master' into bastion_improvements
* kopsrepo/master: (29 commits)
  Add verify-boilerplate target
  Add logging of AWS retries
  adding hack/verify-boilerplate.sh to make ci target
  Print time remaining to succeed as a positive value
  adding hack/verify-boilerplate.sh to make ci target
  updating headers, OMG we need this in the ci
  Format resource diffs
  Include error in message when we fail to query AZs
  Import tidying
  Apply gofmt
  Update cmd/kops/validate_cluster for refactor
  Move to pkg/validation and tidy up
  Update command building pattern, a few tweaks
  adds more machine types
  fix path to adding feature doc
  Update dns-controller README
  bug in my fix header script
  updating header
  bumping weave version
  Remove old file
  ...
2016-12-04 17:24:29 +05:30
alok87 0ab99a432f Headers updated for ci fix 2016-12-04 15:15:10 +05:30
chrislovecnm 517a81bb05 bug in my fix header script 2016-11-30 22:52:04 -07:00
chrislovecnm 3f29bc982e updating header 2016-11-30 22:46:33 -07:00
Justin Santa Barbara fced564a8f Refactor wait-for-NAT-gateway code & add log messages
So users know what is happening
2016-11-28 10:23:47 -05:00
Justin Santa Barbara 933506bdbb Apply gofmt 2016-11-13 21:06:55 -05:00
Kris Childress 37f5bb7d57 Working networking commit!
- Stick bastion in ASG
 - ELBs for API and Bastion
2016-11-08 15:16:41 -08:00
Kris Childress cebdde3fb4 Woo! Time to start playing with private networks in AWS!! 2016-11-08 15:16:41 -08:00
Kris Childress cb3157935c Fixing CI build and cluster tests to work with topologies 2016-11-08 15:16:41 -08:00
Kris Childress 835e24f788 Working EIP and NGW CRUD for private networking..
Next step.. lets piece them all together
2016-11-08 15:16:41 -08:00
Kris Childress 9bd9e30bdd Adding another large commit after a make codegen 2016-11-08 15:16:41 -08:00
Kris Childress a1c5c77b23 docs 2016-11-08 15:16:41 -08:00
Kris Childress a1ca6b7a5b More progress - getting out to Github so I can switch laptops... will be needing 8 cores today :D 2016-11-08 15:16:41 -08:00
Kris Childress 8fba14b85b Small refactor - getting ready to start YAML 2016-11-08 15:16:41 -08:00
Kris Childress 000e847af2 Topology Initial Commit
- Refactor private networking -> topology
- Define new topology models (no changes yet)
- Docs
- Create cluster --topology and -t
- New functions for topology templating
2016-11-08 15:16:41 -08:00