Commit Graph

918 Commits

Author SHA1 Message Date
Justin Santa Barbara aa190b8c3f Merge pull request #141 from justinsb/fix_135
Perform as much validation as possible before writing a cluster config
2016-07-14 09:55:15 -04:00
Justin Santa Barbara 1102e7818d Perform as much validation as possible before writing a cluster config
This prevents us getting into a situation where an invalid cluster is
saved, and then cannot be deleted.
2016-07-14 09:54:21 -04:00
Justin Santa Barbara b8fa4c7277 Merge pull request #144 from justinsb/fix_98
Hash the k8s assets
2016-07-14 09:53:06 -04:00
Justin Santa Barbara 1a5a917c9d Hash the k8s assets
This serves both as a security check, but also validates early that the
assets actually exist.

Fix #98
2016-07-14 09:46:48 -04:00
Justin Santa Barbara 76d8a344d3 Merge pull request #142 from justinsb/docs_5
Beginning of docs about commands and args
2016-07-14 09:14:53 -04:00
Justin Santa Barbara 5f627ad793 Beginning of docs about commands and args 2016-07-14 02:43:42 -04:00
Justin Santa Barbara 25d1e97008 Merge pull request #138 from justinsb/fix_136
Don't export kubecfg if we're only doing a --dryrun
2016-07-13 11:11:06 -04:00
Justin Santa Barbara 4b3b0ab59a Don't export kubecfg if we're only doing a --dryrun
We don't have all the keys/certs yet!

Fix #136
2016-07-13 11:09:43 -04:00
Justin Santa Barbara 6c8d5d8ea7 Merge pull request #132 from justinsb/fix_129
Export kubecfg after as create cluster by default
2016-07-12 23:04:30 -04:00
Justin Santa Barbara df56204479 Export kubecfg after as create cluster by default
It is scoped to a particular context, so seems harmless, and users will
(almost?) always do it after creation.

Fix #129
2016-07-12 23:02:43 -04:00
Justin Santa Barbara 01479a112a Merge pull request #131 from justinsb/fix_128
Add version command that prints compiled version
2016-07-12 22:44:25 -04:00
Justin Santa Barbara d77d6f4859 Add version command that prints compiled version
Fix #128
2016-07-12 22:30:12 -04:00
Justin Santa Barbara 2cdd4a5e16 Merge pull request #130 from justinsb/fix_75
DNS fixes
2016-07-12 22:21:09 -04:00
Justin Santa Barbara fb1fa97bec Fix DNS zone creation
Though we don't actually expect to use it, we now pass the nonce that
was missing.

Fix #29
2016-07-12 22:16:48 -04:00
Justin Santa Barbara cae256340b Find matching existing DNS hosted zone
We choose the longest matching existing hosted zone as the default,
rather than the previous heuristic which was overly simplistic.

We also require the hosted zone to exist now; it doesn't seem to really
cost us anything given that the user has to set up DNS delegation
anyway.

Fix #125
2016-07-12 22:15:20 -04:00
Justin Santa Barbara b69ee2a0ee Accept a hosted zone ID for dns-zone
There isn't any real ambiguity.

Fix #75
2016-07-12 22:14:26 -04:00
Justin Santa Barbara e6c454b1c1 Merge pull request #121 from justinsb/docs_root_volume
Add docs for changing root volume type/size
2016-07-11 00:30:29 -04:00
Justin Santa Barbara 6f61e0c5b0 Better formatting for commands with responses 2016-07-11 00:29:00 -04:00
Justin Santa Barbara 9f1143781d Add docs for changing root volume type/size 2016-07-11 00:26:05 -04:00
Justin Santa Barbara 1db0833470 Merge pull request #120 from justinsb/gitignore
Update gitignore
2016-07-11 00:13:29 -04:00
Justin Santa Barbara cd3d7aa882 Update gitignore 2016-07-11 00:12:32 -04:00
Justin Santa Barbara 4dfe3fe8a1 Merge pull request #119 from justinsb/ig_cli
Refactor and improvements to CLI
2016-07-11 00:11:01 -04:00
Justin Santa Barbara d1b399a97d Fix reissue of CA key 2016-07-11 00:09:47 -04:00
Justin Santa Barbara 0f4999aade Fix cluster validation so it is less strict
We now validate the user-provided spec, so we can't enforce that all
fields are populated.  Instead we enforce that if they are populated
they are not invalid.
2016-07-11 00:09:12 -04:00
Justin Santa Barbara 0aed68c260 Add support for deleting an InstanceGroup 2016-07-11 00:08:55 -04:00
Justin Santa Barbara c4f2fbfcaf Tweaks to rolling-update CLI 2016-07-11 00:08:21 -04:00
Justin Santa Barbara 1d59f2aa80 Replace StateStore with a registry
StateStore was highly orientated towards a VFS system; replace it with a
Registry abstraction that is more object based.

