Commit Graph

251 Commits

Author SHA1 Message Date
Justin Santa Barbara 64924d81e7 Merge pull request #1377 from justinsb/conversion_tests
Add conversion tests, and fix some problems
2017-01-07 22:38:25 -05:00
Justin Santa Barbara 53135fa57e Add conversion tests, and fix some problems
* We were naming our etcd zones inconsistently
* When we wrote to v1alpha2, we would change the etc member names

Fix #1202
2017-01-07 21:54:15 -05:00
Kris Nova 336237e879 Bug fixes and bastion reworking 2017-01-05 07:45:52 -07:00
Justin Santa Barbara 94c4e5fb4c Merge pull request #1274 from justinsb/kops_inspect
First step towards cluster-dump command
2017-01-04 23:19:36 -05:00
Kris Nova 968366d444 Merge pull request #1309 from justinsb/version_update
Update to k8s 1.6 code
2017-01-04 21:08:54 -07:00
Zach Loafman 7079729f26 Revert "Revert "Load protokube from http/https"" 2017-01-04 09:32:24 -08:00
Zach Loafman d69fd6989c Revert "Load protokube from http/https" 2017-01-04 07:54:20 -08:00
Justin Santa Barbara fbbfa98872 Merge pull request #1318 from justinsb/images_over_http
Load protokube from http/https
2017-01-03 22:31:03 -05:00
Justin Santa Barbara a375b1af82 Updates for k8s 1.6 code 2017-01-03 20:32:48 -05:00
Justin Santa Barbara 332ecd7302 Separate yaml output with dashes
Fix #1088
2017-01-03 14:21:25 -05:00
Justin Santa Barbara 5d6d0f5f5d Load protokube from http/https
This helps us treat protokube as being paired with nodeup, and is a step
towards registry-less deployments (and isolated deployments) along with
moving away from our deprecated gcr.io usage.
2016-12-31 15:21:20 -05:00
Chris Love 8b21ace32d Merge pull request #1218 from yissacharcw/delete-kubecfg
Delete kubectl config when deleting cluster
2016-12-30 16:05:05 -07:00
Chris Love e1f6804278 Merge pull request #1316 from justinsb/fix_gofmt_4
fix gofmt
2016-12-30 14:24:28 -07:00
Chris Love 6e40d78416 Merge pull request #1269 from justinsb/fix_1238
Respect the name flag on cluster get
2016-12-30 12:23:38 -07:00
Justin Santa Barbara b790eac9d4 fix gofmt 2016-12-30 10:52:14 -05:00
Justin Santa Barbara c28ecda838 Remove unreachable code (thanks govet) 2016-12-30 10:19:35 -05:00
Justin Santa Barbara 8791c30f27 Add JSON output 2016-12-30 10:04:59 -05:00
Justin Santa Barbara 6b01c15328 First step towards dump command 2016-12-30 10:04:59 -05:00
Justin Santa Barbara a7722cf67a Rework toolbox convert imported command 2016-12-30 10:04:59 -05:00
Chris Love d5cccfe88c Merge pull request #1254 from DualSpark/backport-the-backport
Backport the backport
2016-12-29 22:10:23 -07:00
Chris Love 37b27d84fe Merge pull request #1236 from justinsb/import_fixup
Fixes for import from kube-up
2016-12-29 21:48:24 -07:00
Kris Nova e059f01680 Refactoring logic in validation, we want topology-less clusters to fall through so the new API conversion code can deal with them.
Added PerformAssignments() to the create -f workflow

Also bumpings k8s version in create_cluster tests to 1.4.7 so the creation works as expected.
2016-12-29 06:01:16 -07:00
Justin Santa Barbara 8797db4e8a Merge pull request #1006 from justinsb/pre-create-dns
Pre-create DNS records
2016-12-28 15:35:08 -05:00
Justin Santa Barbara 04c9f8c253 mockroute53: support record creation 2016-12-28 14:04:46 -05:00
Justin Santa Barbara 56b07c04d9 Fix gofmt & calico autogen 2016-12-28 13:23:53 -05:00
Justin Santa Barbara f665733b0d Add test for bastion creation
Bastions are created when `-bastion` is passed.

Issue #1232
2016-12-27 01:29:50 -05:00
Justin Santa Barbara e3eb7454d2 Fixes for import from kube-up 2016-12-27 00:18:18 -05:00
Justin Santa Barbara 84ca708176 Respect the name flag on cluster get
Fix #1238
2016-12-26 22:41:17 -05:00
Kris Childress 898f7e33d8 Default to bastion-$clustername for new bastion clusters 2016-12-25 19:29:39 -07:00
heschlie 5cb8575dfe Fixed CI integration, added some tests for Calico
- CI issues were due to v1alpha2 being added, created Calico there
- Added some tests around Calico, similar to Weave
- Added conversion functions similar to Weave in zz_generated_conversion
2016-12-21 19:15:52 -08:00
heschlie a4b7093b0d Calico integration
Adding the option to install Calico with the `--networking calico`
argument.  This will currently deploy Calico v2.0 to the cluster.

Documentation has also been updated with information about Calico and
where one can find more information or help.
2016-12-20 10:13:00 -08:00
Yissachar Radcliffe b6a6352050 Delete kubectl config when deleting cluster 2016-12-20 12:42:03 -05:00
Justin Santa Barbara 8ce09c65e9 Fixes per code review 2016-12-19 01:18:28 -05:00
Justin Santa Barbara a03ea54365 Rename SubnetName -> Name
No schema impact
2016-12-19 00:01:38 -05:00
Justin Santa Barbara aeef9dc6eb A few real-world fixes to create-cluster around initialization 2016-12-18 23:56:36 -05:00
Justin Santa Barbara 91b77ae11e Multi-version testing; fix few edge cases
By testing with data from various schema versions, we effectively check
that they are equivalent.

Also this uncovered a few places where we were not strictly ordering
things - add some sorts in there.
2016-12-18 23:14:29 -05:00
Justin Santa Barbara b7accc4abd Set subnet types, create bastion subnets 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 ef6d1fddf5 Update tests for new TF output 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 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
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 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
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
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