Commit Graph

333 Commits (6ee6a82d0a211d8503e0c5b383fb9a1ae4fb6b13)

Author SHA1 Message Date
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
Matt Rickard 6f756a7481 Make iso-url configurable through config command 2016-12-08 15:06:57 -08:00
Matt Rickard f1fb26adc6 Add ingress controller to addons
This uses a custom version of the ingress controller.  We should move
it over to the official one when it is released.
2016-12-08 12:01:31 -08:00
Matt Rickard 084c1e8181 Deprecate show-libmachine-logs flag
Libmachine logs can be enabled with --v=3 or higher.  --v=7 turns on
debug level info.  This will simplify the debugging control plane and
allow us to transition off of libmachine logs in the future.
2016-12-06 10:49:04 -08:00
Aaron Prindle ec64e811aa Fix service list command 2016-12-02 11:36:35 -08:00
Matt Rickard 3db2fa95b0 Merge pull request #879 from r2d4/dupe
Dedupe minikube addons open subcommand
2016-12-02 11:02:56 -08:00
Matt Rickard 2569258ef2 Dedupe minikube addons open subcommand 2016-12-02 10:17:46 -08:00
Matt Rickard e7afea8215 Change instructions for completion bash on OS X
OS X default version of bash doesn't support process substitution.
https://github.com/kubernetes/minikube/issues/844#issuecomment-262587570
2016-12-01 14:21:41 -08:00
dlorenc b9d78a675d Handle multiple KUBECONFIGs 2016-11-29 11:09:55 -08:00
Andreas Kohn d34e961c2f
Add missing word in help text 2016-11-28 13:58:58 +01:00
clchen 539886eeda fix msg format 2016-11-23 10:28:23 +08:00
Matt Rickard 452a1e52c2 Merge pull request #833 from r2d4/retry
Retry for configureAuth on minikube start
2016-11-21 14:09:45 -08:00
Matt Rickard b72efef48d Retry for configureAuth on minikube start
Sometimes the docker daemon isn't ready and on a restart and libmachine
times out while trying to reach it.  This retries when it isn't ready.