We also rationalize much of the CLI (cmd) command logic also.
2016-07-11 00:07:59 -04:00
Justin Santa Barbara 050a6e6190 Merge pull request #118 from justinsb/import_fixes
Import cluster should create the same style name
2016-07-11 00:04:23 -04:00
Justin Santa Barbara eb589fd025 Import cluster should create the same style name 2016-07-11 00:03:22 -04:00
Justin Santa Barbara 0a59675c4b Merge pull request #117 from justinsb/fix_58
Add support for spot instances
2016-07-11 00:02:01 -04:00
Justin Santa Barbara f771c2af4c Add support for spot instances
Fixes #58
2016-07-10 23:56:16 -04:00
Justin Santa Barbara 4ac0395a9f Merge pull request #103 from justinsb/delete_shutting_down_state
Tolerate shutting-down state on instance during delete
2016-07-09 22:32:21 -04:00
Justin Santa Barbara 0c867a8971 Merge pull request #108 from justinsb/fix_96
Detect & delete new ASG launch configs
2016-07-09 22:29:56 -04:00
Justin Santa Barbara a8ee484b11 Merge pull request #109 from justinsb/fix_107
Delete cluster deletes keypairs
2016-07-09 22:29:43 -04:00
Justin Santa Barbara 524fb645d0 Delete cluster deletes keypairs
Again we delete by name, which is why we name them by the very unlikely
to conflict name "kubernetes.<clustername>"

Issue #107
2016-07-09 22:26:12 -04:00
Justin Santa Barbara 5b8b4d4da3 Detect & delete new ASG launch configs
We now output a ClusterName property into the launchconfig, even though
we don't technically need it.  But it allows us to more easily detect
the cluster, and it generally seems like a good idea.

Also rename to 'autoscaling-config' and clean up the cluster name
detection logic.

Fix #96
2016-07-09 22:07:24 -04:00
Justin Santa Barbara b98422fb3a Merge pull request #101 from justinsb/eventual_consistency_igw_tag
Tolerate eventual consistency error tagging gateways
2016-07-09 22:03:40 -04:00
Justin Santa Barbara 2632a46561 Merge pull request #106 from justinsb/fix_97
Clean up IAM roles as part of delete
2016-07-09 21:33:16 -04:00
Justin Santa Barbara d705a1001c Clean up IAM roles
We match by name; this seems acceptable given that we make the cluster
name a FQDN.

Issue #97
2016-07-09 15:33:57 -04:00
Justin Santa Barbara 885b728eb9 Merge pull request #105 from justinsb/fix_80
Move delete output to table helper
2016-07-09 14:53:40 -04:00
Justin Santa Barbara 952e74714f Sort table output
Currently sort order is locked to table order, but this could be changed
if needed.

Fix #80
2016-07-09 14:49:54 -04:00
Justin Santa Barbara e28c770c18 Move delete output to table helper 2016-07-09 13:57:02 -04:00
Justin Santa Barbara 555c637d93 Merge pull request #94 from justinsb/fix_66
Support `kops get/edit instancegroup`
2016-07-09 13:50:04 -04:00
Justin Santa Barbara fdfe710c92 Merge pull request #104 from justinsb/fix_35
More tweaks to the IAM async creation tolerance
2016-07-09 13:49:15 -04:00
Justin Santa Barbara 359fb8234a Merge pull request #102 from justinsb/fix_74
Delete Route53 host records on cluster-down
2016-07-09 02:46:53 -04:00
Justin Santa Barbara 0a8b94e748 More tweaks to the IAM async creation tolerance
Issue #35
2016-07-09 02:45:30 -04:00
Justin Santa Barbara c058a0c2a8 Tolerate shutting-down state on instance during delete 2016-07-09 02:41:56 -04:00
Justin Santa Barbara 5c65600229 Delete Route53 host records on cluster-down
Initial implementation: we match by name, for example; when we have a
hosted zone id we should plumb it through.

Does implement bulk deletion, because on Route53 we have to delete
multiple resources at once.

Issue #74
2016-07-09 02:41:25 -04:00
Justin Santa Barbara 935b08fba2 Tolerate eventual consistency error tagging gateways 2016-07-09 01:46:32 -04:00
Justin Santa Barbara 7ee06887f0 Merge pull request #100 from justinsb/fix_model
Fix model: numbers must be quoted
2016-07-09 01:42:17 -04:00