Commit Graph

40 Commits

Author SHA1 Message Date
John Gardiner Myers 57dec35f68 Split out TerraformWriter 2021-05-02 21:54:46 -07:00
Ole Markus With e70585d7e5 If one tries to use eip with a public ip that doesn't exist, fail
Update upup/pkg/fi/cloudup/awstasks/elastic_ip.go

Co-authored-by: Ciprian Hacman <ciprianhacman@gmail.com>
2021-04-21 08:36:56 +02:00
Peter Rifel 51cec7e556
Use "tag on create" for EIPs, NLBs, and TargetGroups
These are the remaining resources that support "tag on create" of which we werent taking advantage.

This allows more fine-grained IAM permissions for the kops cli.
2021-03-22 07:21:51 -05:00
Ciprian Hacman e11d934268 Add option to reuse existing Elastic IPs for NAT gateways 2020-12-06 09:37:17 +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
John Gardiner Myers f72dac180d Switch to new fitasks marker 2020-07-28 11:48:08 -07:00
John Gardiner Myers 86f157fa27 Refactor how api-server addresses are exported from tasks 2020-06-26 21:38:39 -07:00
Peter Rifel 04a5ead08e Add cty field tags to Terraform structs 2020-04-05 21:18:02 -05:00
tanjunchen 6a01525de5 fix-up bug in nodeup/pkg/model 2019-10-16 00:35:26 +08: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
Justin Santa Barbara a148c67cad ElasticIP tags for cloudformation & terraform
We previously weren't populating the terraform configuration with these
tags.
2018-03-25 15:52:50 -04:00
k8s-ci-robot 15f3141bdb
Merge pull request #4779 from justinsb/tag_elasticip
ElasticIP: Always tag
2018-03-24 20:17:10 -07:00
Justin Santa Barbara c6830c60d2 ElasticIP: Collect tags
We need to discover the actual tags on an ElasticIP, or else
we will always have changes detected.
2018-03-24 19:55:16 -04:00
Justin Santa Barbara b65f20ec88 ElasticIP: Always tag
Previously we weren't tagging the ElasticIP on initial creation.
2018-03-24 18:28:21 -04:00
Justin Santa Barbara dfb62a56ec Misc task code cleanups 2018-03-12 02:39:23 -04:00
Seth Pollack 3ae8ac1329 add option for BYOEIP 2018-02-16 12:08:05 -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
Justin Santa Barbara c9ac0cdbd8 Support GCE ForwardingRule (LoadBalancer) for API
Also lots of GCE cleanup
2017-03-28 00:00:20 -04:00
Justin Santa Barbara 7d68f744f6 Initial support for cloudformation output 2017-02-17 10:59:16 -05:00
Justin Santa Barbara 1bc0fb7696 Don't fail elastic IP task if TagOnSubnet is not set
We don't yet have a strong strategy for how to handle this if we are
interrupted, but the same problem exists with taggging in general.
Likely we'll need to write something like a WAL-log, and then check for
interrupted in-flight objects next time we run.

In any case, we shouldn't treat not using TagOnSubnet as an error.
2017-01-09 21:53:30 -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
icereval ead86d03d1 terraform import, thanks vsc 2016-12-10 20:55:00 -05:00
icereval bf62eb7019 fill in RenderTerraform methods for private topology 2016-12-10 17:29:46 -05:00
Chris Love 37b3499a20 Merge pull request #1092 from justinsb/spurious_privates
Cleanups to make kops update apply cleanly for private topologies
2016-12-07 22:31:17 -07: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
Justin Santa Barbara 64749953a3 elastic ip cleanup 2016-12-07 11:43:39 -05:00
Justin Santa Barbara 68250e4b9a Fixes to existing NAT gateway detection 2016-12-06 13:28:10 -05:00
Justin Santa Barbara 933506bdbb Apply gofmt 2016-11-13 21:06:55 -05: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 de79ca21b8 Now that is one fine elastic_ip.go file 2016-11-08 15:16:41 -08:00
Kris Childress a3dd1257ce Working ElasticIP associations on subnet. Delete and Create! 2016-11-08 15:16:41 -08:00
Kris Childress c1e8dbe9d6 More work on the network and EIP things 2016-11-08 15:16:41 -08:00
chrislovecnm 8fa2aac99f fixing more headers 2016-10-15 19:20:56 -06:00
Justin Santa Barbara bb01cf6ddd Make AWSCloud an interface, mock it out in tests
Beginnings of a mock for the AWSCloud, so that hopefully we aren't
calling out to AWS at all in the tests.  We will likely start mocking
the actual EC2 APIs in future, but this seems a good starting point.

Fix #425
2016-09-24 15:52:52 -04:00
Justin Santa Barbara d427858477 Rename to kops
The upup tool is now called kops, and we have moved repos
2016-06-30 09:25:25 -04:00
Justin Santa Barbara c72593fcf7 Use generators in tasks 2016-05-30 17:46:36 -04:00
Justin Santa Barbara cb7e20be3b Create HasAddress interface
AWS ElasticIPs and GCE Addresses implement HasAddress.  This will be
used by dependent tasks to extract the IP address at runtime.
2016-05-15 17:42:59 -04:00
Justin Santa Barbara caccb8953f UpUp: AWS support
Adds AWS support for both cloudup & nodeup.
Also cleaning up things found along the way!
2016-05-09 13:08:27 -04:00