Commit Graph

26054 Commits (ac378f46f578f1f9fac88e47612c533839c110bf)

Author SHA1 Message Date
Nir Soffer ac378f46f5 test: Improve image list checks
We had similar code to check if image exists or not. Add
checkImageNotExists() helper and refactor listImages() helper to make it
easier to use.

listImages() fails the test so the caller do no not need to check for
errors. It returns list of images so the caller does not have to parse
the output.

When parsing the output of `minikube image ls` use scanner to split the
output to lines. Previously we search images in rr.Output() (formatted
message with contents of stdout and stderr) instead of
rr.Stdout.String(), which could lead to returning a wrong result.
2025-08-23 21:12:54 +03:00
Nir Soffer 12b7ead6ed test: Use fully qualified image name
We can pull unqualified image to docker:

    kicbase/echo-server:latest

but the image is created with the fully qualified name:

    docker.io/kicbase/echo-server:latest

Tagging works with the unqualified name, but when we load images to
minikube the we get the fully qualified name. Mixing unqualified and
qualified is confusing and make searching harder if we want to exact
matching.
2025-08-23 21:09:09 +03:00
minikube-bot 7d4604a368 Update auto-generated docs and translations 2025-08-22 19:50:40 -07:00
Nir Soffer 65ef5bd2c4 test: Usse kickbase/echo-server for service tests
The echoserver-arm:1.8 image is not an arm64 image:

    % kubectl create deployment echoserver --image registry.k8s.io/echoserver-arm:1.8
    deployment.apps/echoserver created

    % kubectl logs deploy/echoserver
    exec /usr/sbin/nginx: exec format error

    % minikube ssh -- sudo nerdctl -n k8s.io image ls registry.k8s.io/echoserver-arm:1.8
    REPOSITORY                        TAG    IMAGE ID        CREATED               PLATFORM       SIZE        BLOB SIZE
    registry.k8s.io/echoserver-arm    1.8    b33d4cdf6ed0    About a minute ago    linux/amd64    90.1 MiB    43.2 MiB

Replace with kickbase/echo-server we used in other tests.

With this change ServerCmdConnect pass. The other test using the broken
arm image was not failing, maybe it was not checking the deployment
status properly.

Functional tests time reduced from 230 seconds to 200 seconds:

    --- FAIL: TestFunctional (200.87s)
2025-08-22 19:46:16 -07:00
Nir Soffer cb07147efe test: Add contants_test file
Currently keeping one constant for kickbase/echo-server used in the
image tests. We want to use this in other tests.
2025-08-22 19:46:16 -07:00
Nir Soffer a8babb399c constants: Update kubeacm contants
Generated using:

    make update-kubeadm-constants
2025-08-22 14:27:03 -07:00
Nir Soffer b2e489570c constants: Remove k8s 1.33.* and 1.34.* versions
We want to rebuild the version to ensure we get correct versions.
2025-08-22 14:27:03 -07:00
Nir Soffer 7521ce02f4 lint: Improve go mod tidy lint step
- Fix incorrect usage of git diff
- Use git diff-index to detect changes
- Show full diff to show the required change
- Move the fix suggestion to the end to make it easier to find
- Group log line with ::group:: workflow command[1]
- Use ::notice workflow command[2] for the fix suggestion so we don't
  get multiple errors annotations