This fixes timeout problems in our virtualbox integration tests.
2016-11-21 13:32:34 -08:00
Aaron Prindle 3fe4ef3e83 Added heapster to set of addons. Need to add test and repackage things to remove duplicated code. 2016-11-18 17:36:54 -08:00
Aaron Prindle 0e33746e1d Merge pull request #783 from aaron-prindle/kubectl-hint
Added check for kubectl to each command (in root.go)  This prompts user
2016-11-09 15:17:25 -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
Aaron Prindle 1960618ae1 Added check for kubectl to each command (in root.go) This prompts user
with kubectl install one-liner for latest kubectl version.  Also added
config for enable/disable.  Still need to add tests.
2016-11-03 13:26:06 -07:00
Jimmi Dyson 0bbcce5786
Fix dashboard command by adding service format template 2016-10-29 09:00:16 +01:00
Alexander Kanevskiy 2e12253a11 fix usage of errors.Wrap()
Format strings are not supported by errors.Wrap, so cleanup
them from error output where it is not needed.
2016-10-28 15:13:06 +03:00
Jimmi Dyson c057dede1f
Refactor multiple service ports handling after service list command added 2016-10-27 16:39:03 +01:00
Aaron Prindle bc1f5db71a Added functionality to read/open multiple ports via service cmd. Also
updated tests and help text for multiple ports.  Also updated docs.
2016-10-26 15:14:18 -07: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
Aaron Prindle f478292cd2 Merge pull request #722 from aaron-prindle/validate-service-cmd
Validate the service for the minikube service cmd
2016-10-25 14:40:44 -07:00
Matt Rickard 7560384fc8 Remove vendored kube2sky, Add DNS as cluster addon
Removes the vendored in kube2sky built into the minikube binary and
replaces the dns solution with kube-dns cluster addon.  This will allow
users to swap out DNS implementations by simply turning off the
kube-dns addon.
2016-10-25 14:00:51 -07:00
Aaron Prindle 8b5d027fd3 Validate the service for the minikube service cmd. 2016-10-25 13:45:26 -07:00
dlorenc 19e44dcf33 Merge pull request #745 from borisroman/feature/kvm_network
Add option to specify network name for KVM.
2016-10-24 12:37:43 -07:00
Boris Schrijver e717f5f84a Add option to specify network name for KVM. 2016-10-24 16:22:32 +02:00
Matt Rickard 24bced3969 Add simple bash completion for minikube
Similar to `kubectl completion bash`.  Does not support more advanced
queries, just commands.  Added as part of `make gendocs`
2016-10-21 14:42:06 -07:00
dlorenc 129f565611 Merge pull request #719 from aaron-prindle/hyperv-switch-flag
Added hyperv virtual switch configuration flag for hyperv driver
2016-10-21 10:03:23 -07:00
dlorenc 3a61ad6ab2 Merge pull request #731 from dlorenc/env
Add support for the KUBECONFIG env var during 'minikube start'.
2016-10-21 09:50:10 -07:00
Aaron Prindle f2f53e946e Added hyperv virtual switch configuration flag for hyperv driver. Also
updated docs.
2016-10-20 17:11:31 -07:00
Aaron Prindle 365599ff29 Reduced the number of error reporting endpoints as some were user error and some did not give useful output that we could act on (example: ssh) 2016-10-20 12:07:01 -07:00
dlorenc 20e6b2a56f Add support for the KUBECONFIG env var during 'minikube start'. 2016-10-20 11:41:11 -07:00
Jimmi Dyson e62d7291a6
Limit error reporting message to 80 cols width to reduce dodgy wrapping 2016-10-20 10:55:24 +01:00
Jimmi Dyson 3e82478373
Add format flag to service command 2016-10-19 19:52:33 +01:00
Jimmi Dyson 097505b540
Add config view subcommand 2016-10-14 19:46:59 +01:00
Matt Rickard 4cfca59c5c Add RetryableError for the Retry util
This way we can selectively retry the errors that are caused by some
temporary or ephemeral condition such as the pods not being up yet.
2016-10-13 13:53:38 -07:00
dlorenc c9389ee6fa Merge pull request #693 from dlorenc/service
Check to see if any endpoints are ready, instead of if any endpoints …
2016-10-13 13:45:11 -07:00
dlorenc 24682f1005 Check to see if any endpoints are ready, instead of if any endpoints are not ready. 2016-10-13 11:26:30 -07:00
Matt Rickard e23d88be71 Set default log_dir to ~/.minikube/logs
A hack around specifying the default log dir for glog.  Since we can't
set it without modifying the flag, we check if the flag has been
changed.  If not, we set it to our default value.
2016-10-12 10:40:14 -07:00
Aaron Prindle 2d2b484a22 Have working minikube addons command w/ enable, disable, delete. Also
updated docs.
2016-10-11 11:08:55 -07:00
Aaron Prindle 491e6c6d1c Added WantReportErrorPrompt to config 2016-10-06 15:12:45 -07:00
aprindle 7e78514174 Added opt in to stackdriver error reporting 2016-10-03 09:22:30 -07:00
dlorenc 8611a455ca Initial configurator commit. 2016-09-30 10:05:14 -07:00
Matt Rickard d45e44fe22 Add in a list of available fields in minikube config -h
Since not all fields are able to be set, let users know which are.
2016-09-28 11:56:53 -07:00
Brandon Philips 010502866b cmd: minikube: print newlines for service not ready
No newlines were printed before which made it look weird.
2016-09-17 16:35:22 -07:00
Aaron Prindle 3fcfb67f58 Added error reporting functionality and testing. 2016-09-13 11:18:25 -07:00
Sergiusz Urbaniak 3945c3bffb
localkube: add rkt, and CNI support 2016-09-09 13:48:22 +02: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
dlorenc dc60de97db Merge pull request #520 from aaron-prindle/better-status
Added localkube status to minikube status
2016-09-08 13:47:04 -07:00
dlorenc deb12103ce Merge pull request #553 from r2d4/loglevel
Add a log level threshold to libmachine debug logs
2016-09-08 13:46:47 -07:00
Aaron Prindle 6017e34d4d Fixed integration tests, adding test output to ssh mock, change help text to use multi-line string and
updated docs.
2016-09-08 13:13:15 -07:00
Matt Rickard 3ae77945f7 Add a log level threshold to libmachine debug logs
Anything over v=3 will trigger debug level logging when
show-libmachine-logs is also enabled.
2016-09-08 10:08:35 -07:00
Matt Rickard 121f48a23c Refactor config env var test and add string replacer for automatic env
Changes - to _ for environmental variables controlled by viper

