Commit Graph

1348 Commits (801cd01adac6e87a0adce623ba4306b8f7f2a260)

Author SHA1 Message Date
Sharif Elgamal 0b79a570c5
Initial attempt at localization with gotext 2019-05-13 13:24:15 -07:00
Medya Gh 8bc0010716 Fix dashboard behind proxy and refactor 2019-05-09 17:29:52 -07:00
Kubernetes Prow Robot 2cd5336f0b
Merge pull request #4162 from tstromberg/shorter-prefixes
Standardize ASCII prefix for info, warning, and error messages
2019-05-07 11:58:35 -07:00
Thomas Strömberg b936caf717
Merge pull request #4216 from medyagh/4214_replace_sed
Replace ARCH sed macros with Go templates
2019-05-07 11:34:35 -07:00
Thomas Strömberg a30bf66347
Merge pull request #3937 from laozc/check-gcr-access
Select an accessible image repository for some users
2019-05-07 10:00:16 -07:00
Thomas Strömberg 756cd0f343
Merge pull request #4197 from dpandhi-git/master
Make default output of 'minikube start' consume fewer lines in the terminal
2019-05-07 09:55:40 -07:00
Deepika Pandhi c98ba69216 anged email address for commit & impleted review updates for #4187 2019-05-06 22:05:04 -07:00
Deepika Pandhi 183322f0bd Changed minikube start output as per #4187 2019-05-06 22:04:27 -07:00
Medya Gh 5fa67141e6 Added Exotic Arch for legacy docker images 2019-05-06 17:07:05 -07:00
Medya Gh e82aef5c90 Rename the template names 2019-05-06 15:21:03 -07:00
Medya Gh 1790589f70 Replace ARCH sed macros with Go templates 2019-05-06 14:38:38 -07:00
tstromberg 283d54caed Asterisks won in the votes 2019-05-06 11:57:19 -07:00
tstromberg ae3b25f26c Merge branch 'master' into shorter-prefixes 2019-05-06 11:52:51 -07:00
tstromberg 14209a487c Split NewBinDataAsset into NewBinAsset and MustBinAsset 2019-05-06 11:37:54 -07:00
tstromberg 614afc82f2 t log | more
Merge branch 'master' into bindata-panic
2019-05-06 11:27:06 -07:00
tstromberg 93527dc67c Remove duplicate entry breaking tests 2019-05-06 11:16:59 -07:00
Anders F Björklund 5927bf874d Upgrade Docker, from 18.06.3-ce to 18.09.5
Stop installing docker-runc, docker-containerd and docker-containerd-ctr

Instead use the upstream runc, containerd and ctr (after upgrading them)

	runc v1.0.0-rc6-69-g2b18fe1

	containerd v1.2.5
2019-05-04 18:16:37 +02:00
Thomas Stromberg e734b5be02 Avoid calling Read() on 0-byte resources, and add copious debugging. 2019-05-03 16:17:38 -07:00
Sharif Elgamal 8afeda20f6
Merge pull request #4199 from sharifelgamal/jibber-jabber
Add automatic locale detection
2019-05-03 15:03:05 -07:00
Sharif Elgamal e1decae772 move locale detection to main 2019-05-03 14:08:14 -07:00
Sharif Elgamal 0bf293b019 Move setting locale to start 2019-05-03 12:50:02 -07:00
Thomas Stromberg 1fe716a0d8 Fix bad merge 2019-05-03 12:42:54 -07:00
Thomas Stromberg 32f470f0ac Remove VBOX_THIRD_PARTY, add GOOS matching 2019-05-03 12:12:36 -07:00
Thomas Stromberg 27cd8b1a92 Remove VBOX_THIRD_PARTY, add GOOS matching 2019-05-03 12:06:28 -07:00
Sharif Elgamal 5cffb33e43 remove debugging 2019-05-02 19:05:44 -07:00
Sharif Elgamal 248affb151 Add automatic locale detection 2019-05-02 19:03:52 -07:00
tstromberg 4af163abdc Add boilerplate 2019-05-02 17:10:52 -07:00
tstromberg b603d6050c Add TestFromError 2019-05-02 16:54:02 -07:00
tstromberg 0f8c21f46d Add solution messages for common kvm2 and VirtualBox issues 2019-05-02 16:53:38 -07:00
tstromberg 5978555826 Improve TestOutStyle 2019-05-02 16:10:01 -07:00
Anders F Björklund 292f4ec49b Add new kubectl command 2019-05-02 20:38:52 +02:00
Thomas Strömberg 63bfd32ad3
Revert "Initial implementation of kubectl command" 2019-05-02 11:26:04 -07:00
Sharif Elgamal ec6fc41ac5
Merge pull request #3646 from afbjorklund/kubectl
Initial implementation of kubectl command
2019-05-02 11:19:53 -07:00
tstromberg f642f1abbc Merge branch 'master' into shorter-prefixes 2019-05-02 10:48:55 -07:00
tstromberg 04346b31e1 Change lowBullet to > based on poll results 2019-05-02 10:41:33 -07:00
Zhongcheng Lao 144f651385
Triggers repository detection only when --image-repository=auto 2019-05-02 19:07:45 +08:00
Himanshu Pandey c8af727416 Added tests to check current-context on start and stop of minikube 2019-04-30 15:32:40 -07:00
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