Commit Graph

102 Commits

Author SHA1 Message Date
Justin Santa Barbara dbab97e508 Use versioned marshaling where we can
In particular during a kops edit
2016-12-08 22:17:26 -05:00
Justin Santa Barbara 3ec68efbe7 Fix typo 2016-12-07 08:55:52 -05:00
chrislovecnm bad489cb75 message when we change kubectl context
fixing kubectl config path when set to multiple paths
2016-12-04 15:58:35 -05:00
Kris Childress 72c5868966 Merge pull request #707 from DualSpark/node-validation
New feature - node validation
2016-11-29 16:47:44 -07:00
chrislovecnm 82cf2c2c0f working on the start of validate
cluster validation seem to be working.  Need to test more

documentation yo

refactoring to get rid of import cycle not allowed
2016-11-28 18:16:32 -07:00
chrislovecnm 3ffc4e91cb Starting work on node lookup and validation 2016-11-28 18:16:31 -07:00
chrislovecnm 89ac0d24f8 starting porting node code 2016-11-28 18:16:31 -07:00
Zach Loafman e60c36068f Fix retries for AutoScalingGroup pending delete
This:
- reworks how retries are handled in fi/executor.go to a time-based scheme
- changes the single-task limit to 10m (from about 30s of no-progress)
- eliminates the inner IAM propagation retry for LaunchConfigurations,
because the task itself will just be redriven for a while. This also
eliminates any long-pole delay caused by this error (since task Run()
should be 'fast').
2016-11-28 17:04:02 -08:00
Justin Santa Barbara ae84beddb7 Use more api machinery when writing 2016-11-13 22:11:36 -05:00
Justin Santa Barbara 933506bdbb Apply gofmt 2016-11-13 21:06:55 -05:00
Kris Childress 479c7782d6 Fixing DNS annotations on pods / Bumping failed iterations
- Adding template functions to nodeup
- Adding 30 -> 42 iteration boost for attempted iterations without progress
- Adding template to kube api manifest
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 a3dd1257ce Working ElasticIP associations on subnet. Delete and Create! 2016-11-08 15:16:41 -08:00
Justin Santa Barbara 27fb687058 Fix typo: becasue -> because 2016-11-05 01:41:47 -04:00
Kris Childress c12c4aa5d6 Adding first element from kubectl path to log message 2016-10-19 19:12:23 -06:00
Kris Childress aa4649b32f Adding support for multiple kubeconfig paths.
- Just removing the `to` part of the log message. I don't think its a huge win to have that in the logs, and was causing problems This will close #670
2016-10-19 06:08:38 -06:00
Chris Love 653618aa41 Merge pull request #693 from justinsb/fix_672
Don't merge stdout & stderr when running kubectl
2016-10-18 22:28:32 -06:00
Justin Santa Barbara 1d239d9b09 Don't remove route tables tagged with another cluster 2016-10-18 22:21:39 -04:00
Justin Santa Barbara 6ec5da2827 Add unit test for deleting untagged route table 2016-10-18 22:16:05 -04:00
Justin Santa Barbara ba8514d840 Delete route tables, even if untagged, if we are deleting the VPC
The route table cannot exist without a VPC; if we're deleting the VPC we
must delete the route table also.

This will help fix problems when we fail to tag the route-table.

Issue #597
2016-10-18 21:59:56 -04:00
Justin Santa Barbara 7542b8980c Don't merge stdout & stderr when running kubectl
Issue #672
2016-10-18 21:35:34 -04:00
Chris Love 0d78c65498 Merge pull request #660 from justinsb/fix_upgrade
Fix upgrade from kube-up
2016-10-18 10:39:33 -06:00
Justin Santa Barbara d563d5589a Fix deletion logic to ignore terminated instances
Silly mistake because golang case statements do not fall though

Fix #673
2016-10-18 00:30:31 -04:00
chrislovecnm 8fa2aac99f fixing more headers 2016-10-15 19:20:56 -06:00
Justin Santa Barbara 2af1fde49d Reuse the route table when importing
Not only is this lower-impact, but it also avoid a bug because the
subnets were considered "shared", and thus we would not manage the
route-table any more.
2016-10-15 14:18:30 -04:00
Justin Santa Barbara c933008006 Don't validate cluster name when importing kube-up clusters 2016-10-14 22:38:29 -04:00
Justin Santa Barbara 542f8fb4f2 Refactor CLI to match kubectl approach
We have an Options class for each command, and a Run function that can
be called directly.
2016-10-11 09:47:11 -04:00
Justin Santa Barbara 5ac44018d4 Move API to pkg/apis/kops
This is a breaking change for people using the API (sorry), but is
hopefully a simple search and replace:

