Commit Graph

1737 Commits

Author SHA1 Message Date
Justin Santa Barbara b7accc4abd Set subnet types, create bastion subnets 2016-12-18 21:56:57 -05:00
Justin Santa Barbara 3ad4e09ca4 Set default NetworkCIDR before subnets
As the subnets will partition the parent NetworkCIDR, so they require it
to be set.
2016-12-18 21:56:57 -05:00
Justin Santa Barbara 031168f014 Populate zones when created a new cluster/subnet 2016-12-18 21:56:57 -05:00
Justin Santa Barbara 4475d68c2e Remove dead code 2016-12-18 21:56:57 -05:00
Justin Santa Barbara ee241b5d9b Infer subnets of the correct type in kops create ig
Utility subnets are only for type=Bastion
2016-12-18 21:56:57 -05:00
Justin Santa Barbara 5404bb10d3 Update tags on AutoScalingGroups 2016-12-18 21:56:57 -05:00
Justin Santa Barbara 51a4adb555 Create stub IAM policy for bastions 2016-12-18 21:56:57 -05:00
Justin Santa Barbara 0ef9d51586 Allow kops delete instancegroup, even if ASG does not exist
We probably shouldn't, but we delete the ASG when you `kops delete ig`.

If the ASG doesn't exist though, we can still delete the IG.
2016-12-18 21:56:57 -05:00
Justin Santa Barbara ef6d1fddf5 Update tests for new TF output 2016-12-18 21:56:57 -05:00
Justin Santa Barbara b7522cea28 Fix API ELB security group rules 2016-12-18 21:56:57 -05:00
Justin Santa Barbara 125b9badd8 Don't name bastion groups 'bastions.bastion...' 2016-12-18 21:56:57 -05:00
Justin Santa Barbara 1ef2c367c1 Reintroduce subnet assignemnt logic 2016-12-18 21:56:57 -05:00
Justin Santa Barbara fed68310fa Schema v1alpha2
* Zones are now subnets
* Utility subnet is no longer part of Zone
* Bastion InstanceGroup type added instead
* Etcd clusters defined in terms of InstanceGroups, not zones
* AdminAccess split into SSHAccess & APIAccess
* Dropped unused Multizone flag
2016-12-18 21:56:57 -05:00
Justin Santa Barbara cd9febe843 Simplify terraform ELB tasks 2016-12-18 21:55:40 -05:00
Justin Santa Barbara 613b7fea61 Map ELB attributes to terraform
Requires moving them under the LoadBalancer awstask, sadly
2016-12-18 21:55:40 -05:00
Justin Santa Barbara 0be724b696 Simplify terraform ELB tasks 2016-12-18 21:55:40 -05:00
Chris Love 6ce2cc3664 Merge pull request #1193 from justinsb/securitygroup_simple_test
Simple test for securitygroups task
2016-12-18 19:53:20 -07:00
Chris Love df98b13097 Merge pull request #1188 from justinsb/create_cluster_ig_1
Simple integration test for create cluster
2016-12-18 19:52:47 -07:00
Justin Santa Barbara 68baecafb6 Simple test for securitygroups task 2016-12-18 16:06:34 -05:00
Justin Santa Barbara fca2bccd49 Always returns items sorted by Name
Keeps tests deterministic, seems to be an assumption in the k8s API
also.
2016-12-18 14:17:28 -05:00
Justin Santa Barbara 9e546d7fe0 Add test harness for integration tests
Also generate a SSH public key and use it in our tests
2016-12-18 14:17:16 -05:00
Justin Santa Barbara 9a3b96f853 Add HA test, test against single "all yaml" output
Related to #1189 ... we have this output now (in testing!)
2016-12-18 13:47:24 -05:00
Chris Love 06c9927d4e Merge pull request #1190 from justinsb/mockec2_volumes_1
mockec2: first step towards volume support
2016-12-18 08:21:47 -07:00
Chris Love 6a105cef64 Merge pull request #1191 from justinsb/gofmt_3
Fix gofmt
2016-12-18 08:19:10 -07:00
Justin Santa Barbara 9bfd067520 Simple integration test for create cluster
Calls create cluster command
Compares to expected YAML output
2016-12-17 23:20:03 -05:00
Justin Santa Barbara 72ec584033 Fix gofmt 2016-12-17 23:18:12 -05:00
Justin Santa Barbara eeca9cfbc3 mockec2: first step towards volume support
Just stubs DescribeVolumes call
2016-12-17 23:17:16 -05:00
Chris Love 362e2cb33e Merge pull request #1176 from DualSpark/bastion-lc-delete-fix
Fixing abandoned launch configurations in kops
2016-12-17 12:47:54 -07:00
Kris Nova 343a99db67 Merge pull request #1145 from bjarkevad/patch-2
`kops upgrade` docs
2016-12-16 06:31:23 -07:00
Kris Childress 50f9028106 Fixing for tests, removing old function 2016-12-16 06:28:14 -07:00
Kris Childress b0d0fd312d Fixing orphaned LC's with kops 2016-12-16 06:26:07 -07:00
Chris Love 07912cd093 Merge pull request #1167 from andrewsykim/fix-ca-addon-bug
fix bug in cluster autoscaler addon spec
2016-12-15 15:32:39 -07:00
Chris Love 1516b3b822 Merge pull request #1165 from robertojrojas/issue_1120
fixes issue #1120 - User can specify CNI_VERSION_URL
2016-12-15 15:31:11 -07:00
Roberto J Rojas 99c42497c3 fixes #1120 - PR #1165 - changes as per review 2016-12-15 10:36:41 -05:00
andrewsykim 1f18cb574f fix bug in ca addon spec 2016-12-15 08:15:42 -05:00
Chris Love c4b258351f Merge pull request #1137 from justinsb/introduce_objectmeta
Mark ObjectMeta as a named field
2016-12-14 22:49:01 -07:00
Chris Love c82fe10abc Merge pull request #1032 from DualSpark/aws-tutorial
Aws tutorial
2016-12-14 22:28:31 -07:00
Kris Nova 253320a63c Merge pull request #1156 from justinsb/diff_format_bug
Fix a bug in diff formatting
2016-12-14 22:18:35 -07:00
Justin Santa Barbara c01c2af656 Mark ObjectMeta as a named field
This will work around some apimachinery bugs
(https://github.com/kubernetes/client-go/issues/8)
2016-12-14 22:26:57 -05:00
Justin Santa Barbara fbe62f0982 Merge pull request #1155 from rlmcpherson/get-json-support
get command support for json output
2016-12-14 21:39:15 -05:00
Roberto J Rojas 1c5e668ffe fixes issue #1120 - User can specify CNI_VERSION_URL 2016-12-14 20:48:27 -05:00
Randall McPherson 7e55582dde pass io.Writer when marshaling
don't assume stdout, pass it as io.Writer
2016-12-14 15:25:10 -05:00
Randall McPherson 7f34743bb5 move fullClusterSpecs calls outside of output switch 2016-12-14 14:46:47 -05:00
Justin Santa Barbara 1020214f87 Merge pull request #1148 from johnwchadwick/patch-1
docs: Minor README formatting improvement.
2016-12-14 12:28:43 -05:00
Justin Santa Barbara e046a770a9 Enable diff semantic cleanup 2016-12-14 12:07:16 -05:00
Justin Santa Barbara d4fd866ce3 Fix a bug in diff formatting 2016-12-14 12:06:58 -05:00
Chris Love bd5329075c Merge pull request #1138 from justinsb/fix_time_remaining_display
Fix display of time remaining
2016-12-14 09:59:37 -07:00
Randall McPherson de1eff91af remove unreachable code 2016-12-14 11:36:07 -05:00
Randall McPherson 3ad12b0114 add json unsupported message for secrets 2016-12-14 10:46:02 -05:00
Randall McPherson b048b59e30 add json support for get federations 2016-12-14 10:45:42 -05:00