Commit Graph

126 Commits (eaf6c9248d4a2d290b3f0174a75bf7849059c53e)

Author SHA1 Message Date
Matt Rickard b02235c134 Fix patch for TPR panics in localkube
The patch correctly identified the metadata problem but did not skip
over when collecting the group metadata for the restmapper.
2017-05-15 13:34:43 -07:00
Matt Rickard 2bdca814a2 Upgrade to k8s v1.6.3 2017-05-11 13:28:10 -07:00
Matt Rickard 03c3f7f138 Add warning when no groupMeta exists for verison
Reference: https://github.com/kubernetes/kubernetes/pull/44771

Fixes https://github.com/kubernetes/minikube/issues/1252

TPRs are incorrectly coupled with the RestMapper right now.  The real
solution is for TPRs to not register themselves with the RestMapper.
This is a short term patch for minikube until the work is done
upstream.  On start/stop, the namespace controller and the garbage
collector controller both call this code and panic since TPRs have
registered themselves with enabled versions but have no group metadata.
2017-05-01 10:11:03 -07:00
Matt Rickard d5e53336ba godeps restore, godeps save 2017-04-14 13:20:58 -07:00
Mike Grass 74014aed51 Update docker/machine dependencies to v0.10.0 2017-04-07 12:39:21 -07:00
Matt Rickard d13ab3030d Upgrade to k8s v1.6 2017-03-31 13:24:05 -07:00
Matt Rickard ff8503d9f9 Vendor changes for v1.6.0-rc.1 2017-03-31 13:24:04 -07:00
Matt Rickard a02c9d9040 Vendor changes for v1.6.0-beta.4 2017-03-31 13:24:04 -07:00
Matt Rickard 73a0dfb487 Vendor changes for v1.6.0-beta.3 2017-03-31 13:24:03 -07:00
Matt Rickard afd6b32915 Vendor changes for v1.6.0-beta.2, external provisioner 2017-03-31 13:24:03 -07:00
Matt Rickard 30f492d723 Vendor changes for v1.6.0-beta.2 2017-03-31 13:24:02 -07:00
Matt Rickard 3a769cc4b8 Vendor changes for v1.6.0-alpha.1 2017-03-31 13:23:21 -07:00
Matt Rickard 3b6d4672ac Remove vendored in kvm driver
The vendored in KVM driver make minikube dynamically linked to libvirt
libraries, even for virtualbox users.
2017-03-02 17:09:33 -08:00
dlorenc 7bfa1275ac Vendor changes for storage provisioner. 2017-03-01 11:05:27 -08:00
Dongsu Park f9bfe65fc8 vendor: Better deal with failures under golang 1.8beta1
If minikube is built with go 1.8 or newer, localkube panics immediately
with the following message:

```
Feb 21 15:04:05 minikube localkube[3566]: I0221 15:04:05.712095    3566 services.go:51] Setting service IP to "10.0.0.1" (read-write).
Feb 21 15:04:05 minikube localkube[3566]: panic: parse 127.0.0.1:8080: first path segment in URL cannot contain colon
Feb 21 15:04:05 minikube localkube[3566]: goroutine 151 [running]:
Feb 21 15:04:05 minikube localkube[3566]: k8s.io/minikube/vendor/k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/internalversion.NewForConfigOrDie(0xc420c75380, 0xc420d04d40)
```

This issue was already reported to Kubernetes,
https://github.com/kubernetes/kubernetes/issues/38380. That was already
fixed in Kubernetes, but it's not included in Minikube yet.
So let's cherry-pick the commit to minikube, to avoid the panic.

Original commit message from
https://github.com/kubernetes/kubernetes/pull/38519

```
If there is any error in the initial parsing then we should just try
adding the scheme.

url.Parse(base) has changed in 1.8. Please see the following change
c5ccbdd22b

Fixes https://github.com/kubernetes/kubernetes/issues/38380
```

/cc @dims
2017-02-22 15:10:11 +01:00
Aaron Prindle 49ce54a6c3 Added warning message to boot2docker provisioner 2017-02-16 12:08:25 -08:00
Matt Rickard 94fe5c8423 Upgrade k8s to v1.5.3 2017-02-15 10:01:29 -08:00
Matt Rickard b9a115b3ae Add LocalClient to bypass RPC for drivers
This adds a new libmachine API implementation that skips RPC and instead
uses a vendored in driver directly.  This removes the need to download a
separate driver binary.  Currently, only the "core" drivers, and kvm are
supported as vendored in.  This means that xhyve is the only driver that
requires a separate binary for now.
2017-02-06 21:17:22 -08:00
Matt Rickard b638b101a2 Embed mock service interface from client-go
We use the default implementation by embedding fake.FakeServices which
implements ServiceInterface.
2017-02-02 10:56:51 -08:00
dlorenc 5b1e05b7e6 Update to k8s 1.5.2 2017-01-18 11:51:21 -08:00
dlorenc c2bc848daa Add an environment variable to enable trace profiling in minikube. 2017-01-09 13:55:14 -08:00
Matt Rickard 720733470a Update to v1.5.1 2016-12-14 09:53:56 -08:00
Matt Rickard 9c3da934a7 Upgrade to k8s v1.5 2016-12-13 11:21:48 -08:00
Matt Rickard 093ab51fbf Add golang/x/sys/windows 2016-12-13 11:21:48 -08:00
minikube-bot 5cf6d08f3d Upgrade to k8s version v1.5.0-alpha.0
Upgrade to k8s version v1.5.0-alpha.1

