Steven Powell
d0fc619adf
move RemoveDuplicateStrings to util
2022-08-09 14:27:35 -07:00
Medya Gh
89c7853601
bump go mod libs manually
2021-06-29 15:24:59 -04:00
Ilya Zuyev
275f743e9f
support arch in downloadURL
2021-03-19 13:55:11 -07:00
Anders F Björklund
e36c937a34
Do some simple cleanup of the golint complaints
...
The "magic strings" and enums still needs another approach
Simply echoing everything twice doesn't seem very useful ?
2020-10-04 13:40:33 +02:00
Michael Ryan Dempsey
1859274e8a
refactor conversion functions into util
2020-09-01 21:21:07 -07:00
Thomas Stromberg
436cee2d84
Fix minikube/kubernetes capitalization, make short help consistent
2020-05-07 14:12:10 -07:00
Vincent Link
b5d5aa1d52
Parse --disk-size and --memory sizes with binary suffixes
2020-03-24 17:20:59 +01:00
Thomas Strömberg
a29c5739ab
Merge pull request #6988 from tstromberg/v1.18.0-beta
...
Update NewestKubernetesVersion to 1.18.0-beta.2
2020-03-11 17:00:35 -07:00
Thomas Stromberg
71a22787c3
Update Kubernetes image mapping to match v1.18
2020-03-10 20:48:38 -07:00
Thomas Stromberg
c6333b95aa
Test fixes: Add viper.SetDefault back, and make CalculateSizeInMB return an error instead of exit early
2020-03-10 17:43:56 -07:00
tstromberg
3db7713399
Remove more functions from the util package
2020-02-04 13:20:37 -08:00
Medya Gh
6bd5d9b157
Merge remote-tracking branch 'upstream/master' into NewCmdRunner
2019-10-21 11:17:28 -07:00
Medya Gh
88183240ca
move teePrefix from util to ssh_runner
2019-10-02 15:09:42 -07:00
xichengliudui
7ebef128f3
Remove the redundant code in util.go
...
update pull request
2019-09-27 09:35:59 +08:00
Medya Gh
5811610697
refactor util/kuberentes and ExtraOptions
2019-08-17 19:05:54 -07:00
Medya Gh
fb24d04fef
remove unused code
2019-08-14 00:35:39 -07:00
Medya Gh
f17f3408a8
convert all RetryAfter to retry.Expo
2019-08-13 23:48:30 -07:00
Sharif Elgamal
6552436311
Console output cleanup ( #4825 )
...
* Console output cleanup
* comment fix
* Fixing out.Out stutter
* Fix invalid template
* Change profile_list.go to new console functions
* more merge stuff
2019-07-19 17:00:51 -07:00
Thomas Stromberg
4076eb15d6
Remove unused imports
2019-07-19 16:40:34 -07:00
Thomas Stromberg
a9309c3237
Remove unused ParseSHAFromURL function
2019-07-19 16:36:26 -07:00
Sharif Elgamal
93263bc2bc
Templatizing more calls to console
2019-07-17 18:06:06 -07:00
Pranav Jituri
6ba1725c08
Added Memory Size Checking
2019-06-26 00:22:41 +05:30
Medya Gh
657469310c
Use retryable http to avoid connection flakes
2019-06-13 22:58:14 -07:00
Jan Janik
21b9e95647
Whitelist for kubeadm extra args
2019-05-17 17:11:03 +12:00
Jan Janik
e3cd27264d
Escape systemd special chars in —docker-env
2019-03-29 16:56:51 +13:00
Anders F Björklund
edf46f003f
Document all exported functions outside minikube
2019-03-16 16:57:37 +01:00
Anders F Björklund
46640cef68
Address all lint except undocumented and stutter
...
These two lint warnings still remain, after the cleanup:
"exported ... should have comment or be unexported"
"type name will be used as foo.FooBar by other packages,
and that stutters; consider calling this Bar"
2019-03-02 22:03:55 +01:00
Thomas Stromberg
6c48048538
Merge from hell #2 : refactor start.go because it's terrible
2019-02-08 13:37:29 -08:00
Thomas Strömberg
ae4221b3fb
Merge pull request #3475 from tstromberg/intlogs
...
tee party: Stream cmd output to tests when -v is enabled, and stream SSH output to logs
2018-12-20 17:21:34 -08:00
Thomas Stromberg
fcaf89666f
Decrease log noise by logging retry loops after the initial attempt
2018-12-20 10:27:47 -08:00
Thomas Stromberg
7f7587d96c
Rename TeeWithPrefix to TeePrefix to match Go idioms
2018-12-20 09:54:09 -08:00
Thomas Stromberg
9b707fe234
Add TeeWithPrefix to ssh_runner as well
2018-12-19 17:03:55 -08:00
Thomas Stromberg
72e596507a
Merge branch 'master' into consistent_err_formatting
2018-10-19 14:08:35 -07:00
Thomas Stromberg
bc2dbe3b08
Improve readability of ISO download errors + include URL.
...
This is a separate issue I bumped into while developing the dashboard
PR.
2018-10-03 12:56:54 -07:00
Thomas Stromberg
055c8002b1
Replace %s format directives with %v for errors.
...
Previously we were mixed between the two forms. This commit picks %v,
which is consistent with the Kubernetes code base. They both effectively
do the same thing in this case, though %v works with any object, and %s
only with string objects.
2018-09-28 16:05:27 -07:00
Aaron Prindle
a4606583e4
remove all localkube references from code, change /var/lib/localkube to /var/lib/minikube
2018-07-24 12:36:42 -07:00
Budh Ram Gurung
68285d1779
Refactor get download url for minikube
2018-02-12 13:15:06 +05:30
Matt Rickard
1052dda37a
Move CalculateDiskSizeInMB to utils to use in kvm
2017-08-28 11:27:34 -07:00
dlorenc
11ce2369d2
Move kubecfg utils from minikube to util.
...
We'll need to also write a kubecfg inside the VM going forward as we
remove the InsecureServing path.
2017-07-05 17:25:36 -07:00
Matt Rickard
7f294b2a54
Review feedback
2017-05-16 15:31:15 -07:00
Matt Rickard
652c4c668d
Validate k8s version before starting VM
...
Also, cache in memory localkube versions in multiple calls to the GCS
bucket. These versions will not change during the life of the minikube
process once fetched and are used multiple times.
2017-05-12 15:07:15 -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
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