Commit Graph

206 Commits (86ce484f74282b77cd6c60e1b3d8146f8954bd93)

Author SHA1 Message Date
Matt Rickard d2e355182b Fix logging message for feature gates 2017-03-16 11:23:51 -07:00
dlorenc e969ebe87b Add an external hostpath provisioner to localkube. 2017-03-01 11:05:14 -08:00
Aaron Prindle 56d4824456 Merge pull request #1149 from aaron-prindle/api-name-configurable
Added API Name as configuration option
2017-02-27 15:18:56 -08:00
Steve Sloka 50cb1f2a32 Fix boilerplate 2017-02-27 13:31:37 -05:00
Steve Sloka 706d02b926 Fix go-client / Refactor k8s util code 2017-02-27 12:52:33 -05:00
Steve Sloka 60d9d1e142 Refactor registry addon 2017-02-27 11:09:09 -05:00
Steve Sloka c3d962b58c Allow for addons to prompt for data input 2017-02-27 11:09:09 -05:00
Aaron Prindle 60a5910f88 Added 9p server as well as minikube mount command 2017-02-25 10:08:45 -08:00
Matt Rickard b26f0aa66b Merge pull request #1154 from r2d4/svc-tests
Refactor service package and add test coverage
2017-02-24 13:19:07 -08:00
Dongsu Park 4eb9e92dff pkg: fix data race around KubeConfigFile
TestSetupKubeConfig fails when running "go test --race", because of
concurrent accesses from multiple goroutines.

```
WARNING: DATA RACE
Write at 0x00c4201cc4b8 by goroutine 16:
k8s.io/minikube/pkg/minikube/kubeconfig.TestSetupKubeConfig.func1()
    k8s.io/minikube/pkg/minikube/kubeconfig/config_test.go:103 +0x23a
testing.tRunner()
    /usr/local/golang/src/testing/testing.go:657 +0x107
```

To fix that, convert KubeConfigFile to an atomic value that stores
string. Callers should run helper functions, SetKubeConfigFile() and
GetKubeConfigFile() instead of direct access to the value.
2017-02-24 17:58:59 +01:00
Matt Rickard b78fb926bc Merge pull request #1160 from r2d4/kubeconfig-tests
Add test coverage for SetupKubeConfig
2017-02-22 13:25:54 -08:00
Matt Rickard 7f13944043 Merge pull request #1150 from r2d4/env-tests
Add test coverage for cmd/docker-env
2017-02-22 13:25:34 -08:00
Matt Rickard c4196b65be Add test coverage for SetupKubeConfig 2017-02-22 11:39:55 -08:00
Matt Rickard 51d49b6dfa Add test coverage for MaybeWantKubectlUpdateMessage 2017-02-21 10:14:06 -08:00
Matt Rickard 7aaccedadc Add test coverage for cmd/docker-env 2017-02-20 11:30:57 -08:00
Matt Rickard 69f0a9f99a Refactor service package and add test coverage 2017-02-20 11:24:36 -08:00
Aaron Prindle 3433a3028c Added API Name as configuration option 2017-02-18 15:49:49 -08:00
Aaron Prindle ffcccbd646 Merge pull request #1145 from aaron-prindle/etcd-access
Change etcd to be accessible within pods
2017-02-17 15:41:44 -08:00
Aaron Prindle d3531c9eec Change etcd to be accessible within pods 2017-02-17 15:40:48 -08:00
Matt Rickard 86b1fd1916 Refactor services into its own package
pkg/minikube/cluster has become too crowded with service related
functions.  I've moved these to their own package, which will make
updating client-go easier because everything will be in one place.

There is still a little bit of work to be done with making
pkg/minikube/cluster free of references to kubernetes packages
2017-02-17 09:58:22 -08:00
Matt Rickard a44f87d57a Call RootCmd's persistentPreRun from svc cmd
Currently the service command overwrites the RootCmd's persistent pre
run.  Now it will run the rootcmd's persistent pre run after it runs
its own.
2017-02-13 11:38:54 -08:00
Matt Rickard f52805360d Merge pull request #1109 from endocode/dongsu/err-msg-newline
Add missing newline chars to error messages
2017-02-10 09:56:38 -08:00
Aaron Prindle c418095c38 Added MINIKUBE_HOME env variable which sets .minikube directory 2017-02-09 11:07:44 -08:00
dlorenc ab9cbf7ec0 Merge pull request #1091 from aaron-prindle/start-progress
Added additional print statements to minikube start
2017-02-09 10:57:42 -08:00
Dongsu Park 2976ae28af Add missing newline chars to error messages
Several error messages don't print out newline characters at the end,
for example:

