Commit Graph

5790 Commits (9d975630aad41cbf35753ffe5340a01769435c4b)

Author SHA1 Message Date
Medya Ghazizadeh 316f5ea3b2
Merge pull request #11432 from andriyDev/CustomAddonImages
Persist custom addon image/registry settings.
2021-05-19 18:30:14 -07:00
Andriy Dzikh df32362a7f Add comments to types.go for CustomAddonImages/CustomAddonRegistries. 2021-05-19 15:26:28 -07:00
Sharif Elgamal 5b512a7296 Merge branch 'master' of github.com:kubernetes/minikube into error-codes 2021-05-19 15:26:11 -07:00
Sharif Elgamal ef304f7c05 add error codes file 2021-05-19 15:25:45 -07:00
Andriy Dzikh 88205c2e65 Allow download_test to mock checksum retrieval. 2021-05-19 09:54:03 -07:00
Andriy Dzikh 6c3113706e Create unit tests for new utility functions in pkg/minikube/assets/addons.go. 2021-05-18 14:10:39 -07:00
Andriy Dzikh 040e7e7a8d Persist custom addon image settings. 2021-05-18 14:10:37 -07:00
Andriy Dzikh 7684a14e1a Move (custom) image selection to its own function. 2021-05-18 14:09:03 -07:00
Andriy Dzikh 62b2c94c0f Refactor assets/addons.go to de-dupe map parsing. 2021-05-18 14:09:03 -07:00
Medya Ghazizadeh 4f345f2b8f
Merge pull request #11426 from afbjorklund/images-versions
Update the bootstrapper images for k8s 1.21
2021-05-18 12:23:43 -07:00
Medya Ghazizadeh adbcae1848
Merge pull request #11410 from r4j4h/upgrade-metallb-addon-metallb-version
metallb-addon: Update metallb from 0.8.2 to 0.9.6
2021-05-18 11:43:13 -07:00
Medya Ghazizadeh 8f85fd9751
Merge pull request #11438 from medyagh/autopause-vm
Fix auto-pause on VMs (detect right control-plane IP)
2021-05-18 09:18:33 -07:00
Medya Ghazizadeh e05cad71c4
Merge pull request #11355 from afbjorklund/driver-order
Sort rejected drivers by their preference order
2021-05-17 20:31:34 -07:00
Medya Gh 8ca3d1f799 remove debug 2021-05-17 18:54:02 -07:00
Medya Gh 0068f92327 add port to addons templates 2021-05-17 18:50:12 -07:00
Medya Gh 45fca194af add apiserver ip to autopause proxy 2021-05-17 18:50:12 -07:00
Medya Ghazizadeh ee9ed1c3d3
Merge pull request #11404 from prezha/host.minikube.internal
add host.minikube.internal to coredns
2021-05-17 18:46:33 -07:00
ilya-zuyev 612d4e4d58
Merge pull request #11433 from ilya-zuyev/ilyaz/fix_fmt_warning
fix "no arguments passed" warning
2021-05-17 16:28:56 -07:00
Anders F Björklund c7e8be0972 Bump the preload version and add a note
The image list was wrong for the 1.21 preload tarball

It had the pause and coredns versions from 1.20 still
2021-05-17 23:02:09 +02:00
Anders F Björklund 9f5388af73 Remove k8s 1.11 support from kubeadm images
It requires arch suffix, but that code is no longer present.