Refactors tests to temporarily reset minikube related environment
variables to test them.
2016-09-07 15:56:30 -07:00
Aaron Prindle 3ef433d259 Added localkube status to minikube status. Also added format flag to
configure status output.  Also updated docs.  Also added godoc url to
help text for status.
2016-09-07 14:18:19 -07:00
Dan Lorenc 6219286cae Cleanup some "go vet" and "go lint" errors.
We should automate these checks...
2016-09-06 20:47:12 -07:00
dlorenc 12dfb47bca Merge pull request #545 from r2d4/config-set
minikube config get/set/unset cmd
2016-09-06 20:32:17 -07:00
Matt Rickard a8dbc18b51 Add minikube config get/set/unset commands
This introduces the minikube config get/set/unset command. At a basic level, it allows a more user friendly interface for setting minikube config values, but it also allows us to run validations and callbacks before and after the values have been set.
2016-09-06 15:14:28 -07:00
Jimmi Dyson 719bbaf86b
Ensure node IP is routable address 2016-09-05 14:33:27 +01:00
dlorenc 3cd29b1111 Merge pull request #481 from aaron-prindle/addons-directory
Added .minikube/addons directory where users can put addons they woul…
2016-08-29 13:27:53 -07:00
Aaron Prindle 3229aab37d Added .minikube/addons directory where users can put addons they would
like initialized in their minikube vms.  Refactored asset transfer to
VM.  Refactored code to use a base asset.  Made file length checking use
.Stat(). Added constructors for FileAsset and MemoryAsset.
2016-08-29 10:59:41 -07:00
Patrick Gray 4380f9b521 add https flag to minikube command for services that run over ssl/tls 2016-08-25 13:58:45 -04:00
Matt Rickard 05ef2db652 Making minikube start flags configurable by Viper config
This allows most flags for the minikube start command to be
configurable by viper as well.  If a flag is present, it will take
precedence over the value supplied in viper.

Viper doesn't handle string slices correctly (see
https://github.com/spf13/viper/issues/200) so the string slices that we
pass in as flags such as docker-env and insecure-registry are still only
handled by flags

Delete custom flag for human readable disk size

Since the value can now be passed in multiple ways (environment
variable, flag, or config file), moving the conversion out of the flag
and straight into cmd/minikube/cmd/start.go

This changes the helptext for gendocs
2016-08-24 12:59:59 -07:00
Matt Rickard 02956e8870 Make enableUpdateNotification check a pkg level var 2016-08-22 11:11:05 -07:00
Matt Rickard 6fc94598ab Refactor viper flag tests
Make the tests for the config table driven
Add a whitelist for the flags that viper can configure.

