Commit Graph

135 Commits (62c0d53b7de3e40b6981d2125e00595628547022)

Author SHA1 Message Date
Aaron Prindle 3d91f91ede Merge pull request #1159 from aaron-prindle/downloader-tests
Added unit tests to downloader.go
2017-02-21 10:17:57 -08:00
Matt Rickard e0a5dbc4f8 Add test coverage for GenerateSignedCert 2017-02-21 10:16:59 -08:00
Aaron Prindle 6959aa0ce2 Added unit tests to downloader.go 2017-02-19 21:01:01 -08:00
Aaron Prindle 3433a3028c Added API Name as configuration option 2017-02-18 15:49:49 -08:00
Aaron Prindle c418095c38 Added MINIKUBE_HOME env variable which sets .minikube directory 2017-02-09 11:07:44 -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
Jimmi Dyson 23a1e4ada4
Allow setting string slices in extra config 2017-01-12 12:10:53 +00:00
Dan Lorenc 17b7e8ae72 Add some tests to our cert generation. 2016-12-17 09:27:08 -08:00
Dan Lorenc bd0acdf480 Fix the type referenced for PortRange. 2016-11-23 09:04:38 -08:00
dlorenc f72dadbe03 Add PortRange to the extra-config parser. 2016-11-22 09:56:55 -08:00
Dan Lorenc e8d8cc0ba3 Add support for net.IP to the configurator. 2016-10-28 14:33:36 -07: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
Ajanthan b6b6fa1cb2 Validating localkube version while constructing download url (#663) 2016-10-07 10:45:27 -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
Dan Lorenc 31b2b9e7ae Check localkube SHAs.
Also add notes to the RELEASING.md doc, and a make target to test the release.
2016-09-27 10:59:02 -07:00
Aaron Prindle 3fcfb67f58 Added error reporting functionality and testing. 2016-09-13 11:18: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
Dan Lorenc 6219286cae Cleanup some "go vet" and "go lint" errors.
We should automate these checks...
2016-09-06 20:47:12 -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
Dan Lorenc b85a90702a Return a MultiError from retry. 2016-08-06 12:29:56 -07:00
Aaron Prindle 1a89345b4c Added tests for GetLocalkubeDownloadURL. 2016-08-03 08:58:18 -07: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
Jimmi Dyson f602020f02
Create long lived CA certificate 2016-07-12 15:59:38 +01:00
Dan Lorenc 94aca79782 Wait a few seconds for the cluster to become healthly. 2016-06-01 16:41:07 -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
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
Dan Lorenc 2858ff3b3e Check boilerplate in all files.
Also fix misisng boilerplate.
2016-05-24 21:57:16 -07: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
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 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