Upgrade to k8s version v1.5.0-alpha.2

Update to k8s v1.5.0-beta.1
2016-12-13 11:21:43 -08:00
Matt Rickard b0c7704e93 Upgrade k8s to v1.4.6 2016-12-02 10:13:51 -08:00
dlorenc 7758108e7a Update docker-machine. 2016-11-21 10:21:57 -08:00
vishah 980388f58e Fixes issue #811 by updating upstream spf13/pflag and using StringArrayVar in place of StringSliceVar for docker-env flag 2016-11-09 10:20:51 -05:00
Matt Rickard 57cbbe99b9 Merge pull request #799 from minikube-bot/jenkins-v1.4.5
Upgrade to k8s version v1.4.5
2016-11-03 15:27:33 -07:00
Matt Rickard 5e31d258ce Increase timeout for dialing docker daemon
In the boot2docker provisioner increase the timeout to fix a flake in
the linux virtualbox integration tests.  Note, this is a patch of a
vendored package.
2016-11-03 11:59:24 -07:00
minikube-bot b216ec81bf Upgrade to k8s version v1.4.5 2016-11-03 17:06:53 +00:00
dlorenc 55fd539300 Merge pull request #728 from jimmidyson/service-list
Add service list subcommand
2016-10-26 13:10:43 -07:00
Matt Rickard 80905d7fbd Merge pull request #738 from r2d4/dns
Remove vendored kube2sky, Add kube-dns as cluster addon
2016-10-26 10:16:12 -07:00
Jimmi Dyson badf04b4d2
Add service list subcommand 2016-10-26 14:43:08 +01:00
Jimmi Dyson 2d45e57cf5
Switch to go-download for downloading 2016-10-26 14:04:37 +01:00
Matt Rickard 91b1155a3b Remove unused vendored packages
These were referenced by kube2sky and our dns implementation
2016-10-25 14:00:51 -07:00
Matt Rickard 2202d5ccfc Upgrade default k8s to v1.4.3
No manual changes needed
2016-10-20 11:42:45 -07:00
Jimmi Dyson 2085b894be
Upgrade to Kubernetes 1.4.1 2016-10-12 14:59:40 +01:00
Matt Rickard 6f8c520d2f Godeps updates (#656)
* Inconsistencies between godeps and vendor

* Update spf13/cobra to 9c28e4b

Previous HEAD position was f62e98d... Merge pull request #300 from
cshung/master
HEAD is now at 9c28e4b... Merge pull request #339 from bogem/fixes

* Update spf13/pflag to c7e63cf

Previous HEAD position was 1560c10... Bump Go versions in Travis config
HEAD is now at c7e63cf... Merge pull request #93 from bogem/flagStrings

* Update spf13/viper to ed0a967

Previous HEAD position was 382f87b... Remove expensive TRACE logging
HEAD is now at ed0a967... Fix retrieval of pflag stringSlice (#240)

* Update docker/machine to 91e368
2016-10-04 11:57:13 -07:00
dlorenc a3efcc06d9 Update to k8s v1.4.0 2016-09-29 16:11:55 -07:00
Matt Rickard 7b9689745f Upgrade to k8s v1.4.0-alpha.2
Update to kubernetes 1.4-alpha3.

This required a "go get k8s.io/client-go" before godep save would work.
2016-09-29 15:57:24 -07:00
dlorenc 7546a03614 Update pflag and cobra. 2016-09-29 10:21:59 -07:00
dlorenc f6497556fb Add method to provision mock. 2016-09-27 16:53:00 -07:00
dlorenc 8bb4237745 Update docker/machine to HEAD.
@aaron-prindle's commit made it upstream, and this picks up a few other fixes.
2016-09-27 13:03:22 -07:00
Matt Rickard 3876d756cc Merge pull request #626 from kubernetes/upgrade-viper
Upgrade viper to ed0a9674c6ef3646e218d8bb70708d250e94354b
2016-09-24 09:28:41 -07:00
Matt Rickard 44eea09344 Upgrade viper to ed0a9674c6ef3646e218d8bb70708d250e94354b
Mainly to add support for bindPflags to string slices
2016-09-23 15:11:30 -07:00
Aaron Prindle 378e88b4a9 Changed docker-machine and sshutil to support hostnames with colons in them, for example ipv6 addresses 2016-09-23 13:32:25 -07:00
Aaron Prindle dab3190fef Changed minikube code to use pkg/errors, this is to improve error
messages to allow for stacktraces for future error-reporting. Added
error messages to .Wrap errors.
2016-09-08 14:59:35 -07:00
Jimmi Dyson abbb0f1469
Add hyperv support 2016-08-24 16:16:07 +01:00
Aaron Prindle e0494803a8 Updated k8s version to v1.3.5. Also updated docs. 2016-08-15 15:15:58 -07:00
Jimmi Dyson ecf7a35b19
Uprade to Kubernetes v1.3.4 2016-08-03 16:21:00 +01:00
dlorenc 9f177b962a Merge pull request #393 from jimmidyson/windows-support
docker-env command: Added support for multiple shells with no-proxy and unset flags
2016-07-26 08:23:30 -07:00
Rod Cloutier c847979cab
docker-env command: Added support for multiple shells with no-proxy and unset flags 2016-07-25 15:58:16 +01:00
Jimmi Dyson a84cb65851
Upgrade to Kubernetes 1.3.3 2016-07-25 14:03:15 +01:00
Jimmi Dyson 2cb6e7fb96
Upgrade to Kubernetes 1.3.2 2016-07-21 20:06:02 +01:00
aprindle 740ef2ec6f Upgraded the Kubernetes version to v1.3.0 2016-07-01 15:09:38 -07:00
Jimmi Dyson 8e058cc73c
Update kubernetes to v1.3.0-beta.2 2016-06-29 10:44:08 +01:00
Dan Lorenc 595a9cbbc6 Add an automated test for the releases.json schema. 2016-06-26 11:54:22 -07:00
dlorenc 88f11109d5 Merge pull request #191 from aaron-prindle/update-notifier-no-lib
Have update notifier working and tests
2016-06-21 13:32:21 -07:00
Dan Lorenc 9c252f002f Update kubernetes to v1.3.0-beta.1 2016-06-18 20:06:13 -07:00
aprindle dd875f614e Have update notifier working, need to add tests 2016-06-14 13:00:01 -07:00
Brandon Philips 9d65272511 vendor: add github.com/docker/machine/driver/vmwarefusino
Use the exact same version as the virtualbox driver.
2016-06-11 19:45:35 -07:00
Dan Lorenc e46b0d9cb0 Update k8s. 2016-06-10 09:43:46 -07:00
aprindle 3c59245f32 Added gen_help_text.go and docs/ directory for cobra generated help
documentation.  Added test in Travis for making sure docs are up-to-date.
2016-06-07 16:44:06 -07:00
aprindle adf5fc48fa Added dashboard cmd to minikube. Also added dependencies via godep.
In the future will add feature to wait for dashboard to start and then
display if it is not running yet.
2016-06-07 11:43:47 -07:00
dlorenc d4e887e2ad Update k8s. 2016-06-03 08:50:16 -07:00
dlorenc 14c1db2388 Update libmachine code to pick up misc. bug fixes. 2016-05-24 13:54:39 -07:00
dlorenc 0552f504dd Update k8s.io components to efc5bbc9e.
A manual change was required in kube2sky.go.
Updates were required in appc/spec and a few other libraries.
2016-05-23 11:27:28 -07:00
dlorenc 1884f8acf1 Blow away godeps.json, re "godep save". 2016-05-13 14:55:15 -07:00
dlorenc e7fb68b590 First attempt at updating k8s. 2016-05-13 14:05:27 -07:00
Dan Lorenc 91c9898017 Undo modifications to the vendor directory, getting this upstreamed will be harder than I thought. 2016-05-11 16:17:38 -07:00
Dan Lorenc 4ed427b6ff Fix certificate handling.
Start now outputs the correct commands
We add all the IPs to the certificate at creation time.
The certificate is created with ClientAuth extension.
We copy the correct certificates.
2016-05-11 14:05:40 -07:00
Dan Gillespie fe340e52e7 added localkube and dependencies 2016-05-04 01:54:00 -07:00
dlorenc 6e732c2f45 Cleanup unused godeps after removing localkubectl dependency. 2016-04-25 13:57:17 -07:00
dlorenc e8a60b9cdf Initial prototype using libmachine and localkubectrl.
go run cli/main.go start will bring up a VM with localkube
running and print out instructions on how to use it.

Lots to do still:
- This is not very safe to re-run, but it will attempt to reuse a VM
if it already exists
- Commands for stopping/restarting/deleting
2016-04-19 11:21:57 -07:00
dlorenc b2b63b5e2f Initial commit of CLI using cobra scaffolding.
This commit adds a root CLI with no commands yet. This was generated
using "cobra init", with only a few modifications:

- License fixes.
- Removal of viper config loading.
- Help text modifications.
2016-04-18 10:40:41 -07:00