Commit Graph

2099 Commits (master)

Author SHA1 Message Date
Medya Ghazizadeh 95d4cfe1a0
Refactor spinner library & hide sub steps after spinning (#21215)
* remove omitnew line

* add new option to hide after spin

* refactor to use new return hideAfterSpin

* add new line by default only when not spinining and delegate spinner newline to spinner code

* add new func for ouptputing with spinner and pass fdwriter directly to the spininer func

* fix unit test

* fix lint for krunkit

* add comment and context

* use different spinning progress bar for sub steps

* make func private

* making more spinning icons

* integration test dont expect sub steps to be visible

* fix unit test and comment why

* change sub step spining icon not to be a progressbar

* pass the filewriter to the spinner library for the spinning steps
2025-08-05 11:09:33 -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
Medya Ghazizadeh d4374c42b2
test: use alpine for gvsior image in testdata (#21059)
* use alpine for gvsior image in testdata

* remove dup copy leftover
2025-07-14 14:02:47 -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
Sri Panyam 7b97f424c7
New flag to allow option for passing a config file for addon configure command. (#20255)
* Addon configuration now takes an optional config file to load from
instead of forcing prompts

Fixes #20124

* Using a rarer value for default instead of changeme so it has less chance to interfere with other possible user defaults

* Fixing expected values of test cases

* making addonConfigFile private

* Keeping registry_creds configs together.

* Starting a typed AddonConfig struct so each addon con loads its
  configs in a typed way.
* Started configs for RegistryCreds using this convention and moved
  registry_creds config processing to its own file
  (configure_registry_creds.go)

* Making registry creds structs private and other PR feedback cleanups

* Changing default value back to 'changeme'

* Simplifying duplicate consts

* Adding missed comma

* lint fixes

* Generating docs

* Copyright for new file
2025-05-13 11:05:48 -07:00
Predrag Rogic c8a63fa11f
Fix waiting for all pods having specified labels to be Ready (#20315)
* Fix waiting for all kube-system pods having one of specified labels to be Ready

* Fix waiting for all kube-system pods having one of specified labels to be Ready

* Fix waiting for all kube-system pods having one of specified labels to be Ready
2025-04-28 14:58:02 -04:00
Medya Ghazizadeh cf3ab2afdf
Merge pull request #20331 from liangyuanpeng/cleanup_old_registry
Use 'registry.k8s.io' instead of 'gcr.io/google-containers'
2025-02-04 09:07:54 -08:00
錦南路之花 abdbc5b3a3 Apply suggestions from code review
Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com>
2025-01-28 11:42:51 -08:00
锦南路之花 3c42f1ce99 fix: fix incomplete cleanup in tunnel.json and zombie process in functional test 2025-01-28 11:42:51 -08:00
锦南路之花 1edaec55f4 test: allow running functional tests for different k8s versions 2025-01-28 11:42:51 -08:00
Lan Liang 0d214f4ff8 Use 'registry.k8s.io' instead of 'gcr.io/google-containers'
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2025-01-28 05:06:12 +00:00
Predrag Rogic ccf9e65833
remove deprecated and removed ServerSideApply feature gate (#20088) 2024-12-12 10:10:26 -08:00
cuiyourong 5fbef414cb chore: fix some function names in comment
Signed-off-by: cuiyourong <cuiyourong@gmail.com>
2024-12-07 00:45:04 +08:00
Steven Powell 412ec2a9b5
testing: Remove requesting full CPU for nginx test pod (#19802) 2024-10-17 11:57:06 -07:00
Steven Powell b578d678a1
testing: Fix GCP-Auth addon test showing as success or skipped (#19803) 2024-10-16 11:13:19 -07:00
fbyrne 50b5d8ee62 Add support for AMD GPU via --gpu=amd for docker linux amd64. 2024-10-11 21:36:06 +01:00
Steven Powell a220f0e4f0
testing: Add more addon test disable defers (#19744) 2024-10-09 11:26:27 -07:00
Steven Powell 746051d437
testing: Move bulk of GCP-Auth addon test into subtest (#19716) 2024-10-02 10:29:30 -07:00
Steven Powell b623c21174
testing: Add defer to disable addon to start of each addon test (#19715)
* testing: Add defer to disable addon to start of each addon test

* only start storage-provisioner-rancher for non-none drivers
2024-10-01 10:43:23 -07:00
Predrag Rogic 77c7b42d9a
fix cluster status check in TestMultiControlPlane 2024-09-28 21:58:42 +01:00
Tyler Auerbeck f4ded199f0
remove tiller addon (#19636)
Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>
Co-authored-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>
2024-09-19 11:21:24 -07:00
錦南路之花 c38897dc95
unified minikube cluster status query (#18998)
* feat: unified minikube cluster status query

* Update pkg/minikube/cluster/status.go

Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com>

* Update pkg/minikube/cluster/status.go

Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com>

* Update pkg/minikube/cluster/status.go

Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com>

---------

Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com>
2024-09-18 11:40:06 -07:00
Steven Powell d8c94a6ad6 fix new lint errors 2024-08-14 10:31:53 -07:00
锦南路之花 ab81991ff6 fix: fix empty tarball when generating image save 2024-08-07 14:38:22 -07:00
Steven Powell 52b683a16a testing: Fix volcano addon failing other addons 2024-07-25 10:10:03 -07:00
Steven Powell a90d01cfe6 fix checking for replica controller 2024-07-16 18:02:49 -05:00
Medya Gh 02a76e0c47 add docker.io to image 2024-07-11 14:34:39 -07:00
Medya Gh e2fb616836 fix tag 2024-07-11 14:34:39 -07:00
Medya Gh 041c86d464 use docker hub image 2024-07-11 14:34:39 -07:00
Medya Gh dbcd1a974e fix image tag 2024-07-11 14:34:39 -07:00
Medya Gh ca6443540a add warning when loading image with wrong arch 2024-07-11 14:34:39 -07:00
Steven Powell c1f18cfaa4 CI: Use multi-arch example app image 2024-07-09 10:16:38 -07:00
锦南路之花 1a176c398e fix: fix failed test when updating volcano 2024-06-16 18:33:21 +02:00
锦南路之花 3e10cfc387 addon: add auto updater for volcano addon 2024-05-22 11:44:06 -07:00
锦南路之花 d67dfb3d0a addon: add addon for volcano 2024-05-22 11:44:06 -07:00
Predrag Rogic d6c612fcba
improve kube-vip cp lb auto-enable 2024-03-13 01:48:48 +00:00
Medya Ghazizadeh 8ec4c89456
Merge pull request #17909 from prezha/ha
Support multi-control plane - HA clusters
2024-03-06 12:02:51 -08:00
Predrag Rogic 8c4e1a0f8b
workaround for cp bug 63245 and rename TestHA to TestMutliControlPlane 2024-03-05 01:16:08 +00:00
Predrag Rogic 6f4d0f1f3b
Merge branch 'kubernetes:master' into ha 2024-03-03 18:57:51 +00:00
Steven Powell 88f327710c testing: Update oldest supported K8s version to v1.20 2024-02-28 15:46:47 -08:00
Predrag Rogic 54c6e698a7
add "(multi-control plane)" after each reference to "ha" 2024-02-25 20:00:08 +00:00
Steven Powell 4d32230e3e fix lint errors 2024-02-12 17:32:14 -08:00
Predrag Rogic 86e00e66d7
Merge branch 'kubernetes:master' into ha 2024-01-31 01:38:28 +00:00
Steven Powell fc27285b44 add success message if log file path provided 2024-01-19 16:26:24 -08:00
Predrag Rogic 937d6f6ea9
Merge branch 'kubernetes:master' into ha 2024-01-18 07:24:10 +00:00
Predrag Rogic 6f580e8a51
fix PingHostFromPods integration test by adding NET_RAW capabilities 2024-01-16 00:24:06 +00:00
Predrag Rogic 6b426e5385
fix PingHostFrom2Pods integration test by adding NET_RAW capabilities 2024-01-16 00:14:04 +00:00
Predrag Rogic a26ebbf18a
Merge branch 'kubernetes:master' into ha 2024-01-13 11:55:23 +00:00
Predrag Rogic 838ea0c7fb
Merge pull request #17944 from prezha/fix-TestRunningBinaryUpgrade
bump legacyVersion to v1.26.0 from 2022-06-23
2024-01-13 11:54:56 +00:00
Predrag Rogic 5d3de2a55c
bump legacyVersion to v1.26.0 from 2022-06-23 2024-01-12 22:50:01 +00:00