Commit Graph

115 Commits (2d2b484a22c389d257b6745675c29ddd264bb3d3)

Author SHA1 Message Date
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