Commit Graph

2091 Commits (master)

Author SHA1 Message Date
Medya Ghazizadeh 931291170f
license: don't fail if output dir doesn't exist & download from github assets first (#21206)
* copy licenses to gh assests as well

* download licneses from github

* try head first to make code more simple

* remove debug

* fix extra dash

* create license directory if doesnt exist

* Apply suggestion from prezha

* Apply suggestion from prezha

* Apply suggestion from prezha

* Apply suggestion from prezha
2025-08-01 20:02:13 -07:00
Medya Ghazizadeh 3f7242fa2e
remove license binary from git repo (#21204) 2025-07-30 13:35:05 -07:00
minikube-bot 0afbdc5371
Kicbase/ISO: Update crun from 1.19 to 1.23 (#21198)
* Kicbase/ISO: Update crun from 1.19 to 1.23

* Updating kicbase image to v0.0.47-1753871403-21198
2025-07-30 13:12:07 -07:00
Medya Ghazizadeh 49d0fa4e1b
ci: use authenticated github when possible (#21189)
* hack update to use github token if available

* automate go mod tidy for both

* add ghc client for k8s vers list
2025-07-30 11:40:08 -07:00
Nir Soffer fbf257d1b5
hack: Rename module to k8s.io/minikube/hack (#21141)
Just because it is the expected name.
2025-07-28 17:40:26 -07:00
Medya Ghazizadeh e6628b90ed
gomod: remove replace for k8s.io/cluster-bootstrap (#21187) 2025-07-28 17:21:44 -07:00
Medya Ghazizadeh 94ffbcb9de
get dep version fix (#21182) 2025-07-28 14:44:25 -07:00
Nir Soffer 6a779426fe
hack: Replace go workspace with replace (#21094)
Using go workspace breaks iso build, and may affect the builds in
unwanted ways, bringing dependencies from the hack module into the
minikube module.

Remove the go.work file and add a replace directive to the hack module,
so it can access minikube packages from the local directory.

Some programs working directory was the source directory. With this
change all programs and scripts in the hack module are run from the
hack directory. Paths updated to the programs can find files in the
minikube root directory.

Some updaters and benchmarks are broken in master and are still broken
with this change.

These updates fail to pull non-existing images:
- make update-istio-operator-version
- make update-amd-gpu-device-plugin-version

These try to install try to install in /usr/local/bin with sudo and
neede rewrite:
- make cpu-benchmark-idle
- make cpu-benchmark-autopause
- make time-to-k8s-benchmark
2025-07-25 15:33:44 -07:00
Medya Ghazizadeh 7498245a96
replace spinner lib to upstream (#21115)
* fix go mod

* fix gomod

* gowork sum
2025-07-22 17:31:40 -07:00
Victor Ubahakwe 958ecac9d3
Refactor table rendering (#20893)
* Refactored table rendering codes to support updated tablewriter v1.0.7

This commit makes all necessary code changes to maintain compatibility
with the new tablewriter version. The update includes several required modifications across multiple files.

Files modified:
- cmd/minikube/cmd/config/images.go
- cmd/minikube/cmd/config/addons_list.go
- cmd/minikube/cmd/config/profile_list.go
- hack/benchmark/time-to-k8s/chart.go
- hack/benchmark/time-to-k8s/cpu.go
- pkg/minikube/audit/row.go
- pkg/minikube/machine/cache_images.go
- pkg/minikube/perf/result_manager.go
- pkg/minikube/service/service.go

Now #20878 can be merged.
Addresses #20879

* The tablewriter package v1.0.7 renamed SetHeaders to SetHeader

* updated go mod and table.SetColumnAlignment([]int{0, 0, 0, 0})

* Changed syntax and added vendor to gitignore

* simplified version of tablewriter

* removed vendor

* fix addon_list

* fix images tablewrtier

* bump tablewriter for profile list

* go mod tidy

* bump tablewriter for chart

* bump tablewriter for cpu chart

* bump tablewriter for row

* bump tablewriter cache images

* bump tablewriter

* bump tablewriter

* revert file

* bump tablewritter

* fix unit test

* fix lint issues

* fix the integration test pipe char

* convert all tables to new pipe instead of asci pipe

* convert all tables to new pipe instead of asci pipe

* go mod tidy

* go work sync

---------

Co-authored-by: Medya Ghazizadeh <medya@google.com>
2025-07-21 16:20:55 -07:00
Nir Soffer 56975bc752
Add krunkit driver supporting GPU acceleration on macOS (#20826)
* krunkit: Add krunkit driver

krunkit is a tool to launch configurable virtual machines using the
libkrun platform, optimized for GPU accelerated virtual machines and AI
workloads on Apple silicon.

It is mostly compatible with vfkit; the driver is a simplified copy of
the vfkit driver. Unlike vfkit, krunkit is available only on Apple
silicon.

Changes compared to vfkit driver:
- krunkit requires unix socket for networking, so we must use
  vment-helper.
- krunkit does not support HardStop, so we kill it using SIGKILL.
- We must enable vmnet offloading, required for krunkit.
- The code was simplified since vmnet-helper is always used
- Code was cleaned up to use .ResolveStorePath()
- Unused Upgrade() function was removed
- Types and functions that should not be public made private

We require krunkit 0.2.2, supporting --restul-uri=unix://.

* reason: Make vment-helper error driver agnostic

Previously it was used only for vfkit, so we suggested to fallback to
the `nat` network. This advice is not relevant to krunkit or to qemu
(which can also use vmnet-helper).

Change the error to recommend installing vment-helper. We need to think
how we can recommend other networks for vfkit and qemu. Another solution
is to create error for every driver+network combination but this seems
hard to manage.

* hack: Add krunkit integration test

This is the same way that we test vfkit. This test is not running in the
CI.

Issues:
- Need to install and configure vment-helper (requires root).

* site: Add krunkit driver documentation
2025-07-21 12:59:28 -07:00
Medya Ghazizadeh 72332118f2
migrate to open telemetry (#21070) 2025-07-15 12:40:02 -07:00
minikube-bot dce184900f
Kicbase/ISO: Update docker from 28.0.4 to 28.3.2 (#21053)
* Kicbase/ISO: Update docker from 28.0.4 to 28.3.2

* Updating kicbase image to v0.0.47-1752142599-21053

* Updating ISO to v1.36.0-1752142514-21053
2025-07-14 14:03:14 -07:00
Medya Ghazizadeh 7d8d9741db
fix dirty commit version (#21062)
* fix release script detecting dirty commit

* add go-licenses to gitignore

* add more help text
2025-07-14 10:49:49 -07:00
Medya Ghazizadeh 0988cc3a72
add go.work to separate hack folder (#21061)
* add go work files since there hack mod uses root mod

* add toolchain

* change Makefile to run the updates using full path to use go.work file

* add comment make file and move generate license above

* add go-license to ignore to avoid making release commit dirty

* force hack module to use older tablewriter lib

* dont do gitignore
2025-07-13 17:41:59 -07:00
Medya Ghazizadeh 6d92b2208f
separate go mod for hack folder (#21060)
* separate go mod for hack folder and use go work

* remove dependecy on k8s.minikube inside hack

* remove gowork files
2025-07-13 14:37:20 -07:00
Cosmic Oppai 78989b99c2
Update common.ps1 (#20820) 2025-07-10 10:31:11 -07:00
Medya Ghazizadeh 4756f9c0aa
login docker (#21042) 2025-07-08 10:06:19 -07:00
Joaquim Rocha 49d6e371a4
CI: Auto update Headlamp image (#20372)
Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
2025-07-07 13:01:53 -07:00
Medya Ghazizadeh 8c6446f0c1
ci: login to docker during build process (#21027)
* login to docker during build process

* add readonly token for docker hub

* use stdin

* add quote

* try with -p

* remove one

* add comment
2025-07-03 13:42:20 -07:00
minikube-bot 4b06829b8b
Update go-github from v72.0.0 to v73.0.0 (#21000) 2025-06-30 10:55:33 -07:00
minikube-bot dbebd8768e
CI: Update gh from 2.74.1 to 2.74.2 (#20967) 2025-06-23 11:58:24 -07:00
minikube-bot 4bea142841
CI: Update gotestsum from v1.12.2 to v1.12.3 (#20975) 2025-06-23 11:57:49 -07:00
minikube-bot 16ff3bf929
CI: Update gh from 2.74.0 to 2.74.1 (#20937) 2025-06-17 10:56:36 -07:00
minikube-bot 4bca65a646
CI: Update gh from 2.73.0 to 2.74.0 (#20867) 2025-06-03 15:27:30 -07:00
Predrag Rogic 4da3cedc84
Fix KVM driver (tests) timeouts (#20852)
* Fix KVM driver tests timeouts

Rewrite KVM driver waiting logic for domain start, getting ip address
and shutting domain down. Add more config/state outputs to aid future
debugging.

Bump go/libvirt to v1.11002.0 and set the minimum memory required for
running all tests to 3GB to avoid some really weird system behaviour.

* revert reduction of timelimit for TestCert tests run

* set memory and debug output in TestNoKubernetes tests

* extend kvm waitForStaticIP timeout

* add console log to debug output

* Updating ISO to v1.36.0-1748823857-20852

---------

Co-authored-by: minikube-bot <minikube-bot@google.com>
2025-06-03 15:07:48 -07:00
minikube-bot 85a9ffb4ec
CI: Update gh from 2.72.0 to 2.73.0 (#20839) 2025-05-28 13:01:29 -07:00
Tian 3cf1e63e21
build: address all lint issues by v2 (#20804)
* fix QF1011: could omit type *os.File from declaration; it will be inferred from the right-hand side

* fix QF1012: Use fmt.Fprintf(x, ...) instead of x.Write(fmt.Sprintf(...))

* fix QF1001: could apply De Morgan's law

* fix QF1003: could use tagged switch

* fix weakCond: suspicious ; nil check may not be enough, check for len (gocritic)

* fix docStub: silencing go lint doc-comment warnings is unadvised

* fix builtinShadow: shadowing of predeclared identifier: error

* fix importShadow: shadow of imported package

* fix nestingReduce: invert if cond, replace body with , move old body after the statement

* useless-break: useless break in case clause (revive)

* Clear the redundant content in golangci.yaml file
2025-05-23 17:31:28 -07:00
Nir Soffer 56ed2662b0
vfkit: Minor docs, test, and help fixes (#20815)
* vfkit: Fix help text for --extra-disks

vfkit can use extra disks but we forgot to mention it in the help text.

* vfkit: Remove stale tap

vfkit in cfergeau/crc will no longer be updated now that it’s in the main repo.

* vfkit: Fix status in index

The vfkit driver is preferred now.
2025-05-21 20:30:26 -07:00
Victor Ubahakwe 4ebec48d8b
Prevent Unnecessary Version Bumps in `go.mod` During Go Version Updates (#20781)
* Prevent Unnecessary Version Bumps in `go.mod` During Go Version Updates

This PR addresses issue #20770, where the minikube automation (triggered by make `update-golang-version`) unnecessarily bumped minor or patch versions in `go.mod` when updating the Go version. Following Kubernetes' practice, which avoids such bumps in `go.mod`, this change ensures only the go directive is updated to the stable Go version.

**Changes:**
- Added `go.mod` to the schema map in `hack/update/golang_version/update_golang_version.go` with a regex (go 1\.\d+\.\d+) to update the go directive to {{.StableVersion}} (e.g., go 1.24.2).
- This ensures the automation updates only the go directive without modifying module dependencies, aligning with Kubernetes' `go.mod` behavior.

**Impact:**
- Running make `update-golang-version` now updates the go directive (e.g., from go 1.22.3 to go 1.24.2) without unintended dependency version bumps.
- Tested by setting go 1.22.3 in go.mod, running go mod tidy and make update-golang-version, and verifying only the go directive and toolchain changed.

fixes: #20773

* Pin `go.mod` to Major.Minor Go Version (e.g., `1.24.0`)

**Description**:
Fixes #20773 by updating the automation to pin the `go` directive in `go.mod` to the major.minor Go version (e.g., `1.24.0`) instead of the full version (e.g., `1.24.2`), aligning with Kubernetes’ `go.mod`. This prevents breaking users relying on minikube packages.

**Changes**:
- Modified `hack/update/golang_version/update_golang_version.go` to compute `MajorMinor` version (e.g., `1.24.0`) from `StableVersion`.
- Updated `schema` to set `go.mod`’s `go` directive to `{{.MajorMinor}}`.
- Tested by setting `go 1.23.4`, running `make update-golang-version`, and verifying `go 1.24.0` with no dependency bumps.

**Closes**: #20773

* Reverted all 66 files to upstream master except update_golang_version.go
2025-05-20 11:03:15 -07:00
minikube-bot 9171dbbc18
Kicbase/ISO: Update cni-plugins from v1.6.2 to v1.7.1 (#20771)
* Kicbase/ISO: Update cni-plugins from v1.6.2 to v1.7.1

* Updating kicbase image to v0.0.46-1747341282-20771

* Updating ISO to v1.35.0-1747341198-20771
2025-05-16 11:31:38 -07:00
zvdy 5c85286e3d
CI: Fix cni escaping (#20769)
* fix: correct regex for yaml and sh files

* fix: remove test and revert to normal main impl.
2025-05-15 13:28:00 -07:00
minikube-bot be7dd7c518
Kicbase/ISO: Update runc from v1.2.6 to v1.3.0 (#20764)
* Kicbase/ISO: Update runc from v1.2.6 to v1.3.0

* Updating kicbase image to v0.0.46-1747264594-20764

* Updating ISO to v1.35.0-1747264512-20764
2025-05-15 10:38:52 -07:00
zvdy 4fd7502da9
fix: reference missing files in schema (Closes #20752) (#20761)
* fix: reference missing files in schema (Closes #20752)

* fix: reference missing files in schema
2025-05-14 16:10:19 -07:00
minikube-bot a141f42521
Kicbase/ISO: Update cri-dockerd from v0.3.15 to v0.4.0 (#20747)
* Kicbase/ISO: Update cri-dockerd from v0.3.15 to v0.4.0

* Updating kicbase image to v0.0.46-1747166185-20747

* Updating ISO to v1.35.0-1747160120-20747
2025-05-14 14:49:05 -07:00
minikube-bot bc4a5b8276
Update go-github from v71.0.0 to v72.0.0 (#20729) 2025-05-13 10:08:46 -07:00
minikube-bot c8b44b65a4
CI: Update gotestsum from v1.12.1 to v1.12.2 (#20738) 2025-05-12 10:18:09 -07:00
minikube-bot 47f7a18efc
Kicbase: Bump ubuntu:jammy from 20250126 to 20250415.1 (#20718)
* Kicbase: Bump ubuntu:jammy from 20250126 to 20250415.1

* Updating kicbase image to v0.0.46-1746731792-20718
2025-05-09 11:38:19 -07:00
minikube-bot dd51a5f9a8
CI: Update gh from 2.71.2 to 2.72.0 (#20698) 2025-05-08 11:26:56 -07:00
minikube-bot 9797ec1b10
CI: Update gh from 2.70.0 to 2.71.2 (#20664) 2025-04-28 14:57:30 -04:00
minikube-bot 8d3946f8d4
CI: Update gh from 2.66.1 to 2.70.0 (#20420) 2025-04-24 11:52:39 -07:00
minikube-bot a4059331a0
Update go-github from v70.0.0 to v71.0.0 (#20618) 2025-04-15 13:28:27 -07:00
minikube-bot fe470c1679
Kicbase/ISO: Update runc from v1.2.5 to v1.2.6 (#20604)
* Kicbase/ISO: Update runc from v1.2.5 to v1.2.6

* Updating kicbase image to v0.0.46-1744107393-20604
2025-04-10 14:15:59 -07:00
minikube-bot 709f200e9b
Kicbase/ISO: Update docker from 28.0.1 to 28.0.4 (#20591)
* Kicbase/ISO: Update docker from 28.0.1 to 28.0.4

* Updating kicbase image to v0.0.46-1743675393-20591
2025-04-04 12:07:07 -07:00
minikube-bot 4d2cdae349
Update go-github from v69.2.0 to v70.0.0 (#20561) 2025-03-24 11:13:19 -07:00
minikube-bot 87be78cacf
CI: Update gotestsum from v1.12.0 to v1.12.1 (#20541) 2025-03-18 15:04:18 -07:00
minikube-bot 802ce44801
Kicbase/ISO: Update docker from 28.0.0 to 28.0.1 (#20523)
* Kicbase/ISO: Update docker from 28.0.0 to 28.0.1

* Updating kicbase image to v0.0.46-1741860993-20523
2025-03-13 16:46:47 -07:00
minikube-bot 7512311745
Update go from 1.23.4 to 1.24.0 (#20510)
* Update go from 1.23.4 to 1.24.0

* Updating kicbase image to v0.0.46-1741597657-20510
2025-03-10 10:37:40 -07:00
minikube-bot c551e9aeda
Kicbase/ISO: Update docker from 27.4.0 to 28.0.0 (#20436)
* Kicbase/ISO: Update docker from 27.4.0 to 28.0.0

* Updating kicbase image to v0.0.46-1740046583-20436
2025-02-20 14:41:42 -08:00
minikube-bot 15b614c7cd
Kicbase/ISO: Update runc from v1.2.3 to v1.2.5 (#20433)
* Kicbase/ISO: Update runc from v1.2.3 to v1.2.5

* Updating kicbase image to v0.0.46-1739873784-20433
2025-02-18 10:14:25 -08:00