Thomas Strömberg
d0a3b6f569
Merge pull request #4091 from linux-on-ibm-z/multi-arch-deploy-support
...
Adding support for s390x
2019-04-30 13:02:28 -07:00
Himanshu Pandey
df0a0ad77c
Unset the current-context on minikube stop
2019-04-30 00:02:05 -07:00
Sharif Elgamal
31a4e9e612
add test for no separators
2019-04-26 13:42:51 -07:00
Sharif Elgamal
3bb9439aa9
Do not use separators when printing numbers
2019-04-26 10:50:03 -07:00
Thomas Stromberg
5d0de0da8e
Standardize ASCII prefixes
2019-04-25 17:02:13 -07:00
Thomas Strömberg
b2f0cd89f9
Merge pull request #4139 from marcosdiez/proper_permissions
...
BugFix: ExecRunner.Copy now parses permissions strings as octal
2019-04-25 13:03:45 -07:00
Anders F Björklund
ca26ae8afb
Initial implementation of kubectl command
2019-04-25 21:07:57 +02:00
Thomas Strömberg
b497fadbd3
Merge pull request #4152 from sharifelgamal/error-messages
...
Add user-friendly error messages for VBOX_THIRD_PARTY & HYPERV_NO_VSWITCH
2019-04-25 12:07:29 -07:00
Thomas Strömberg
144e9bfc60
Merge pull request #4110 from marcosdiez/dont_load_minikube_on_boot_with_none_driver
...
Don't load Minikube on boot
2019-04-25 10:59:26 -07:00
Thomas Strömberg
e9dd14939b
Merge pull request #4116 from marcosdiez/decrease_startup_time_10_seconds
...
Assert that docker has started rather than explicitly restarting it
2019-04-25 10:55:18 -07:00
Sharif Elgamal
79ccf7ae1b
Merge branch 'master' of github.com:kubernetes/minikube into error-messages
2019-04-25 10:48:59 -07:00
Sharif Elgamal
2821100161
missing comma
2019-04-25 10:46:29 -07:00
Thomas Strömberg
1ee6a0995d
Revert "Add user-friendly error messages for known issues."
2019-04-24 16:48:09 -07:00
Thomas Strömberg
996aba49f8
Merge pull request #4142 from sharifelgamal/error-messages
...
Add user-friendly error messages for known issues.
2019-04-24 15:42:13 -07:00
Sharif Elgamal
a5c00dad30
adding another problem and fixing existing one
2019-04-24 15:16:06 -07:00
Zhongcheng Lao
39c0ec1fa0
Merge remote-tracking branch 'origin/master' into check-gcr-access
2019-04-24 23:52:34 +08:00
Sharif Elgamal
7faf80bb80
User-friendly error message for missing Hyper-V external network switch
2019-04-23 15:45:58 -07:00
Thomas Stromberg
56bf985dc5
Download ISO image before Docker images, as it's required first
2019-04-23 13:35:16 -07:00
Sharif Elgamal
5e8160b194
Merge pull request #4115 from sharifelgamal/4007
...
Reroute logs printed directly to stdout
2019-04-23 11:02:31 -07:00
Marcos Diez
10d75b8460
ExecRunner.Copy now parses permissions in octal instead of decimal, as expected
2019-04-23 06:27:34 -03:00
Marcos Diez
4196d854e7
/usr/bin/kubelet and /usr/bin/kubeadm now get the propper permissions.
2019-04-23 06:26:57 -03:00
Sharif Elgamal
ab8d639449
Change expected string for default kubernetes version for config generation tests
2019-04-22 14:21:56 -07:00
Sharif Elgamal
d606ad2a0d
Update default Kubernetes version to 1.14.1
2019-04-22 12:18:39 -07:00
Marcos Diez
39d7dafb78
fix failing test
2019-04-18 22:37:41 -03:00
Marcos Diez
db46f3844f
system will not start kubelet on restart anymore
2019-04-18 22:00:32 -03:00
Marcos Diez
a7977817cb
Revert "Don't load Minikube on boot when using the none driver"
...
This reverts commit 32a289701b
.
2019-04-18 21:59:51 -03:00
Sharif Elgamal
2c2e7c1271
Reroute logs printed to stdout
2019-04-18 17:19:20 -07:00
Thomas Strömberg
2f9541ee5c
Merge pull request #4112 from RA489/fix_hyperv
...
VirtualBox won't boot a 64bits VM when Hyper-V is activated
2019-04-18 17:09:36 -07:00
Marcos Diez
da321436bb
we should sudo systemctl start docker to start docker instead of restart it
2019-04-18 16:39:32 -03:00
Zhongcheng Lao
fa175590c4
Merge remote-tracking branch 'origin/master' into check-gcr-access
2019-04-18 20:52:26 +08:00
RA489
68416d516a
VirtualBox won't boot a 64bits VM when Hyper-V is activated
2019-04-18 12:42:46 +05:30
Marcos Diez
32a289701b
Don't load Minikube on boot when using the none driver
2019-04-17 17:35:43 -03:00
salamani
9b419d66dc
adding multi-arch support
2019-04-17 08:43:37 -04:00
Anders Björklund
3746fb9994
Merge pull request #4086 from afbjorklund/ineffassign
...
Fixed ignored error, noticed by ineffassign
2019-04-13 09:05:08 +02:00
Anders F Björklund
fc35ab5ba9
Fixed ignored error, noticed by ineffassign
...
ineffassign: 99%
pkg/minikube/service/service.go
Line 175: warning: ineffectual assignment to err
2019-04-12 21:08:41 +02:00
Anders F Björklund
8034eb9398
Fix code that was backed during the merge
2019-04-12 20:29:30 +02:00
Anders F Björklund
a73dfc5f9e
Merge branch 'master' into cyclo
2019-04-12 20:03:20 +02:00
Anders Björklund
2f1929fadc
Merge pull request #3899 from afbjorklund/reference
...
Use Reference, allow caching images with both Tag and Digest
2019-04-12 19:56:05 +02:00
Thomas Strömberg
1e26bb0c0d
Merge branch 'master' into download
2019-04-11 12:20:36 -07:00
Thomas Strömberg
e316a4d1df
Merge pull request #4026 from 11janci/jjanik-console-escaping
...
Escape ‘%’ in console.OutStyle arguments
2019-04-11 11:45:54 -07:00
Sharif Elgamal
da0ce6cc90
Avoid surfacing spurious errors
2019-04-10 15:16:23 -07:00
Thomas Strömberg
0f93bdd709
Merge pull request #4011 from arnaudjardine/addPortNameAttribute
...
Add port name to service struct used in minikube service
2019-04-09 09:27:56 -07:00
Thomas Strömberg
fad8355f99
Merge pull request #4058 from moduspwnens/master
...
Fixed status checking with non-default apiserver-port.
2019-04-08 11:48:29 -07:00
Kubernetes Prow Robot
56391663e6
Merge pull request #4048 from uthark/patch-1
...
Fixed url for issues.
2019-04-05 23:48:26 -07:00
Jan Janik
160dc8567e
Escape ‘%’ in console.OutStyle arguments
2019-04-05 17:27:01 +13:00
Benn Linger
d102550644
Fixed status checking with non-default apiserver-port.
2019-04-04 21:43:43 -04:00
Oleg Atamanenko
7e9fd03030
Fixed url for issues.
...
The url for issues is https://github.com/kubernetes/minikube/issues , not https://github.com/kubernetes/minikube/issue .
2019-04-03 18:24:48 -04:00
Jan Janik
e3cd27264d
Escape systemd special chars in —docker-env
2019-03-29 16:56:51 +13:00
Arnaud Jardiné
c57deb5ee5
Add test
2019-03-28 18:34:06 +01:00
Arnaud Jardiné
3086480a2e
Add port name to service struct used in minikube service
2019-03-27 21:19:46 +01:00
Thomas Stromberg
04c6f70667
Fix reversed err comparison and improve logging
2019-03-26 22:44:24 -07:00
Thomas Stromberg
e98f2d7af8
Merge branch 'master' into no-infinite-loops
2019-03-26 17:19:28 -07:00
Thomas Stromberg
0e679a3d72
Fix mount test that broke due to merge conflict
2019-03-26 17:14:52 -07:00
Thomas Stromberg
9c94b2fac6
Merge branch 'master' into no-infinite-loops
2019-03-26 17:11:39 -07:00
Thomas Stromberg
7d36629d5b
Update testdata templates for v1.14
2019-03-26 17:09:30 -07:00
Thomas Stromberg
5e00adc98f
Add missing 's' to comment string
2019-03-26 16:54:47 -07:00
Thomas Strömberg
e57189af7a
Merge pull request #3967 from tstromberg/default-k8s
...
Update default Kubernetes version to v1.14.0
2019-03-26 16:53:09 -07:00
Thomas Strömberg
950421d2d2
Merge pull request #3985 from tstromberg/mount-intr
...
More reliable unmount w/ SIGINT, particularly on kvm2
2019-03-26 15:32:53 -07:00
Thomas Strömberg
ca51bada64
Merge pull request #3965 from tstromberg/v1.14-tmpl
...
Fix all the kubeadm config generation bugs, add tests across versions
2019-03-26 15:32:30 -07:00
Thomas Strömberg
2cd7ab397a
Merge pull request #3982 from tstromberg/more-log-pods
...
Add addon-manager, dashboard, and storage-provisioner to minikube logs
2019-03-26 15:31:57 -07:00
Thomas Strömberg
10e4981b54
Merge pull request #3989 from tstromberg/mount-names
...
mount: Allow names to be passed in for gid/uid
2019-03-26 15:31:45 -07:00
Thomas Stromberg
9edda72985
Block on cache downloads before using the results
2019-03-26 14:59:17 -07:00
Thomas Stromberg
807963ac74
Use r for mockRunner instead of h
2019-03-26 14:45:18 -07:00
Thomas Strömberg
13c3826ead
Merge pull request #3970 from tstromberg/bring_ya_errs_to_the_project_maybe_we_can_solve_it
...
Improve console output for new problems package
2019-03-26 14:44:55 -07:00
Thomas Stromberg
53a246b71c
Fix function name case
2019-03-26 14:42:02 -07:00
Thomas Strömberg
0b21fc317c
Merge pull request #3988 from afbjorklund/typo
...
misspell: Fix minor typo in the problems database
2019-03-26 14:38:12 -07:00
Thomas Stromberg
6f516ff647
Merge branch 'master' into mount-names
2019-03-26 14:30:42 -07:00
Thomas Stromberg
7233a2d50d
Allow mount to work when the uid/gid of docker changes
2019-03-26 14:27:50 -07:00
Anders F Björklund
34a36aeb2a
misspell: Fix minor typo in the problems database
2019-03-26 21:58:55 +01:00
Anders F Björklund
0ebfe462b9
Add --download-only option to start command
...
Make it possible to download files without loading or installing,
and without starting the host... Download: ISO, binaries, images.
2019-03-26 21:43:54 +01:00
Anders F Björklund
54f68e068e
Move the cache functions from kubeadm to machine
2019-03-26 21:43:18 +01:00
Anders F Björklund
adcbcf113b
Refactor: move cache calls into separate functions
...
Need to split out the caching functions, from the loading/copying.
Also need to make the lists accessible from outside the functions.
2019-03-26 21:43:18 +01:00
Anders F Björklund
7530fcba90
Allow both tag and digest, for the cache images
2019-03-26 21:29:44 +01:00
Thomas Strömberg
646949004c
Merge pull request #3976 from tstromberg/in_style
...
Rename MINIKUBE_IN_COLOR to MINIKUBE_IN_STYLE
2019-03-26 13:29:25 -07:00
Anders F Björklund
bec7074fe7
Update go-containerregistry library
2019-03-26 21:29:06 +01:00
Thomas Stromberg
9c3488a26f
Make flag substitution cleaner, update tests
2019-03-26 13:04:58 -07:00
Thomas Stromberg
d4edae2d8c
Fix tests than broke with the merge against master
2019-03-26 12:57:19 -07:00
Thomas Strömberg
b26a93e4ee
Merge branch 'master' into v1.14-tmpl
2019-03-26 12:48:54 -07:00
Thomas Stromberg
c861ab7dc1
Switch mount ssh impl from native to CommandRunner
2019-03-26 12:14:06 -07:00
Thomas Stromberg
c91da2a65f
Upgrade addon-manager to v9.0 for compatibility with Kubernetes v1.14
2019-03-26 11:33:42 -07:00
Thomas Stromberg
48e4808b72
Remove special unrelated docker check
2019-03-26 10:54:39 -07:00
Thomas Stromberg
ec135dc4da
Add addon-manager, dashboard, and storage-provisioner to minikube logs
2019-03-26 10:43:03 -07:00
Thomas Stromberg
e878c1a0a0
Rename MINIKUBE_IN_COLOR to MINIKUBE_IN_STYLE
2019-03-26 06:56:10 -07:00
Zhongcheng Lao
a143711b6a
Merge remote-tracking branch 'origin/master' into image-name
2019-03-26 21:15:24 +08:00
Anders F Björklund
4667c28164
Merge branch 'master' into cyclo
2019-03-26 07:16:28 +01:00
Thomas Strömberg
f74751c3b7
Merge pull request #3934 from afbjorklund/more-lint
...
Clean up lint and other small report card issues
2019-03-25 21:42:21 -07:00
Thomas Stromberg
cbda4fc856
Merge branch 'master' into v1.14-tmpl
2019-03-25 20:54:26 -07:00
Thomas Stromberg
17ee8f568b
Minor UI tweaks to problem package
2019-03-25 20:47:35 -07:00
Thomas Strömberg
aec8c78f5d
Merge pull request #3596 from flyingcircle/master
...
Issue #3253 , improve kubernetes-version error string
2019-03-25 18:59:50 -07:00
Thomas Strömberg
89ab0be3b0
Merge pull request #3958 from andahme/no-wait-on-addon-manager
...
Update kubeadm bootstrap logic so it does not wait for addon-manager
2019-03-25 18:58:59 -07:00
Thomas Strömberg
9deb531889
Merge pull request #3947 from afbjorklund/hidden
...
Add explicit kvm2 flag for hidden KVM signature
2019-03-25 18:58:05 -07:00
Thomas Strömberg
4ccc7a2b17
Merge pull request #3961 from afbjorklund/tarball-tmp
...
Use a temp file, when writing the cached image
2019-03-25 18:57:54 -07:00
Thomas Stromberg
294b26b5f1
Update default Kubernetes version to v1.14.0
2019-03-25 18:56:32 -07:00
Thomas Strömberg
a1317476c2
Merge pull request #3931 from tstromberg/bring_ya_errs_to_the_project_maybe_we_can_solve_it
...
Add solution catalog to help users who run into known problems
2019-03-25 18:33:07 -07:00
Thomas Stromberg
9f753c3027
Fix all the kubeadm config generation bugs I could find, add tests across versions
2019-03-25 18:25:01 -07:00
Anders F Björklund
3194ec7026
Use a temp file, when writing the cached image
2019-03-25 21:53:07 +01:00
Thomas Stromberg
e843038597
More refactoring, add INVALID_PROXY_HOSTNAME
2019-03-25 13:28:31 -07:00
Thomas Stromberg
ea57b6149f
Add boilerplate
2019-03-25 13:05:47 -07:00
Thomas Stromberg
82e4db98c2
Rename Solution to Advice, add new known problems
2019-03-25 13:04:16 -07:00
Thomas Strömberg
cc5d4e9724
Merge branch 'master' into rkt-remove
2019-03-25 11:31:09 -07:00
Thomas Strömberg
44a4e290be
Merge pull request #3948 from afbjorklund/status
...
Fix the spelling of API in the template as well
2019-03-25 09:59:13 -07:00
Andy Daniels
3cd76a7984
Update kubeadm bootstrap logic so it does not wait for addon-manager at start
2019-03-25 10:00:03 -05:00
Anders F Björklund
bfc7d7931b
Clean up lint and other small report card issues
...
Add helper for "go vet", and don't use the test files variable.
Also return an exit code from golint (why is this not default?)
2019-03-24 21:30:58 +01:00
Anders F Björklund
348c085a22
Fix the spelling of API in the template as well
...
The matching code was changed in commit 46640ce
2019-03-24 16:09:41 +01:00
Anders F Björklund
6491e35c20
Add explicit kvm2 flag for hidden KVM signature
2019-03-24 09:47:38 +01:00
Anders F Björklund
2590fc7b9a
Remove the rkt container runtime
...
It has not been updated since kubernetes 1.9 or so
2019-03-24 08:50:58 +01:00
Anders F Björklund
ecc484d523
Make gofmt silent again, complaining on assets
2019-03-23 12:24:41 +01:00
Zhongcheng Lao
8c28ca4202
Select an accessible image repository for some users
...
Now it's possible to fallback to a mirror site for those users
who cannot access the main k8s.gcr.io repository. You may also
set the --image-mirror-country to forcibly use a known local
mirror in the specific location.
Signed-off-by: Zhongcheng Lao <Zhongcheng.Lao@microsoft.com>
2019-03-23 16:58:55 +08:00
Zhongcheng Lao
aeb1605aff
Remove arch suffixes in image names
...
Removing arch suffixes in image names to make sure image caching
work with kubeadm since 1.12.0.
Signed-off-by: Zhongcheng Lao <Zhongcheng.Lao@microsoft.com>
2019-03-23 16:32:17 +08:00
Thomas Strömberg
702d471308
Merge pull request #3714 from laozc/custom-image-repository
...
Add --image-repository flag so that users can select an alternative repository mirror
2019-03-22 09:24:18 -07:00
Thomas Stromberg
2502d2060c
Run gofmt -w -s
2019-03-22 09:19:58 -07:00
flyingcircle
f0d21d7c28
# This is a combination of 2 commits.
...
# This is the 1st commit message:
Issue #3253 , improve kubernetes-version error string
# This is the commit message #2 :
Issue #3253 , improve kubernetes-version error string
2019-03-22 08:25:35 -04:00
Zhongcheng Lao
daec030cdf
Render asset template when enabling/disabling addon
2019-03-22 15:28:20 +08:00
Thomas Stromberg
7e57cf6ec6
Add some ssh issues
2019-03-21 22:24:37 -07:00
Thomas Strömberg
cbac94a53d
Merge pull request #3879 from marcosdiez/extra_config_for_kubeadm
...
--extra-config now work for kubeadm as well
2019-03-21 22:03:06 -07:00
Thomas Stromberg
ce71b0dbd6
Merge branch 'master' into bring_ya_errs_to_the_project_maybe_we_can_solve_it
2019-03-21 22:01:06 -07:00
Thomas Stromberg
1ff174b796
Run: gofmt -s -w
2019-03-21 22:00:14 -07:00
Thomas Stromberg
37e259f7ea
Implement the new problem package
2019-03-21 21:44:51 -07:00
Zhongcheng Lao
7ae074106c
Merge remote-tracking branch 'origin/master' into custom-image-repository
2019-03-22 10:42:09 +08:00
Thomas Strömberg
c4ae58f4d3
Merge pull request #3896 from brb/do-not-wait-for-dns-pod-with-cni
...
Do not wait for k8s-app pods when starting with CNI
2019-03-21 11:49:45 -07:00
Thomas Strömberg
06d9210937
Merge pull request #3927 from tstromberg/noswap-2.0
...
Remove the swap partition from minikube.iso
2019-03-21 11:48:25 -07:00
Thomas Strömberg
88c45bf5b2
Merge branch 'master' into lint
2019-03-21 11:34:45 -07:00
Thomas Strömberg
f9a136a2f2
Merge pull request #3841 from afbjorklund/reportcard
...
Address the low-hanging fruit on report card
2019-03-21 11:33:28 -07:00
Thomas Strömberg
460ef571e2
Merge branch 'master' into lint
2019-03-21 11:32:47 -07:00
Thomas Stromberg
44d490a042
Merge branch 'mount-intr' of github.com:tstromberg/minikube into mount-intr
2019-03-21 11:24:23 -07:00
Thomas Stromberg
cbddc376d2
SIGINT should be exit code 2
2019-03-21 11:23:55 -07:00
Marcos Diez
4e28becd7e
everybody likes passing tests
2019-03-21 06:33:46 -03:00
Marcos Diez
7de36ed9a1
allow --extra-config work on kubeadm as well. example: --extra-config kubeadm.ignore-preflight-errors=SystemVerification
...
missing variable
2019-03-21 06:33:46 -03:00
Zhongcheng Lao
daeb238766
Merge remote-tracking branch 'origin/master' into custom-image-repository
2019-03-21 13:23:11 +08:00
Thomas Stromberg
bf4f6ee91c
Clarify why disabling the Swap preflight is good for certain users
2019-03-20 20:50:20 -07:00
Thomas Stromberg
3d0f722a6c
Remove -q, as it is not available in this version of findmnt
2019-03-20 20:02:35 -07:00
Thomas Stromberg
79aafd525f
Merge branch 'master' into mount-intr
2019-03-20 19:56:43 -07:00
Thomas Strömberg
6751e394f8
Merge pull request #3833 from afbjorklund/cruntime-version
...
Cruntime version
2019-03-20 19:55:45 -07:00
Thomas Strömberg
0d6c92153f
Merge branch 'master' into reportcard
2019-03-20 19:16:02 -07:00
Thomas Strömberg
84b92d1b8f
Merge pull request #3885 from afbjorklund/cache-1.14
...
Update list of cached images for kubernetes 1.14
2019-03-20 19:14:52 -07:00
Thomas Strömberg
fd54141f04
Merge pull request #3810 from tstromberg/k8s114
...
Update minikube to be compatible with Kubernetes v1.14.0-beta.1
2019-03-20 19:10:59 -07:00
Thomas Stromberg
605088ff72
Keep Initializers as the first element, fix v1.14 test which still included Initializers
2019-03-20 17:23:07 -07:00
Thomas Strömberg
7f6eecad37
Merge pull request #3872 from tstromberg/more-logs
...
logs: Add kube-proxy, dmesg, uptime, uname + newlines between log sources
2019-03-20 16:47:34 -07:00
Thomas Stromberg
88091b2323
Fix DefaultLegacyAdmissionControllers comment
2019-03-20 16:45:39 -07:00
Thomas Stromberg
66b18c878c
Merge branch 'master' into k8s114
2019-03-20 16:43:32 -07:00
Thomas Strömberg
c1a0264161
Merge pull request #3832 from tstromberg/k8s-v1.10.0
...
Skip "pull" command if using Kubernetes 1.10, which does not support it.
2019-03-20 16:42:39 -07:00
Thomas Stromberg
7eeb0a7925
Revert "Use --kubeconfig for v1.10.x, instead of skipping the pull"
...
This reverts commit 0c1b51ced3
.
2019-03-20 16:40:12 -07:00
Thomas Strömberg
4756b15bc1
Merge branch 'master' into lint
2019-03-20 10:16:09 -07:00
Thomas Strömberg
177ce6597d
Merge pull request #3830 from tstromberg/find-probelms
...
Add problem detection for #3818 - no providers available
2019-03-20 10:14:04 -07:00
Thomas Stromberg
1eca3e096b
Merge branch 'master' into k8s-v1.10.0
2019-03-20 10:12:49 -07:00
Thomas Stromberg
0c1b51ced3
Use --kubeconfig for v1.10.x, instead of skipping the pull
2019-03-20 10:07:25 -07:00
Marco Vito Moscaritolo
443accf1e0
Update link to drive docs in xhyve driver
...
Signed-off-by: Marco Vito Moscaritolo <mavimo@gmail.com>
2019-03-19 08:53:11 +01:00
Martynas Pumputis
2d8e577b33
Do not wait for k8s-app pods when starting with CNI
...
Previously, minikube was waiting for some pods labeled with
"k8s-app" (e.g. "kube-dns") to be ready before indicating that
"minikube start" was successful. However, in the case of
"network-plugin=cni", network of such pods is managed by a CNI
plugin which is usually started after "minikube start" has returned
making the waiting for the pods to fail with:
Error starting cluster: wait: waiting for k8s-app=kube-dns: timed out
waiting for the condition
This commit omits waiting for "k8s-app" pods if minikube is started
with "network-plugin=cni".
Reported-by: Michal Rostecki <mrostecki@opensuse.org>
Signed-off-by: Martynas Pumputis <m@lambda.lt>
2019-03-18 11:13:55 +01:00
Anders F Björklund
03bdce47ee
Decrease cyclomatic complexity for test
...
Mostly by using the "extract method" pattern.
Here was the report (from gocyclo), before:
17 tunnel TestTunnelManagerCleanup pkg/minikube/tunnel/tunnel_manager_test.go:174:1
44 tunnel TestTunnel pkg/minikube/tunnel/tunnel_test.go:35:1
34 kubeconfig configEquals pkg/util/kubeconfig/config_test.go:420:1
25 integration testMounting test/integration/mount_test.go:36:1
18 integration testTunnel test/integration/tunnel_test.go:37:1
2019-03-16 23:04:24 +01:00
Anders F Björklund
00c9846a19
Decrease cyclomatic complexity for code
...
Mostly by using the "extract method" pattern.
Here was the report (from gocyclo), before:
16 kubeadm (*KubeadmBootstrapper).UpdateCluster pkg/minikube/bootstrapper/kubeadm/kubeadm.go:374:1
16 cluster StartHost pkg/minikube/cluster/cluster.go:64:1
16 tunnel setupRoute pkg/minikube/tunnel/tunnel.go:135:1
16 provision configureAuth pkg/provision/buildroot.go:218:1
21 util setElement pkg/util/config.go:50:1
2019-03-16 22:18:14 +01:00
Anders F Björklund
5497b966be
Rename stutter and move classes between packages
...
Removing the kubeconfig module is probably not a big deal,
since it was already hiding under the "util" directory...
But the layout of the Bootstrapper is slightly irritating,
as long as it is contained in a different "kubeadm" module.
2019-03-16 16:57:56 +01:00
Anders F Björklund
dba916a016
Document all exported functions inside minikube
...
Make config get/set more symmetrical, as well.
2019-03-16 16:57:43 +01:00
Anders F Björklund
edf46f003f
Document all exported functions outside minikube
2019-03-16 16:57:37 +01:00
Zhongcheng Lao
40caf8317c
Merge remote-tracking branch 'upstream/master' into custom-image-repository
2019-03-15 18:01:48 +08:00
Thomas Strömberg
016e3f3178
Merge pull request #3767 from tstromberg/cache_images_int_test2
...
caching: Fix containerd, improve console messages, add integration tests
2019-03-14 08:19:25 -07:00
Thomas Stromberg
0422b9c567
Add kube-proxy and dmesg logs + newlines between log sources
2019-03-13 14:53:14 -07:00
Thomas Stromberg
1ec970a7fd
Remove random unicode character
2019-03-11 16:18:42 -07:00
Thomas Stromberg
c713b186e8
unmount on sigint/sigterm, --options and --mode, improve mount UI
2019-03-11 16:18:06 -07:00
Thomas Strömberg
5f290a1a6e
Merge pull request #3819 from presslabs/fix-tunnel-error
...
Fix tunnel error logging
2019-03-11 09:37:26 -07:00
Anders F Björklund
90527daf72
Update list of cached images for kubernetes 1.14
2019-03-10 15:57:10 +01:00
Anders F Björklund
6d96a67456
Run go vet on all code, not just pkg and cmd
2019-03-10 14:33:24 +01:00
Anders F Björklund
0d8e591a4a
Fix some misc typos, as reported by misspell
...
minikube/pkg/gvisor/enable.go
Line 120: warning: "downlaods" is a misspelling of "downloads" (misspell)
minikube/pkg/minikube/console/style.go
Line 96: warning: "embarassed" is a misspelling of "embarrassed" (misspell)
2019-03-10 13:43:04 +01:00
Anders F Björklund
dabe7665f2
Return error from Close, as reported by go vet
...
minikube/pkg/minikube/tunnel/registry.go
Line 124: error: result of fmt.Errorf call not used (vet)
Line 161: error: result of fmt.Errorf call not used (vet)
2019-03-10 13:40:39 +01:00
Anders F Björklund
7d1fdab6bc
Add unit test for container runtime version
...
This only tests the happy path of the current iso versions.
2019-03-10 10:37:55 +01:00
Anders F Björklund
112a66c21a
Add some error reporting to the version method
2019-03-10 10:18:26 +01:00
Anders F Björklund
0c67b60604
Add Version() function to the Manager interface
...
Helps with troubleshooting container runtimes
2019-03-10 10:09:13 +01:00
Thomas Stromberg
f968cb7709
Don't try to run the images pull command on old versions of kubeadm
2019-03-08 10:52:13 -08:00
Thomas Stromberg
6a36191bb4
Merge branch 'master' into find-probelms
2019-03-08 10:20:39 -08:00
Thomas Stromberg
4a7e68c6b7
Add detection for #3818 - no providers available
2019-03-08 09:51:08 -08:00
Calin Don
229137c06b
Fix tunnel error logging
2019-03-07 11:38:26 +02:00
Thomas Stromberg
56a51ffe0d
Merge branch 'master' into cache_images_int_test2
2019-03-06 15:21:11 -08:00
Thomas Strömberg
a4841d9d72
Merge pull request #3796 from kron4eg/patch-1
...
Change DefaultMountVersion to 9p2000.L
2019-03-06 14:13:50 -08:00
Thomas Stromberg
327fdd8d4b
Update kubeadm config generation to be compatible with v1.14.0-beta.1
2019-03-06 13:32:33 -08:00
Thomas Stromberg
ae27bb1e85
Update default to v1.13.4
2019-03-06 11:37:29 -08:00
Artiom Diomin
1607e9f8ea
Change DefaultMountVersion to 9p2000.L
...
Fixes #2290
2019-03-05 14:45:36 +02:00
Anders F Björklund
5b709b2b0a
Failure to read documentation isn't really a crash
2019-03-04 20:23:23 +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 Strömberg
794bc6cedd
Merge pull request #3780 from afbjorklund/logs
...
Fix minikube logs for other container runtimes
2019-03-01 15:49:23 -08:00
Anders F Björklund
df5bbc3c8a
Fix minikube logs for other container runtimes
...
It is only Docker that adds the "k8s_" prefix, since CRI
only handles containers that are used by Kubernetes anyway.
Also need to use "sudo" when running all crictl commands,
including logs. And only list containers that are running.
2019-03-01 20:56:45 +01:00
Thomas Stromberg
b9675da28b
Add comment about optimization
2019-03-01 11:03:06 -08:00
Thomas Stromberg
a11e1c3c27
retry updateKubeProxyConfigMap
2019-03-01 10:54:18 -08:00
Thomas Stromberg
eae5b34100
Only restart kube-proxy if necessary, make certain steps retialble
2019-03-01 10:53:55 -08:00
Thomas Stromberg
a2865f183a
Back to the original 10 minute timeout :(
2019-03-01 10:50:39 -08:00
Thomas Stromberg
2f1f52edba
Add reconfiguring style
2019-02-28 16:40:55 -08:00
Thomas Stromberg
c40602b327
ReasonableStartTime = 8, for folks with CrashLooping DNS on none
2019-02-28 16:40:46 -08:00
Thomas Stromberg
a4be5ee438
Have StartCluster/RestartCluster block until system pods are healthy
2019-02-28 16:27:35 -08:00
Thomas Stromberg
3b2a81d409
Increase ReasonableStartTime from 5 to 9 minutes
2019-02-28 16:26:42 -08:00
Thomas Stromberg
4c48753ba0
Docker doesn't need to use sudo
2019-02-28 12:05:30 -08:00
Thomas Stromberg
e09133892f
Fix docker/containerd caching, improve msgs, add tests
2019-02-27 13:58:33 -08:00
Anders F Björklund
167d1584a6
Add flag for disabling the VirtualBox VTX check
...
Currently this is broken upstream, provide workaround...
Already available in docker-machine, so port to minikube.
2019-02-22 18:29:29 +01:00
Zhongcheng Lao
e753a90be0
Add test cases for NewKubeletConfig
2019-02-18 11:03:04 +08:00
Zhongcheng Lao
39fcf1fe20
Add test cases for custom image repository feature
2019-02-18 01:00:22 +08:00
Zhongcheng Lao
7a59d376cf
Turn addon resource with images into template
...
When the user overrides image repository the images will be pulled
from the overrided one instead of the official repositories.
2019-02-18 01:00:18 +08:00
Zhongcheng Lao
7cbe253ef6
Allow specifying image repository for docker images
...
Some users (especially for those in mainland China) may have issue
accessing the default image repository. This patchset allows users
to override the default image repository gcr.io to a different
repository by specifying --image-repository option in the command
line as a simple workaround. Images will be pulled from the
specified image repository instead of the default ones.
Example (using mirror by Aliyun):
minikube start ...
--image-repository
registry.cn-hangzhou.aliyuncs.com/google_containers
2019-02-18 01:00:12 +08:00
Thomas Stromberg
5f77fc6c1a
Only call trySSHPowerOff if we are using hyperv
2019-02-16 07:47:00 -08:00
Thomas Strömberg
4142c6d967
Merge pull request #3680 from tstromberg/better-none
...
none UX: Reword warnings and other strings for accuracy
2019-02-15 10:38:07 -08:00
Anders F Björklund
166b423e6e
Implement CRI method ContainerLogCmd for rkt
2019-02-15 19:24:44 +01:00
Anders Björklund
1473c36fb9
Merge pull request #3678 from afbjorklund/rkt
...
Add implementation of the deprecated rkt runtime
2019-02-15 19:20:30 +01:00
Anders Björklund
4ae8fed6cd
Merge pull request #3675 from afbjorklund/images
...
Upgrade the list of images for 1.12 and 1.13
2019-02-15 19:19:02 +01:00
Thomas Stromberg
54b22649e9
Forgot to remove a warning
2019-02-15 10:07:09 -08:00
Thomas Stromberg
bb752098df
Drop all empty strings from containers list, add fake prefix in log messages
2019-02-15 09:46:15 -08:00
Thomas Stromberg
b80498fcb4
Merge from HEAD
2019-02-15 09:24:35 -08:00
Thomas Stromberg
f345fe4b08
Less warnings, consistent info messages
2019-02-15 09:11:46 -08:00
Thomas Stromberg
cd156b3f98
Merge branch 'master' into container-killing2
2019-02-15 09:10:19 -08:00
Thomas Strömberg
8e5fd5b275
Merge pull request #3686 from tstromberg/7-bit-console
...
Implement 7-bit ASCII prefixes for when MINIKUBE_IN_COLOR=false
2019-02-15 09:08:17 -08:00
Thomas Stromberg
18adab13fa
Remove duplicate keys from merge
2019-02-15 07:21:40 -08:00
Thomas Stromberg
4a1feb6531
Reduce text clutter
2019-02-15 07:16:41 -08:00
Thomas Stromberg
1d0733e1e4
Merge
2019-02-15 07:06:22 -08:00
Thomas Stromberg
5013af7917
Change LowPrefix for internet. It looked strange with the indented options
2019-02-15 07:03:31 -08:00
Thomas Stromberg
3838442440
Implement 7-bit ASCII prefixes
2019-02-15 06:52:33 -08:00
Thomas Strömberg
71971667a0
Merge pull request #3501 from laozc/master
...
addons: Fixes multiple files behavior in files rootfs
2019-02-15 05:34:49 -08:00
Thomas Strömberg
ceb324b4ad
Merge pull request #3660 from tstromberg/hyperkit-debugging
...
Make hyperkit driver more robust: detect crashing, misinstallation, other process names
2019-02-15 05:23:09 -08:00
Thomas Stromberg
07fc64fbe1
Warnf -> Debugf so that it doesn't interfere with output
2019-02-14 20:12:34 -08:00
Thomas Stromberg
2588a98435
Back to Run -- I was mistaken
2019-02-14 17:17:54 -08:00
Thomas Stromberg
71eafef5ce
Overhaul how we handle kubectl, as it isn't actually required except for the dashboard
2019-02-14 17:10:03 -08:00
Thomas Stromberg
c3db098d4a
ListContainers should return empty list when no containers match
2019-02-14 16:10:33 -08:00
Thomas Stromberg
7dd7e5417d
glog, not golog
2019-02-14 14:43:22 -08:00
Thomas Stromberg
531e6b0f72
Use h.SetLogger
2019-02-14 14:40:32 -08:00
Thomas Stromberg
0c8a452e97
lowercase error messages
2019-02-14 14:40:16 -08:00
Thomas Stromberg
ba9492c314
Merge branch 'master' into hyperkit-debugging
2019-02-14 14:03:52 -08:00
Anders F Björklund
dc618b70f9
Add implementation of the deprecated rkt runtime
...
This is currently good for one thing: turning it off!
Using rktlet with kubernetes hasn't worked in a while.
2019-02-14 23:02:08 +01:00
Thomas Stromberg
45303bac07
Code review comments
2019-02-14 13:59:08 -08:00
Balint Pato
5029f8a66e
Update pkg/minikube/exit/exit.go
...
Co-Authored-By: tstromberg <tstromberg@google.com>
2019-02-14 13:17:32 -08:00
Balint Pato
4c2ba19455
Update pkg/minikube/logs/logs_test.go
...
Co-Authored-By: tstromberg <tstromberg@google.com>
2019-02-14 13:16:57 -08:00
Thomas Stromberg
c2194e191d
Fix merge conflicts
2019-02-14 11:58:07 -08:00
Anders F Björklund
a02802d056
Upgrade the list of images for 1.12 and 1.13
...
Getting tired of downloading newer etcd again
2019-02-14 20:48:12 +01:00
Thomas Stromberg
4cfe77294d
Fix style merge conflict
2019-02-14 11:25:42 -08:00
Thomas Strömberg
3714bbd787
Merge pull request #3659 from tstromberg/console
...
Clearer output when re-using VM's so that users know what they are waiting on
2019-02-14 11:03:50 -08:00
Thomas Strömberg
4608a137bd
Merge pull request #3671 from tstromberg/kubeadm-eviction
...
Disable kubelet disk eviction by default
2019-02-14 11:02:58 -08:00
Thomas Strömberg
10d8487417
Merge pull request #3665 from tstromberg/sudo-poweroff
...
Run poweroff before delete, only call uninstall if driver is None
2019-02-14 10:30:31 -08:00
Thomas Stromberg
5c1a72f428
Switch Infof statements to Debugf/Warningf, as they go to stderr
2019-02-14 10:14:41 -08:00
Thomas Stromberg
247e957e8f
Revert accidental indentation
2019-02-13 21:47:54 -08:00
Thomas Stromberg
b34f4a1ed9
Merge branch 'master' into logs-apiserver3
2019-02-13 21:39:31 -08:00
Thomas Stromberg
496bbe00bb
Pluralize problem
2019-02-13 21:35:42 -08:00
Thomas Stromberg
08da5fe3b5
Add pod logs to 'logs' command, show detected problems during minikube start
2019-02-13 21:29:20 -08:00
Thomas Stromberg
6a18ad9bc5
Reduce wait times, and wait more consistently
2019-02-13 21:15:46 -08:00
Thomas Strömberg
c29ef66727
Merge pull request #3650 from bassam/pr-fix-parallels
...
Fix parallels support after #953
2019-02-13 20:56:49 -08:00
Thomas Strömberg
b2a096c650
Merge pull request #3667 from afbjorklund/kubeadm-reset
...
Seems kubeadm reset doesn't have a --config flag
2019-02-13 20:43:44 -08:00
Thomas Stromberg
9fe9cdbc29
Add boilerplate
2019-02-13 15:39:17 -08:00
Thomas Stromberg
de699183c8
Cleanup unsupported driver checks
2019-02-13 15:39:10 -08:00
Thomas Stromberg
caafc66a61
Disable kubelet disk eviction by default
2019-02-13 15:08:06 -08:00
Anders F Björklund
02ff9f5e71
Check that a style exists for all runtimes
...
Including CRI-O, which recently got a "new" name...
It is loaded at runtime, so could break otherwise.
2019-02-13 23:50:39 +01:00
Thomas Stromberg
d974cd6d83
Use stderr instead of stdout
2019-02-13 14:25:25 -08:00
Thomas Stromberg
473f5983cb
Allow driver name to be com.docker.hyper, as seen in integration testing
2019-02-13 13:36:45 -08:00
Thomas Stromberg
4b875ddd7f
Run goimports
2019-02-13 13:35:28 -08:00
Thomas Stromberg
2045dc9ba4
Lint cleanup
2019-02-13 13:35:08 -08:00
Thomas Stromberg
69f72ea991
Add exit.go, remove call to exit.Fail
2019-02-13 12:47:02 -08:00
Thomas Stromberg
5f65dc80fa
Remove error uploads, consolidate fatal error handling into exit package
2019-02-13 12:37:44 -08:00
Anders F Björklund
6c4eb71436
Seems kubeadm reset doesn't have a --config flag
...
However, it does have an annoying interactive prompt...
2019-02-13 20:31:11 +01:00
Thomas Stromberg
eb00fdb3d7
Remove VM/host
2019-02-13 09:42:49 -08:00
Thomas Stromberg
1c09ba2a48
Make the output clearer and less cluttered
2019-02-13 09:41:53 -08:00
Thomas Stromberg
277100d371
add an extra space for consistency
2019-02-13 09:23:56 -08:00
Thomas Stromberg
e74db39783
Issue a poweroff request before deleting a VM. Avoids HyperV hang
2019-02-13 09:21:58 -08:00
Thomas Strömberg
414b8ab9f8
Merge pull request #3657 from afbjorklund/cruntime-crio
...
Complete the cruntime implementation for CRI runtimes
2019-02-12 14:14:41 -08:00
Thomas Stromberg
888978c3a9
Improve VM re-use reliability: detect crashing and/or badly installed hyperkit
2019-02-12 13:58:18 -08:00
Thomas Stromberg
f346e5628b
Add logging around the DHCP discovery process
2019-02-12 13:57:02 -08:00
Thomas Stromberg
3454c83dcf
Clearer output when re-using VM's so that users know what they are waiting on
2019-02-12 13:54:30 -08:00
Anders F Björklund
abb5fc0af0
Show name as CRI-O, even if class is CRIO
...
Should use the proper name for display, even if we use a name more
suitable to naming classes and methods for the implementation...
Also use the --runtime=cri-o when testing, and update the github
repository now that cri-o has graduated from incubator to a sig.
See https://cri-o.io/
2019-02-12 21:03:51 +01:00
Anders F Björklund
de6782cd96
Implement list/kill/stop for CRI runtimes
2019-02-12 20:24:37 +01:00
Anders F Björklund
4b22a10ca3
Fix the CRI runtimes LoadImage implementation
...
ctr (containerd CLI) does not work for crio, so have to use podman
to load images. Unfortunately there is no crictl load, only pull.
2019-02-12 20:24:18 +01:00
Anders F Björklund
0a91040434
Add DeleteCluster to bootstrapper
...
This matches StartCluster, and is used to revert
the changes done to reset the VM machine state.
Even if it fails, continue to deleting the VM...
Make sure to handle the case of missing config.
2019-02-12 19:49:19 +01:00
Thomas Strömberg
ec5107ea96
Merge pull request #3638 from tstromberg/console
...
Initial implementation of 'console' package for stylized & localized console output 😂
2019-02-12 07:15:23 -08:00
Thomas Stromberg
0a5b64eeaf
Improve text strings for existing VM's and setting cluster permissions
2019-02-11 19:28:23 -08:00
Thomas Stromberg
452054bf25
Implement PR comments
2019-02-11 15:01:34 -08:00
Thomas Strömberg
50d69c034e
Merge pull request #3643 from afbjorklund/mutex
...
Avoid double unlock of image load mutex
2019-02-11 13:57:38 -08:00
Thomas Stromberg
deb31b4230
Pull upstream, sort out merge conflicts, use ParseBool
2019-02-11 13:56:45 -08:00
Bassam Tabbara
104f7dee9e
machine: fix parallels support
...
add vendor deps for parallels, fix compile issue, and enable parallels
as a default driver.
Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2019-02-11 08:47:29 -08:00
Zhongcheng Lao
a6332e3c6e
Add unit testcase for addon file patterns
...
afero introduced for mocking a filesystem.
2019-02-10 21:39:22 +08:00
Zhongcheng Lao
0c1d3f2e33
Fixes multiple files behavior in files rootfs
...
Some files may be left uncopied to the VM when there are multiple
files in the .minikube/files directory as the code misinterprets
the last parent dir as parent dirs for all files, which results
some files with the same name were not copied.
This patch fixes the behavior.
2019-02-10 19:51:02 +08:00
Anders F Björklund
73dd006813
Replace string comparison with class method
2019-02-09 20:59:26 +01:00
Anders F Björklund
d3d9c5ed94
Avoid double unlock of image load mutex
...
Causes a runtime crash, with --cache-images:
"fatal error: sync: unlock of unlocked mutex"
2019-02-09 18:08:46 +01:00
Thomas Strömberg
6e1b9d030c
Merge pull request #953 from denji/parallels
...
machine: add parallels support
2019-02-08 15:39:43 -08:00
Thomas Strömberg
91be19c47a
Merge pull request #3258 from darkedges/master
...
When copying assets from .minikube/files on windows, directories get squashed during transfer. ie /etc/ssl/certs/test.pem becomes ~minikube/etcsslcerts/test.pem. This pull request ensures any window style directories are converted into unix style.
2019-02-08 15:31:00 -08:00
Thomas Stromberg
d57d8d1a1e
Fix broken tests: hyperkit driver format mismatch, console spacing mismatch
2019-02-08 13:58:02 -08:00
Thomas Stromberg
6c48048538
Merge from hell #2 : refactor start.go because it's terrible
2019-02-08 13:37:29 -08:00
Thomas Stromberg
ee8ddd60a8
Merge
2019-02-07 18:21:29 -08:00
Thomas Stromberg
92763ca40f
Remove deprecated error message check. Never check text on error messages :(
2019-02-07 16:14:27 -08:00
Thomas Stromberg
9f09f02e39
Address PR comments, make sure PullImages code path is exercised
2019-02-07 15:39:31 -08:00
Thomas Stromberg
f2d6f45538
More console work
2019-02-07 14:56:29 -08:00
Thomas Stromberg
c01bbf4075
Add missing Copyright boilerplate
2019-02-07 09:48:20 -08:00
Thomas Stromberg
2033f8dcec
Further tuning, especially of env override
2019-02-07 09:23:39 -08:00
Thomas Stromberg
5cb89b11ee
Fix bad cut and paste: crio -> containerd
2019-02-07 08:36:40 -08:00
Thomas Stromberg
d1b0d0470a
Initial console implementation
2019-02-06 22:00:30 -08:00
Thomas Stromberg
8193985000
Add cruntime package
2019-02-05 14:51:03 -08:00
Thomas Stromberg
966b245dc6
Refactor and centralize container runtime code into a cruntime package
2019-02-05 14:42:12 -08:00
Himanshu Pandey
0dda33a7df
Updated the default kubernetes version
2019-02-04 16:30:08 -08:00
Kubernetes Prow Robot
a7485e738f
Merge pull request #3601 from jayunit100/patch-4
...
Add breadcrumb logs to demonstrate when minikube's volume provisioner is…
2019-02-02 10:27:22 -08:00
Kubernetes Prow Robot
fd38580772
Merge pull request #3593 from balopat/fix_hyperkit_pid_issues
...
fix stale hyperkit.pid making minikube start hang
2019-01-30 07:40:16 -08:00
Thomas Strömberg
8d304ee172
Merge pull request #2757 from afbjorklund/podman
...
CRI: try to use "sudo podman load" instead of "docker load"
2019-01-30 06:40:56 -08:00
Thomas Strömberg
e1eafcd302
Update pkg/storage/storage_provisioner.go
...
Co-Authored-By: jayunit100 <jayunit100.github@gmail.com>
2019-01-29 16:06:47 -05:00
jay vyas
6faab7136d
Update storage_provisioner.go
2019-01-29 08:40:43 -08:00
jay vyas
1904f1e5d2
Update storage_provisioner.go
2019-01-29 08:18:48 -08:00
jay vyas
0126f92d87
Update storage_provisioner.go
2019-01-29 08:16:13 -08:00
jay vyas
2ed155d5e4
Add breadcrumb logs to demonstrate when minikube's CSI provisioner is actively making volumes
...
Since minikube is the canonical kubernetes deployment for learning and playing with things, this trivial PR makes it easy to see the storage provisioner in action, the current logging shows very little easier to differentiate how volumes are spun up.
2019-01-29 07:55:48 -08:00
balopat
17c0244cf7
reverting unnecessary change
2019-01-28 17:28:57 -08:00
balopat
5af2f1eafc
formatting / removed extra comment
2019-01-28 13:47:24 -08:00
balopat
f70e6a0385
fixing review remarks
2019-01-28 13:42:43 -08:00
balopat
f3034d3c50
parsing ip r output
2019-01-28 11:43:44 -08:00
balopat
2b0651b55d
parsing ip r output
2019-01-28 11:43:01 -08:00
balopat
933356e477
lint
2019-01-25 17:20:57 -08:00