[1] https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands#grouping-log-lines
[2] https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands#setting-a-notice-message
2025-08-22 13:12:16 -07:00
minikube-bot 191d4b4db2 Update auto-generated docs and translations 2025-08-21 15:39:04 -07:00
Predrag Rogic 2433c7978c avoid conflict with the update package flags 2025-08-21 15:30:41 -07:00
dependabot[bot] 2c53bac3d7 Build(deps): Bump k8s.io/cluster-bootstrap from 0.33.3 to 0.33.4
Bumps [k8s.io/cluster-bootstrap](https://github.com/kubernetes/cluster-bootstrap) from 0.33.3 to 0.33.4.
- [Commits](https://github.com/kubernetes/cluster-bootstrap/compare/v0.33.3...v0.33.4)

---
updated-dependencies:
- dependency-name: k8s.io/cluster-bootstrap
  dependency-version: 0.33.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-21 11:44:47 -07:00
dependabot[bot] b56f95e347 Build(deps): Bump github.com/go-viper/mapstructure/v2 in /hack
Bumps [github.com/go-viper/mapstructure/v2](https://github.com/go-viper/mapstructure) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/go-viper/mapstructure/releases)
- [Changelog](https://github.com/go-viper/mapstructure/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-viper/mapstructure/compare/v2.3.0...v2.4.0)

---
updated-dependencies:
- dependency-name: github.com/go-viper/mapstructure/v2
  dependency-version: 2.4.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-21 11:17:20 -07:00
dependabot[bot] 36be75de09 Build(deps): Bump github.com/go-viper/mapstructure/v2
Bumps [github.com/go-viper/mapstructure/v2](https://github.com/go-viper/mapstructure) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/go-viper/mapstructure/releases)
- [Changelog](https://github.com/go-viper/mapstructure/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-viper/mapstructure/compare/v2.3.0...v2.4.0)

---
updated-dependencies:
- dependency-name: github.com/go-viper/mapstructure/v2
  dependency-version: 2.4.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-21 11:17:05 -07:00
minikube-bot 2d4357eb43 Update auto-generated docs and translations 2025-08-20 21:25:51 -07:00
dependabot[bot] fb268d244d Build(deps): Bump k8s.io/client-go from 0.33.3 to 0.33.4
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.33.3 to 0.33.4.
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.33.3...v0.33.4)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-version: 0.33.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-20 21:14:34 -07:00
Nir Soffer 96229adc41 drivers: Add Virtiofs mounts for vfkit and krunkit
Replace 9p mounts with virtiofs for vfkit and krunkit. Testing shows
that virtiofs mount is 23 times faster with krunkit, and 8 times faster
with vfkit.

vfkit and krunkit support multiple virtiofs mounts but minikube
--mount-* flags are not ready for multiple mounts. We have the same
issue with KIC drivers, supporting multiple mounts but using only one.
We hope to improve this in the next release.

Example usage:

    minikube start --mount-string ~/models:/mnt/models

The arguments are parsed and validated when configuring the driver, so
invalid arguments fail quickly without starting the driver. The
validated mounts are stored in the machine config:

    $ jq '.Driver.VirtiofsMounts' < ~/.minikube/machines/minikube/config.json
    [
      {
        "HostPath": "/Users/joe/models",
        "GuestPath": "/mnt/models",
        "Tag": "f845b54d-00e3-493d-9541-3b37490b96db"
      }
    ]

Minikube generates a new random UUID for every virtiofs mount to
identify the file system inside the guest. In krunkit and vfkit, every
mount is add as:

    --device virtio-fs,sharedDir=/host-path,mountTag=f845b54d-00e3-493d-9541-3b37490b96db

When the guest is started the shared directory is mounted via SSH using:

    sudo mkdir -p /mnt/models
    sudo mount -t virtiofs f845b54d-00e3-493d-9541-3b37490b96db /mnt/models

Example mount:

    $ minikube ssh findmnt /mnt/models
    TARGET      SOURCE                               FSTYPE   OPTIONS
    /mnt/models f845b54d-00e3-493d-9541-3b37490b96db virtiofs rw,relatime

More work is needed to add VirtioFS to qemu. I'm starting with vfkit and
krunkit since they have identical interface (krunkit was designed as
drop-in replacement for vfkit).
2025-08-20 21:12:45 -07:00
Nir Soffer 35446b7bd5 drivers: Add common/virtiofs package
The package provides functions for parsing and validating mount string
and setting up the mount inside the guest.
2025-08-20 21:12:45 -07:00
Medya Ghazizadeh 6f6c54d5e9 add more config to the changelog geneator 2025-08-20 11:09:21 -07:00
Medya Ghazizadeh 3be7c9d36f add correct prefix to automation PRs 2025-08-20 11:09:21 -07:00
dependabot[bot] 006e2e5528 Build(deps): Bump github.com/docker/docker
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 28.2.2+incompatible to 28.3.3+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v28.2.2...v28.3.3)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-version: 28.3.3+incompatible
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-20 10:44:48 -07:00
dependabot[bot] f925f5ad8c Build(deps): Bump github.com/docker/docker in /hack
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 28.2.2+incompatible to 28.3.3+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v28.2.2...v28.3.3)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-version: 28.3.3+incompatible
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-20 10:44:24 -07:00
ByoungUk Lee a9e64533fa Bring back @ in update-kubernetes-version recipe 2025-08-20 10:44:00 -07:00
minikube-bot d7d0547f4b Update auto-generated docs and translations 2025-08-20 10:37:38 -07:00
dependabot[bot] 9482c7282c Build(deps): Bump github.com/hashicorp/go-getter from 1.7.8 to 1.7.9
Bumps [github.com/hashicorp/go-getter](https://github.com/hashicorp/go-getter) from 1.7.8 to 1.7.9.
- [Release notes](https://github.com/hashicorp/go-getter/releases)
- [Changelog](https://github.com/hashicorp/go-getter/blob/main/.goreleaser.yml)
- [Commits](https://github.com/hashicorp/go-getter/compare/v1.7.8...v1.7.9)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-getter
  dependency-version: 1.7.9
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-20 10:35:44 -07:00
Medya Ghazizadeh 35fe75c2fd add boilerplate 2025-08-20 10:29:15 -07:00
Medya Ghazizadeh 503edb67e9 fix contains logic 2025-08-20 10:29:15 -07:00
Medya Ghazizadeh 44ce09ef4d addning comment 2025-08-20 10:29:15 -07:00
Medya Ghazizadeh 3de0396e89 add comments 2025-08-20 10:29:15 -07:00
Medya Ghazizadeh 353b7b13d1 correct path for changelog 2025-08-20 10:29:15 -07:00
Medya Ghazizadeh c765f6fe3c remove depdence on depricated tool and use our own script for changelog 2025-08-20 10:29:15 -07:00
Medya Ghazizadeh 6820123f93 add unit tests 2025-08-20 10:29:15 -07:00
Medya Ghazizadeh b60271f58b delete older file 2025-08-20 10:29:15 -07:00
Medya Ghazizadeh 78c80e455d make groups sortable 2025-08-20 10:29:15 -07:00
Medya Ghazizadeh 2470aab3c0 rewrite release noes in golang 2025-08-20 10:29:15 -07:00
Medya Ghazizadeh 050e5ad623
fix preload tool build (#21367)
* fix preload tool build

* refactor: use ImageInspect and containerd errdefs

* using errdefs since docker client err is depricated
2025-08-19 17:27:33 -07:00
Jeff MAURY 2670400830
Fix french translation (#21372)
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
2025-08-19 11:19:47 -07:00
Medya Ghazizadeh f5aa17d7f7
ci: add network settings to post-mortem logs and improve timeout detections (#21361)
* info blockL: add load average details

* log the proxy envs in the post mortems

* remove iostat

* better detection of time out
2025-08-19 11:19:00 -07:00
minikube-bot c4c81c06df
Addon Volcano: Update volcano images from v1.12.1 to v1.12.2 (#21351) 2025-08-18 13:22:37 -07:00
minikube-bot 5a0afc2cbe
Addon kong: Update kong image from 3.9.1 to 3.9.1 (#21350) 2025-08-18 13:18:42 -07:00
minikube-bot 3074d2a1a2
CNI: Update cilium from v1.18.0 to v1.18.1 (#21349) 2025-08-18 13:10:44 -07:00
minikube-bot 37c6d5f07d
Update auto-generated docs and translations (#21364) 2025-08-18 13:10:22 -07:00
Medya Ghazizadeh dba6fac047
geneate gopogh for timed out tests too (#21363) 2025-08-18 12:56:01 -07:00
Nir Soffer 6fbe84c7d2
test: Initial support for virtiofs mounts (#21272)
* test: Add findmnt package

When testing mounts we can use findmnt --json output to parse the output
cleanly. The package provides only ParseOutput() now, but it can be
extended later to run the findmnt command.

* test: Support virtiofs mounts

Use findmnt command to get the mounted filesystem details cleanly.

We use the actual mount fstype instead of driver name check so we can
switch drivers to virtiofs without changing the test.

For virtiofs mount we skip options validation since we don't support
setting virtiofs options yet, and the options are not the same as 9p
options.

For 9p mounts the uid= and gid= flags were fixed to match the real flags
(dfltuid=,dfltgid=). The issue was hidden by imprecise string matching.
2025-08-18 12:54:03 -07:00
minikube-bot 7f42627f20
update image constants for kubeadm images (#21347) 2025-08-18 12:46:23 -07:00
minikube-bot 63a496bf4d
Update go from 1.24.0 to 1.24.6 (#21348)
* Update go from 1.24.5 to 1.24.6

* Updating kicbase image to v0.0.47-1755508051-21348
2025-08-18 12:38:34 -07:00
minikube-bot 2435fcec0d
Addon ingress: Update ingress-nginx/controller image from v1.13.0 to v1.13.1 (#21353) 2025-08-18 12:37:58 -07:00
minikube-bot ca67c9eba7
Addon inspektor-gadget: Update inspektor-gadget image from v0.43.0 to v0.43.0 (#21358) 2025-08-18 12:24:07 -07:00
minikube-bot 07c0169084
Addon cloud-spanner: Update cloud-spanner-emulator/emulator image from 1.5.39 to 1.5.40 (#21359) 2025-08-18 10:51:53 -07:00
Predrag Rogic 358a142c96
fix k8s v1.33.3 etcd image version (#21337) 2025-08-14 17:05:56 -07:00
minikube-bot 03a3c91ab6
Kicbase/ISO: Update crun from 1.23 to 1.23.1 (#21330)
* Kicbase/ISO: Update crun from 1.23 to 1.23.1

* Updating kicbase image to v0.0.47-1755081124-21330
2025-08-14 10:57:31 -07:00