Should be OK, we have: OldestKubernetesVersion = "v1.14.0"
2021-05-17 22:51:11 +02:00
Predrag Rogic 4e967acbae
avoid error, improve test 2021-05-17 21:18:27 +01:00
Predrag Rogic 260d22cd57
rename func, add comments 2021-05-17 21:14:59 +01:00
Predrag Rogic 3ddb4e30b3
add host.minikube.internal to coredns 2021-05-17 21:14:35 +01:00
Medya Ghazizadeh 2445acacdc
Merge branch 'master' into kube-proxy-conntrack 2021-05-17 12:41:57 -07:00
Ilya Zuyev 5e2b56d808 fix "no arguments passed" warning 2021-05-17 12:37:57 -07:00
Anders F Björklund 821644d304 Add test for images used by pkg/minikube/cni 2021-05-17 12:43:23 +02:00
Anders F Björklund 839b493494 Add more tests to kubeadm for better coverage 2021-05-17 12:21:42 +02:00
Anders F Björklund eadfae3e37 Add a unittest for kubeadm bootstrapper images
Change the image order to make it easier to compare with the
output of `kubeadm images config list` for each release version.
2021-05-17 08:24:34 +02:00
Anders F Björklund 589eea90a0 Update the bootstrapper images for k8s 1.21
Including some weird changes like changing the image name and
the tagging syntax for coredns (possibly a mistake upstream)
2021-05-17 08:23:40 +02:00
Anders F Björklund 6ea7e03304 Remove integration test count from documentation 2021-05-17 08:06:19 +02:00
Anders F Björklund 610883ba55 Add documentation for all the DriverState fields 2021-05-16 09:32:31 +02:00
Anders F Björklund 6d0763648e Keep original preference, for identical priority
Unhealthy drivers have their priority lowered
2021-05-16 09:31:37 +02:00
Predrag Rogic f425739254
prevent kube-proxy trying to change nf_conntrack_max 2021-05-15 19:36:49 +01:00
Medya Ghazizadeh 707af502f3
Merge pull request #11300 from ilya-zuyev/ilyaz/gh_11293
Fix getting of gateway IP for podman driver
2021-05-14 17:04:24 -07:00
ilya-zuyev 2a2ffeb380
Merge pull request #11304 from daehyeok/copy_node
Implement target node option for cp command
2021-05-14 15:59:11 -07:00
Ilya Zuyev dcadd32624 Add comment, improve template 2021-05-14 14:38:29 -07:00
Jasmine Hegman e0838eb289
Update metallb from 0.8.2 to 0.9.6
This change isn't strictly necessary but the newer versions of metallb contain some really nice quality of life improvements, and better support newer (installed by default) versions of kubernetes better.