```
$ minikube addons open dashboard
This addon does not have an endpoint defined for the 'addons open' command
You can add one by annotating a service with the label kubernetes.io/minikube-addons-endpoint:dashboard$
```
2017-02-09 17:29:39 +01: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
Aaron Prindle 7d30b4bf18 Added additional print statements to minikube start 2017-02-04 14:53:53 -08:00
Matt Rickard 1fbd936b39 Move iso download funcs to interface for testing
Also reorg types found in cluster.go into types.go
2017-01-31 13:45:56 -08:00
Matt Rickard dfdbc6a768 Fixes from gometalinter 2017-01-30 15:39:35 -08:00
Matt Rickard a638cce9ba Check minimum disksize before creating minikube VM
We use docker/go-units for human readable disk sizes on the --disk-size
flag.  However, sometime a user use wrong syntax and specify a disk
size that they didn't mean.  Fixes #976
2017-01-19 11:55:03 -08:00
Matt Rickard e4df3abc6f Merge pull request #1015 from r2d4/addons-open
Fixes nil dereference on error and addons open
2017-01-19 11:40:27 -08:00
Aaron Prindle c610deaa43 Fixed kubectl download text/check for Windows 2017-01-18 10:52:20 -08:00
Matt Rickard 69c3b5b818 Fixes nil dereference on error and addons open
Some addons don't have a 'minikube addons open' endpoint defined, so
don't retry and wait for them.
2017-01-17 11:50:25 -08:00
fate-grand-order c4ed8df451 fix missing argument for Printf 2017-01-17 15:17:40 +08:00
Steve Sloka ae2ae8f23c Rename awsecr-creds to registry-creds & update version which now supports Google Registry 2017-01-13 10:54:30 -05:00
Paulo Bittencourt 621178bce0 Print update notification to stderr 2017-01-11 08:42:01 -05:00
Matt Rickard 7e313451c1 Merge pull request #977 from r2d4/feature-gates
Support enabling alpha features with feature gates
2017-01-10 10:55:09 -08:00
Matt Rickard 89cdd44197 Support enabling alpha features with feature gates
This sets the feature gates on every kube-system component (apiserver,
kubelet, etc.)

Fixes #896
2017-01-09 13:55:39 -08:00
dlorenc c2bc848daa Add an environment variable to enable trace profiling in minikube. 2017-01-09 13:55:14 -08:00
Matt Rickard 1bfe4765c4 Merge pull request #967 from glaubitz/fixes
Fix missing else statement in addonsEnableCmd
2017-01-06 10:02:25 -08:00
Andreas Kohn 6a5176fefa Fix typo in user-visible message 2017-01-06 12:27:14 +01:00
John Paul Adrian Glaubitz 487a207321 Fix missing else statement in addonsEnableCmd 2017-01-06 12:19:55 +01:00
dlorenc 81cf30de2d Merge pull request #954 from gauthierbl/flag_to_keep_current_context_on_start
Adds --keep-context flag for 'minikube start'
2017-01-05 13:34:39 -08:00
Brandon L. Gauthier d28cea779d Added --keep-context flag for 'minikube start' 2017-01-03 17:56:06 -05:00
Matt Rickard 938e58e966 Add hyper-v switch to config set 2017-01-03 10:05:16 -08:00
Xinbo Weng f91f428634 fix duplicated 'the' and some 'a/an' errors
Signed-off-by: Xinbo Weng <xihuanbo_0521@zju.edu.cn>
2016-12-23 19:46:04 +08:00
Matt Rickard 8388e7dc3f Merge pull request #894 from r2d4/showlib
Deprecate show-libmachine-logs flag
2016-12-17 11:12:48 -08:00
Matt Rickard 12c5973fbf Manual changes for k8s v1.5.0-beta.1
The internal k8s client has now been taken out of the kubernetes repo
and is fully at k8s.io/client-go.  Minikube should only reference the
client-go library, while Localkube can continue to reference both
internal k8s components as well as client-go.

make gendocs
2016-12-13 11:21:44 -08:00
dlorenc 8bc094f37d Merge pull request #901 from upmc-enterprises/awsecr-creds-addon
Enable awsecr-creds addon
2016-12-09 13:22:55 -08:00
Steve Sloka 7e989d1ce2 Enable awsecr-creds addon which will setup credentials to AWS ECR for downloading docker images 2016-12-09 08:46:05 -05:00