Date:      Tue Aug 18 16:41:05 2016 -0700
2016-08-22 09:50:28 -07:00
Matt Rickard d330686a27 Refactoring VersionCmd to run RootPersistentPreRun
While keeping the behavior of not checking for new versions while
running `minikube version`
2016-08-22 09:50:28 -07:00
Matt Rickard fe087c6126 Use config when flags are not set for logging
Use viper in addition to flags for logging options.  Since these flags
are used in glog, we can't directly use viper.  Instead, we use viper's
built in precedence logic (https://github.com/spf13/viper#why-viper)
to set the flags directly.
2016-08-22 09:50:13 -07:00
Aaron Prindle 9cff8573b2 Made it so that debug is enabled for --show-libmachine-logs flag. 2016-08-19 11:18:55 -07:00
dlorenc 28132517ed Merge pull request #484 from tsl0922/regist-mirror
Add registry-mirror option to minikube start
2016-08-16 11:04:23 -07:00
dlorenc 8953283ac6 Merge pull request #475 from jimmidyson/docker-api-version
Add DOCKER_API_VERSION to docker-env command
2016-08-15 12:57:03 -07:00
Shuanglei Tao 641910d8a8 Add registry-mirror option to minikube start 2016-08-13 22:55:48 +08:00
Matt Rickard bc363cfdb9 Add env variables for viper controlled vars
Minikube will now read from env variables with the MINIKUBE_ prefix.
These variables will be read on every viper.Get() and will overwrite default
variables.  When we add binding to pflags, flags will overwrite env
variables.  At this time, only notification settings are controlled by
viper.
2016-08-12 13:25:04 -07:00
dlorenc d799222e35 Merge pull request #428 from aaron-prindle/dashboard-wait
Have working minikube service & minikube dashboard wait until ready functionality.
2016-08-11 15:48:45 -07:00
Aaron Prindle c82cd94f14 Added unit tests for CheckEndpointReady. Also refactored code, cleaned
error messages, fixed gofmt, inlined/compacted structs in test, and
changed output to os.Stderr.
2016-08-11 15:16:24 -07:00
Jimmi Dyson 823dabf5f9
Add DOCKER_API_VERSION to docker-env command 2016-08-11 15:42:17 +01:00
Aaron Prindle 3f478fa025 Having working minikube service & minikube dashboard wait until ready
functionality using endpoints.
2016-08-10 10:04:24 -07:00
Dan Lorenc 63e0b80d56 Remove the "kubernetes is now available" line from start. 2016-08-08 14:50:13 -07:00
dlorenc 38d0f08351 Merge pull request #462 from r2d4/config
Add warning message for failure to read conf
2016-08-08 11:07:26 -07:00
dlorenc 2cdab03e53 Merge pull request #439 from alexbrand/host-cidr
Add ability to specify CIDR for Virtualbox minikube
2016-08-08 10:59:36 -07:00
Matt Rickard 25ba50166a Added config path to warning message 2016-08-08 10:53:01 -07:00
Matt Rickard f8e2bc9231 Add warning message for failure to read conf
The configuration file is optional, however when/if we move more
options to be configurable through the viper yaml file, this would be
nice to see when debugging.
2016-08-08 10:13:03 -07:00
dlorenc a76133b5e3 Don't drop errors during creation retries. 2016-08-04 10:54:36 -07:00
abrand 5838c7d833 Add ability to specify CIDR for Virtualbox minikube 2016-08-02 20:06:37 -04:00
Aaron Prindle 0b1cfce102 Refactored localkube url/asset code, fixed url.Parse code, updated flag
help message to add URI information, updated docs, fixed unused vars and removed unneeded comments
2016-07-29 15:27:09 -07:00
Aaron Prindle b3fe5faae6 Cleaned up start flags, added more robust URL checking for localkube
flag URL and added check to prepend 'v' to version # if it is missing
2016-07-28 12:33:34 -07:00
Aaron Prindle bd4e244ce8 Updated docs. Added retrying for the localkube download. 2016-07-28 12:33:34 -07:00
aprindle 53e80a9c6f Changed kubernetes-version to take k8s version as input (as well as
url) and to copy files from host to the vm instead of curl within vm.
Also made it so that sshutil.Transfer is done via a Reader.
2016-07-28 12:33:34 -07:00
aprindle bf3b82e5ce Working kubernetes/localkube versioning via a flag and tests 2016-07-28 12:33:34 -07:00
Jimmi Dyson 90cd742cca
Prevent version check for version subcommand 2016-07-27 13:59:53 +01:00
Jimmi Dyson e6c988e5a7
docker-env: improve template error handling 2016-07-26 09:21:03 +01: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 22bac3210b Merge pull request #386 from ascheman/feature/insecure-registry
Add insecure-registry option to minikube start
2016-07-22 10:45:04 +01:00
Gerd Aschemann 82f5cb0a08 Fix source code formatting via gofmt (kubernetes/minikube#385) 2016-07-22 10:00:48 +02:00
Gerd Aschemann 5b2655f1f3 Add insecure-registry option to minikube start (cf. kubernetes/minikube#385) 2016-07-22 01:38:17 +02:00
dlorenc 6fcf2cda6d Merge pull request #362 from aaron-prindle/cache-files
Have iso caching working
2016-07-21 11:23:39 -07:00
Aaron Prindle 3e06673fc5 Refactored iso caching code 2016-07-21 09:53:52 -07:00
Jimmi Dyson a2f789590b
Enable all available APIs 2016-07-21 15:39:37 +01:00
Aaron Prindle 072991e2e5 Have iso caching working 2016-07-19 15:58:25 -07:00
Dan Lorenc c6b2649966 Add a flag to minikube start to allow passing environment variables to Docker. 2016-07-18 10:27:09 -07:00
Jimmi Dyson f602020f02
Create long lived CA certificate 2016-07-12 15:59:38 +01:00
Jimmi Dyson 4488219180
Make disk size configurable 2016-07-10 23:43:54 +01:00
Jimmi Dyson 7d5aca9fe3
Switch API server to port 8443 2016-07-08 23:38:27 +01:00
dlorenc 759f5c54ec Merge pull request #294 from dlorenc/start
Always set the current context to 'minikube' after a start.
2016-07-08 12:34:38 -07:00
dlorenc 9fa002d573 Merge pull request #277 from aaron-prindle/get-kubernetes-version
Added get_kubernetes_versions command and tests
2016-07-07 13:38:47 -07:00
dlorenc 4f6a268961 Always set the current context to 'minikube' after a start. 2016-07-07 13:19:29 -07:00
aprindle 216077d8b8 Added get-k8s-versions command and tests. 2016-07-06 14:15:38 -07:00
Jimmi Dyson 44b2d9ce20
Add service command, copied & refactored from dashboard command 2016-07-04 15:08:27 +01:00
aprindle 32843fa860 Fixed spam caused by etcdserver/api/v2http logging through capnslog, changed etcdserver/api logging to be for NOTICE lvl and above 2016-06-30 10:34:36 -07:00
Steve Sloka 95edd89399 Added flag to allow the number of CPU's to be specified as flag to start command 2016-06-27 15:32:16 -04: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 6cd2db3b67 Update start text to mention that kubectl is configured automatically. 2016-06-17 13:13:14 -07:00
aprindle f5a56b1d60 Finished tests for update notifier 2016-06-14 13:00:01 -07:00
aprindle dd875f614e Have update notifier working, need to add tests 2016-06-14 13:00:01 -07:00
aprindle 03cca006ee Added --memory flag to minikube start so that users can configure the ram of the vm 2016-06-13 18:13:53 -07:00
Brandon Philips 53ee8642f8 cluster: add support for vmwarefusion driver
Add support for the vmwarefusion driver which is greatly more stable on
OSX. Also, document it in the README as an option.
2016-06-11 19:47:11 -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 5d775b4d8d Merge pull request #144 from dlorenc/logs
Add a flag to hide libmachine logs.
2016-06-02 09:00:56 -07:00
dlorenc 0ff6bbfa17 Add a retry utility to util, and use it to retry cluster creation.
This fixes the phantom errors we see on ubuntu that are fixed by rerunning start.
2016-06-01 13:53:09 -07:00
dlorenc 44567c03d8 Add a flag to hide libmachine logs.
These logs often reference docker-machine itself, which is confusing to
users. We should log everything we need to ourselves.
2016-05-31 15:18:27 -07:00
aprindle a917beaee2 Have ssh command working and unit-test passing. Also changed log->glog in ssh_mock. 2016-05-31 10:02:33 -07:00
Lucas Käldström 84004ad6c3 Run gofmt 2016-05-28 18:10:56 +03:00
Lucas Käldström a62e9e5ca8 Removed localkube start and version commands in favor for starting as default and using version as a flag. Also the version is now set my the Makefile 2016-05-28 17:50:36 +03:00
Dan Lorenc abca78dfde Allow glog flags in localkube. 2016-05-27 15:55:16 -07:00
aprindle 778ae79a26 Added glog in place of log.*-and-fmt.Error* for cmd/minikube,
cmd/localkube, pkg/minikube and pkg/localkube
2016-05-27 12:48:25 -07:00
Dan Lorenc 01b76efc7f Configure capabilities explicitly before starting localkube.
There's a race condition in the current capability initialization. These
can only be configured once per binary, so if the APIServer goroutine
sets it first the kubelet goroutine can never change this value.
2016-05-27 11:10:38 -07:00
aprindle 706f974751 finished logs functionality and tests 2016-05-27 09:16:18 -07:00
Lucas Käldström 00d4152313 Rename some constants in constants.go to Default..., and break out more constants 2016-05-25 23:25:49 +03:00
Lucas Käldström 1a3ef791f9 Add a version command to minikube too 2016-05-25 23:24:12 +03:00
dlorenc a8b12f7d78 Switch to using a versioned ISO url. 2016-05-25 08:43:13 -07:00
aprindle 8f1c2e0647 added env functionality and tests 2016-05-23 14:18:25 -07:00
Lucas Käldström d4c23777ed Merge pull request #90 from dlorenc/race
Fix race condition in cluster setup.
2016-05-23 08:35:57 +03:00
Dan Lorenc 43f5851e6d Fix race condition in cluster setup.
We now explicitly generate certs before starting the cluster.
2016-05-22 14:21:10 -07:00
Dan Lorenc 41cc002233 IP command. 2016-05-19 13:06:34 -07:00
dlorenc b0440fc9c1 Merge pull request #73 from ethernetdan/kubeconfig
Setup kubeconfig on cluster start
2016-05-16 08:44:46 -07:00
Dan Lorenc a7fd82e28a Unhide flag. 2016-05-14 10:35:44 -07:00
dlorenc cac6d07a5d Make the ISO url configurable for testing new ISO builds.
Also delete the old flag, since it's unused.
2016-05-13 15:15:08 -07:00
Dan Gillespie 77c1d0ce61 changed kubeconfig setup to single line if 2016-05-13 13:39:01 -07:00
Dan Gillespie 4b5c89486f fixed kubeconfig test 2016-05-13 13:24:38 -07:00
Dan Gillespie b5b5b331bf working kubeconfig setup 2016-05-13 12:25:03 -07:00
Dan Lorenc 5eaae409aa Working build, scp of localkube to the VM. 2016-05-12 10:12:34 -07:00
Dan Lorenc a3fee8fd40 Remove unused portions of GenerateSelfSignedCert 2016-05-11 16:50:27 -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 Lorenc c9b1939b57 Add a check for matching IPs and cert regeneration.
Add unit tests for cert generation and checking.
2016-05-11 10:25:22 -07:00
Lucas Käldström ba9646ed56 Added error handling for certs as commented 2016-05-10 21:06:06 +03:00
Lucas Käldström 0c05a831b4 Remove dependency on easyrsa; now localkube signs its own certs (including CA, which wasn't present earlier). Now serviceAccounts should work properly 2016-05-10 19:53:11 +03:00
Lucas Käldström a38a9037e2 Use utilnet for getting the host's public IP, which is more reliable. Also, switch to net.IP and net.IPNet flags for validation 2016-05-10 17:49:09 +03:00
Lucas Käldström c12821809a Run gofmt 2016-05-09 23:37:46 +03:00
Lucas Käldström e7cda1ce58 Very large refactor of localkube. Fixed lots of bugs, added flags and commands via cobra, extracted a simple interface for SimpleServer for all Kubernetes components, made DNS working again, created the type LocalkubeServer which holds all necessary data etc. 2016-05-09 23:35:57 +03:00
Dan Lorenc 182601a357 Fix formatting of instructions. 2016-05-08 16:36:40 -07:00
Dan Lorenc 716cc2e5ec Fix tests. 2016-05-06 16:06:28 -07:00
Dan Lorenc d4227ab589 Add a flag for controlling the localkube binary location. 2016-05-06 16:05:42 -07:00
dlorenc 13e5937c02 Add code to setup authentication on the remote cluster.
This still relies on a modified localkube build, which should be
fixed when we merge localkube, before this gets merged in.
2016-05-06 16:05:42 -07:00
dlorenc cfb93eea90 Add a flag to control whether or not localkube runs in a container. 2016-05-05 21:00:14 -07:00
Lucas Käldström 6b2d1ed1cd Restructure the whole project, gofmt and improve the makefile 2016-05-05 16:38:23 +03:00
Dan Gillespie fe340e52e7 added localkube and dependencies 2016-05-04 01:54:00 -07:00