A sample of some improvements this brings to metallb add-on installed by minikube:
- [Layer2 doesn't update when when ip changes](https://github.com/metallb/metallb/pull/520) - this hit me, and might be hitting others
- [Allow spaces in configs](https://github.com/metallb/metallb/pull/500) - quality of life
- [selflink is deprecated](https://github.com/metallb/metallb/pull/812) - Kubernetes deprecation (I believe seeing this is in the logs is what originally caused me to look into upgrading it)
2021-05-14 09:29:14 -07:00
Anders F Björklund 748d9cb254 Use patched version of go-containerregistry
It allows adding a tag to a Digest, by doing a "docker pull"
in the daemon.Write function after doing the "docker load"

The digest is not stored in the tarball, so it cannot be
loaded from it. The alternative is instead using a Tag.
2021-05-14 17:34:07 +02:00
Anders F Björklund 3bcfe1bdc4 Move load function from image to download
Now we don't have to expose the local cache directory path,
and don't risk mixing the kicbase code with the image code.

Duplicate the digest code for now, it should use the Digest
implementation Tag() from our patched go-containerregistry.
2021-05-14 17:08:03 +02:00
Anders F Björklund 580161ad1c Load kicbase image from right cache and add log
It was silently failing to load from the (wrong) cache directory,
causing the image to be download twice from the network instead.

Add new function to get the path in the cache directory, so that
we don't have to duplicate that both inside and outside module.
2021-05-14 10:11:06 +02:00
Medya Ghazizadeh 33e26502dd
Merge pull request #11366 from spowelljr/fixImageLoad
`image load`: overwrite same image unless `--overwrite=false`
2021-05-13 21:18:29 -07:00
Medya Ghazizadeh 01328781b3
Merge pull request #11223 from andriyDev/DownloadLocks
Add locks to download functions.
2021-05-13 18:54:37 -07:00
Steven Powell e1fabfd358 only throw error if not a "no such image" error returned from remove 2021-05-13 17:23:00 -07:00
Medya Ghazizadeh 9e3a66268f
Merge pull request #11384 from dinever/kicbase-tools
Add useful tools in the Kicbase Docker image
2021-05-13 14:14:59 -07:00
Andriy Dzikh 268e91f830 Make download.imageExistsInDaemon public to fix bad compilation. 2021-05-13 11:57:01 -07:00
Andriy Dzikh c0a492b879 Improve comments for ImageToCache and ImageToDaemon. 2021-05-13 11:57:01 -07:00
Andriy Dzikh 0626bb0455 Add comment to explain lock wait timeout. 2021-05-13 11:57:01 -07:00
Andriy Dzikh 9191d03c99 Check releaser is valid before deferring release. 2021-05-13 11:57:01 -07:00
Andriy Dzikh e9c4c93afa Remove no longer relevant comment. 2021-05-13 11:57:01 -07:00
Andriy Dzikh 118eae4311 Add function comment to lockDownload. 2021-05-13 11:57:01 -07:00
Andriy Dzikh 248d030d73 Reword test fail message. 2021-05-13 11:57:01 -07:00
Andriy Dzikh f4b142c42f Rename downloads to downloadNum. 2021-05-13 11:57:01 -07:00
Andriy Dzikh fbc041d2a1 Ensure directory exists in CreateDstDownloadMock and add comments. 2021-05-13 11:57:01 -07:00
Andriy Dzikh 5e48738097 Remove SetDownloadMock and rename mockDownload to DownloadMock. 2021-05-13 11:57:01 -07:00
Andriy Dzikh ad356d5508 Move defer lock release to before error check so the lock is guaranteed to be released. 2021-05-13 11:57:00 -07:00
Andriy Dzikh a7cbc76d88 Refactor repeated mock sleep function into a single function. 2021-05-13 11:57:00 -07:00
Andriy Dzikh 4fc0ac5c8a Make download_test run tests in serial. 2021-05-13 11:57:00 -07:00
Andriy Dzikh fa0803d81e Refactor download.go to allow more complex download mocking. Modify download_test to prevent using logging. 2021-05-13 11:57:00 -07:00
Andriy Dzikh 5af0dcf3aa Use spinner for lock message. 2021-05-13 11:57:00 -07:00
Andriy Dzikh e0a6887bab Add message saying when download is waiting for a file lock. 2021-05-13 11:57:00 -07:00
Andriy Dzikh 1cc80e1e7b Move locking code to download.go. 2021-05-13 11:57:00 -07:00
Andriy Dzikh b57022d2c8 Make functions not used outside the download package private. 2021-05-13 11:57:00 -07:00
Andriy Dzikh 0a44408ce8 Add locks to binary, image, and preload downloads. 2021-05-13 11:57:00 -07:00
Andriy Dzikh 458d1d5102 Add tests for ImageToCache/Daemon that they prevent multiple downloads. 2021-05-13 11:57:00 -07:00
Andriy Dzikh dba9076cc3 Add mock mode check for ImageToCache and ImageToDaemon, similar to download.download. 2021-05-13 11:57:00 -07:00
Andriy Dzikh fd7cd15a27 Add test to check that preload prevents concurrent downloads. 2021-05-13 11:57:00 -07:00
Andriy Dzikh 4e8451af95 Create download_test and add test for Binary downloads not colliding. 2021-05-13 11:57:00 -07:00
Andriy Dzikh d6f60bbd4a Move image existence checks into downloading functions. 2021-05-13 11:57:00 -07:00
Andriy Dzikh 26634c18a8 Move image functions related to downloading to the download package. 2021-05-13 11:57:00 -07:00
Medya Ghazizadeh c97984a4b9
Merge pull request #11392 from dinever/fix-docker-version-test
Fix TestCheckDockerVersion on macOS
2021-05-13 11:44:31 -07:00
Daehyeok Mun 7c2e963392 Implement target node option for cp command 2021-05-13 10:47:09 -07:00
Peixuan Ding 6bfbb7c33a Fix TestCheckDockerVersion on macOS 2021-05-12 17:30:29 -04:00
Steven Powell 16dbac1f66 check if image exists before trying to remove it 2021-05-12 14:26:34 -07:00
Steven Powell e59ced9029 updated flag description and renamed force arg to overwrite and made it non-optional 2021-05-12 14:26:34 -07:00
Steven Powell 32a91d6eb2 image load loads image even if name:tag already exists 2021-05-12 14:24:49 -07:00
Anders F Björklund 6ea3ffee1f Show suggestion for rejected unhealthy drivers
Normally how to add root permissions for the user, to be able to
run the "docker" or "podman" driver (through group or through sudo)
2021-05-12 07:15:26 +02:00
minikube-bot e8b16a5247 Updating kicbase image to v0.0.22-1620785771-11384 2021-05-12 02:25:58 +00:00
Medya Ghazizadeh c214b040e6
Merge pull request #11381 from sharifelgamal/test-doc
Make sure all tests have comments
2021-05-11 18:05:36 -07:00
Sharif Elgamal 7982396834 remove unnecessary logging from extract 2021-05-11 16:56:15 -07:00
Sharif Elgamal 80bb2999e4 remove last newline 2021-05-11 15:32:57 -07:00
Sharif Elgamal 972dae8133 Make sure all tests have comments 2021-05-11 15:17:43 -07:00
Medya Ghazizadeh c136fe3cfd
Merge pull request #11060 from afbjorklund/retro-arch
Allow building minikube for outdated architectures
2021-05-11 12:22:03 -07:00
Anders F Björklund acadaa6736 Don't reload from tarball if image exists in daemon 2021-05-10 12:57:37 +02:00
Medya Ghazizadeh d9482f68e0
Revert "base-image: Allow using podman as well as docker daemon" 2021-05-09 10:43:53 -07:00
Medya Ghazizadeh 807440a8a9
Merge pull request #11063 from afbjorklund/daemon-podman
Allow using podman as well as docker daemon
2021-05-07 17:01:06 -07:00
Medya Gh 3aef16647a finish french trasnlation 2021-05-07 16:04:37 -07:00
Akihiro Suda 813138734d
containerd: upgrade `io.containerd.runtime.v1.linux` to `io.containerd.runc.v2`
To support cgroup v2, the runtime has to be upgraded to `io.containerd.runc.v2`.

Also, `io.containerd.runtime.v1.linux` has been deprecated since containerd v1.4.

Tested with `--driver=docker`, on Ubuntu 21.04 + Docker 20.10 + cgroup v2.

Fix issue 11310

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-05-07 22:36:24 +09:00
Akihiro Suda 86c7271088
docker driver: propagate NeedsImprovement and Fix to the caller
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-05-07 22:02:55 +09:00
Akihiro Suda 2cae14829d
docker driver: relax version constraint
When Docker (Moby) was installed from the source code, the version string is typically set to "dev", or "library-import".

Previously, minikube could not start with these versions.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-05-07 19:11:40 +09:00
Akihiro Suda 95e81551c9
docker driver: remove "+build darwin" from docker_test.go
No test in the file was specific to Darwin.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-05-07 18:14:44 +09:00
Brian de Alwis 25433a4065 Fix autopause issue link 2021-05-06 15:47:36 -04:00
Ilya Zuyev a1ae930d2f Simplify the code 2021-05-06 11:17:43 -07:00
Ilya Zuyev 6e2eae0d0a Simplify the code 2021-05-06 11:13:10 -07:00
Medya Ghazizadeh 4bb44282d7
Merge pull request #11298 from minikube-bot/kicbase-release-v0.0.22
Update kicbase to v0.0.22
2021-05-06 10:56:40 -07:00
Sharif Elgamal 94e2ec4e37
Merge pull request #11287 from medyagh/update-k8s-v
update newest supported  Kubernetes version to v1.22.0-alpha.1
2021-05-06 10:55:25 -07:00
Ilya Zuyev f4e142d442 Simplify the code 2021-05-06 10:35:22 -07:00
Medya Ghazizadeh 4fc22325cb
Merge pull request #11302 from spowelljr/removeDoubleLicense
Removed double license
2021-05-06 10:24:42 -07:00
Ilya Zuyev 8d2b811fcf Remove debug logs 2021-05-05 22:01:21 -07:00
Medya Ghazizadeh 01a701874c
Merge pull request #11301 from spowelljr/breakdownGuestProvision
Added more descriptive errors for GUEST_PROVISION
2021-05-05 20:12:18 -07:00
Ilya Zuyev 6cf6ba2ff2 Fix network settings parsing 2021-05-05 19:31:12 -07:00
Ilya Zuyev 829cc42a65 Fix network settings parsing 2021-05-05 19:11:56 -07:00
Ilya Zuyev 618d09ab76 Fix network settings parsing 2021-05-05 17:14:33 -07:00
Steven Powell a0e3a34bb6 added more descriptive errors from GUEST_PPROVISION 2021-05-05 16:31:02 -07:00
Ilya Zuyev 01f76f7d4f Add debug logs 2021-05-05 16:29:11 -07:00
Medya Gh 387c515a48 bump coredns for 22 2021-05-05 16:27:52 -07:00
Medya Gh 53d8f64419 dont bumpt default 2021-05-05 16:27:52 -07:00
Medya Gh 5b7acd315a update newest kubernetes version 2021-05-05 16:27:52 -07:00
Andriy Dzikh 98f4d4706b Add --file flag to 'minikube logs' to automatically put logs into a file. 2021-05-05 16:18:15 -07:00
Ilya Zuyev adc53aa677 Fix error handling 2021-05-05 15:58:16 -07:00
Steven Powell f0d1d93037 removed double license 2021-05-05 15:53:53 -07:00
Ilya Zuyev 61c1b301be Fix linter errors 2021-05-05 15:31:11 -07:00
Ilya Zuyev fe392b4233 When getting a gateway IP for podman container inspect per-network data as well 2021-05-05 15:09:46 -07:00
minikube-bot 625a06ce6d Update kicbase to v0.0.22 2021-05-05 21:18:37 +00:00
Medya Ghazizadeh 6bca921435
Merge pull request #11258 from prezha/fix-docker-crio
fix kubelet "root container [kubepods] doesnt exist"
2021-05-05 09:45:41 -07:00
Medya Ghazizadeh b850829554
Merge pull request #11274 from spowelljr/improveLogsCommand
Batch logs output to speedup `minikube logs` command
2021-05-05 00:13:28 -07:00
Medya Ghazizadeh b7dc95577f
Merge pull request #11288 from azhao155/yzhao/feature/autopause-image
Update image repo for auto-pause-hook
2021-05-05 00:11:10 -07:00
Yanshu a84652f0d5 add sha256 2021-05-05 00:49:44 +00:00
Medya Gh e0343aa702 update more slow versions of k8s 2021-05-04 16:34:52 -07:00
Yanshu 8feef42a88 Update auto-pause-hook image 2021-05-04 23:18:33 +00:00
Predrag Rogic e7907e3caa
fix kubelet "root container [kubepods] doesnt exist" 2021-05-04 18:24:11 +01:00
Steven Powell 616401e3e6 batch logs output to speedup command 2021-05-03 17:39:46 -07:00
Medya Ghazizadeh d69ab5c537
Merge pull request #11230 from spowelljr/makeBoxErr
Output GitHub issue message to stderr
2021-05-03 15:05:26 -07:00
Tomas Kral 08cb1c1455 olm addon: update OLM to 0.17.0 2021-05-03 13:17:49 -07:00
Sharif Elgamal e27e9a1e1b return pointer to k8sissue 2021-05-03 12:25:17 -07:00
Sharif Elgamal 9dbe957234 Merge branch 'master' of github.com:kubernetes/minikube into warn-k8s 2021-05-03 12:22:34 -07:00
Andriy Dzikh 4a5642e738 Fix `out` stylized function formatting with an empty map instead of nothing. 2021-04-30 14:40:18 -07:00
ilya-zuyev 27045fd421
Merge pull request #11239 from minikube-bot/kicbase-release-v0.0.21
Update kicbase to v0.0.21
2021-04-30 11:36:16 -07:00
minikube-bot c5b65cab51 Update kicbase to v0.0.21 2021-04-30 18:08:55 +00:00
Ilya Zuyev 0c641ae0ed Merge branch 'master' into iso-release-v1.20.0-beta.0 2021-04-30 10:50:04 -07:00
Medya Ghazizadeh ecc3a914cb
Merge pull request #11209 from prezha/test-wait-cni-cr
improve how cni and cruntimes work together v2
2021-04-30 10:31:44 -07:00
minikube-bot 2e12378c99 Update ISO to v1.20.0-beta.0 2021-04-30 06:22:22 +00:00
Anders F Björklund 60869241df Update unit test after recent code changes 2021-04-30 08:12:25 +02:00
Steven Powell 2abffe63f3 used String func instead of box built-in print 2021-04-29 17:03:22 -07:00
Predrag Rogic 859e6c2bd0
fix kubeadm join error: "Found multiple CRI sockets" 2021-04-29 23:55:20 +01:00
Anders F Björklund bec9f23e29 Add mask and unmask to the disable and enable 2021-04-30 00:54:28 +02:00
Predrag Rogic f2afe0907d
add pr 11180 2021-04-29 23:38:39 +01:00
Predrag Rogic 05abcd53ca
add pr 11182 2021-04-29 23:36:46 +01:00
Predrag Rogic 394def7a74
identify appropriate cni then configure cruntime accordingly 2021-04-29 23:36:46 +01:00
Predrag Rogic 5a3590627a
move wait after 'kubeadm phase addon all' 2021-04-29 23:36:46 +01:00
Predrag Rogic efd2155e10
don't wait for non-running and non-pending pods 2021-04-29 23:36:46 +01:00
Predrag Rogic d0cc7f09fc
test pr 11106 and pr 11185 2021-04-29 23:36:34 +01:00
ilya-zuyev 9947c61a83
Merge pull request #11185 from prezha/workout-cni-and-cruntimes
improve how cni and cruntimes work together
2021-04-29 15:01:18 -07:00
Steven Powell c224b329e6 make BoxedErr and output GitHub issue message using it 2021-04-29 14:54:49 -07:00
Medya Ghazizadeh ac2b98d744
Merge pull request #11169 from spowelljr/addBetaNotifications
Add opt-in notifications for beta releases
2021-04-29 14:03:59 -07:00
Medya Ghazizadeh 3de6dc0762
Merge pull request #11128 from afbjorklund/image-save
Add API for saving an image to a local path
2021-04-29 14:03:02 -07:00
Sharif Elgamal 8657b72645 address comments 2021-04-28 17:29:28 -07:00
Sharif Elgamal fb5f275baa abstract kubernetes issues away 2021-04-28 16:01:59 -07:00
Steven Powell c9ccfece9b removed get prefix from funcs 2021-04-28 15:34:48 -07:00
Steven Powell 6b86c4fe1b fix linting error 2021-04-28 15:23:31 -07:00
Sharif Elgamal b0f6923d68
Merge pull request #11212 from sharifelgamal/kicbase-build
Make sure to capture errors in auto kicbase builds
2021-04-28 09:01:57 -07:00