"k8s.io/kops/upup/pkg/api"
 -> api "k8s.io/kops/pkg/apis/kops"

"k8s.io/kops/upup/pkg/api/registry"
 -> "k8s.io/kops/pkg/apis/kops/registry"

This is the "correct" place for it in the k8s API infrastructure - we
are working towards a versioned API here.
2016-10-11 08:52:54 -04:00
Justin Santa Barbara f7fa324858 Initial k8s-style kops API
We try to emulate the k8s Clientset approach
2016-10-07 01:13:02 -04:00
Justin Santa Barbara c234f20d05 Fix logging of instance ids 2016-10-05 23:11:54 -04:00
Justin Santa Barbara 5137e2546e Tolerate InvalidInstanceID.NotFound when deleting instances
We treat as instance-already-deleted, i.e. not an error

Fix #592
2016-10-05 02:12:11 -04:00
Justin Santa Barbara a338f482dd Merge pull request #563 from justinsb/channels_for_clusters
Store channel in cluster, use it to determine version
2016-10-01 01:21:39 -04:00
Justin Santa Barbara 80becef5a3 rolling-update cleanups 2016-10-01 01:17:07 -04:00
Justin Santa Barbara 647618b755 Store channel in cluster, use it to determine version 2016-10-01 00:04:09 -04:00
Justin Santa Barbara a5cacebd99 Change rolling-update heuristics to be less aggressive 2016-09-30 23:42:47 -04:00
Justin Santa Barbara 5f8d68ec85 Refactor shared packages into util directory 2016-09-25 18:27:09 -04: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 8839e67f0b Merge fixups 2016-09-24 11:46:34 -04:00
Justin Santa Barbara 05c799761f First step towards rolling update
Start querying nodes in k8s also

Unclear whether we want to use two ASGs for greater control at the
moment.
2016-09-24 11:19:17 -04:00
Justin Santa Barbara ef1f64f308 Start cleaning up API: optional fields should be pointers 2016-09-08 00:49:40 -04:00
Justin Santa Barbara 9d7a7fc6e8 Merge pull request #349 from justinsb/govet_fixes
govet fixes
2016-08-26 02:16:12 -04:00
Justin Santa Barbara 637a10be12 govet fixes 2016-08-20 01:09:19 -04:00
Justin Santa Barbara a7ece228fb Fix issue with deleting DNS records when multiple matching zones found
We were accidentally reusing the variable we were closing over, I
believe
2016-08-19 23:55:38 -04:00
Justin Santa Barbara 4545352c00 Don't rolling-update all masters at once
Also add force command to rolling-update, for testing sanity.

Fix #284
2016-08-16 12:53:37 -04:00
Justin Santa Barbara 5d8c170360 Rename old upgrade command; make new upgrade intuitive
The old upgrade command (which was only called as part of a kube-up ->
kops upgrade) is now `kops toolbox convert-imported`.  The docs are
updated, but this is only normally called once per import so this should
not be high impact.

The upgrade command now looks for things that need upgrading.  Currently
only `upgrade cluster` is implemented; it currently only checks the
KubernetesVersion.  If KubernetesVersion is out of date, it will be
printed, and if --yes is specified the cluster spec will be set to the
next value.
2016-08-16 09:28:36 -04:00
Justin Santa Barbara 62fc3cfd69 Merge pull request #302 from justinsb/hints_on_update
Provide hints after update cluster
2016-08-14 22:21:51 -04:00
Justin Santa Barbara e778c792fe Provide hints after update cluster
This should make kops more discoverable

Issue #166

Issue #263
2016-08-14 22:19:52 -04:00
Justin Santa Barbara 7cde6890a4 Export admin password in kubecfg
This is where users expects to find it, because it is how kube-up does
it.

Issue #166
2016-08-14 22:18:58 -04:00
Justin Santa Barbara a3cfec6c24 Support changing the SSH public key
This requires that we include the OpenSSH fingerprint in the AWS key
name.
2016-08-11 12:00:52 -04:00
Justin Santa Barbara 928fd6161d Remove addons command
Encourage users to use kubectl instead
2016-08-03 00:42:42 -04:00