Repository: kubernetes/minikube
Pull request #20363 (2025-02-05 01:03:50)

Bump kubernetes packages to v0.32.1
Closes https://github.com/kubernetes/minikube/pull/20298

Resolves issues we saw in https://github.com/kubernetes/minikube/pull/20183 and that pr had to be reverted (https://github.com/kubernetes/minikube/pull/20229)

this pr bumps `k8s.io/api`, `k8s.io/apimachinery` and `k8s.io/client-go`  packages to `v0.32.1` and also fixes the tests failures accordingly in pkg/minikube/service/service_test.go and pkg/minikube/tunnel/loadbalancer_patcher_test.go

background: in v0.32, some mock test "helper" functions we used are un-exported, so we have to initialize manually - example for fake secrets: https://github.com/kubernetes/client-go/blob/v0.31.0/kubernetes/typed/core/v1/fake/fake_secret.go vs https://github.com/kubernetes/client-go/blob/v0.32.1/kubernetes/typed/core/v1/fake/fake_secret.go

## after

<details>

<summary>service test</summary>

` $ go test k8s.io/minikube/pkg/minikube/service -v`

```
=== RUN   TestGetServiceListFromServicesByLabel
--- PASS: TestGetServiceListFromServicesByLabel (0.00s)
=== RUN   TestPrintURLsForService
=== RUN   TestPrintURLsForService/should_get_all_node_ports
=== PAUSE TestPrintURLsForService/should_get_all_node_ports
=== RUN   TestPrintURLsForService/should_get_all_node_ports_with_arbitrary_format
=== PAUSE TestPrintURLsForService/should_get_all_node_ports_with_arbitrary_format
=== RUN   TestPrintURLsForService/should_get_the_name_of_all_target_ports_with_arbitrary_format
=== PAUSE TestPrintURLsForService/should_get_the_name_of_all_target_ports_with_arbitrary_format
=== RUN   TestPrintURLsForService/empty_slice_for_no_node_ports
=== PAUSE TestPrintURLsForService/empty_slice_for_no_node_ports
=== RUN   TestPrintURLsForService/throw_error_without_template
=== PAUSE TestPrintURLsForService/throw_error_without_template
=== CONT  TestPrintURLsForService/should_get_all_node_ports
=== CONT  TestPrintURLsForService/empty_slice_for_no_node_ports
=== CONT  TestPrintURLsForService/throw_error_without_template
=== CONT  TestPrintURLsForService/should_get_the_name_of_all_target_ports_with_arbitrary_format
=== CONT  TestPrintURLsForService/should_get_all_node_ports_with_arbitrary_format
--- PASS: TestPrintURLsForService (0.00s)
    --- PASS: TestPrintURLsForService/empty_slice_for_no_node_ports (0.00s)
    --- PASS: TestPrintURLsForService/should_get_all_node_ports (0.00s)
    --- PASS: TestPrintURLsForService/throw_error_without_template (0.00s)
    --- PASS: TestPrintURLsForService/should_get_all_node_ports_with_arbitrary_format (0.00s)
    --- PASS: TestPrintURLsForService/should_get_the_name_of_all_target_ports_with_arbitrary_format (0.00s)
=== RUN   TestOptionallyHttpsFormattedUrlString
=== RUN   TestOptionallyHttpsFormattedUrlString/no_https_for_http_schemed_with_no_https_option
=== PAUSE TestOptionallyHttpsFormattedUrlString/no_https_for_http_schemed_with_no_https_option
=== RUN   TestOptionallyHttpsFormattedUrlString/no_https_for_non-http_schemed_with_no_https_option
=== PAUSE TestOptionallyHttpsFormattedUrlString/no_https_for_non-http_schemed_with_no_https_option
=== RUN   TestOptionallyHttpsFormattedUrlString/https_for_http_schemed_with_https_option
=== PAUSE TestOptionallyHttpsFormattedUrlString/https_for_http_schemed_with_https_option
=== RUN   TestOptionallyHttpsFormattedUrlString/no_https_for_non-http_schemed_with_https_option_and_http_substring
=== PAUSE TestOptionallyHttpsFormattedUrlString/no_https_for_non-http_schemed_with_https_option_and_http_substring
=== CONT  TestOptionallyHttpsFormattedUrlString/no_https_for_http_schemed_with_no_https_option
=== CONT  TestOptionallyHttpsFormattedUrlString/no_https_for_non-http_schemed_with_https_option_and_http_substring
=== CONT  TestOptionallyHttpsFormattedUrlString/https_for_http_schemed_with_https_option
=== CONT  TestOptionallyHttpsFormattedUrlString/no_https_for_non-http_schemed_with_no_https_option
--- PASS: TestOptionallyHttpsFormattedUrlString (0.00s)
    --- PASS: TestOptionallyHttpsFormattedUrlString/no_https_for_http_schemed_with_no_https_option (0.00s)
    --- PASS: TestOptionallyHttpsFormattedUrlString/no_https_for_non-http_schemed_with_https_option_and_http_substring (0.00s)
    --- PASS: TestOptionallyHttpsFormattedUrlString/https_for_http_schemed_with_https_option (0.00s)
    --- PASS: TestOptionallyHttpsFormattedUrlString/no_https_for_non-http_schemed_with_no_https_option (0.00s)
=== RUN   TestGetServiceURLs
=== RUN   TestGetServiceURLs/no_host
I0205 00:45:13.890993  975337 host.go:66] Checking if "minikube" exists ...
=== RUN   TestGetServiceURLs/correctly_return_serviceURLs
I0205 00:45:13.891235  975337 host.go:66] Checking if "minikube" exists ...
I0205 00:45:13.891241  975337 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0002500b0 DriverName: HostOptions:<nil> Name:minikube RawDriver:[]} - <nil>
I0205 00:45:13.891264  975337 driver_mock.go:47] MockDriver.GetIP
--- PASS: TestGetServiceURLs (0.00s)
    --- PASS: TestGetServiceURLs/no_host (0.00s)
    --- PASS: TestGetServiceURLs/correctly_return_serviceURLs (0.00s)
=== RUN   TestGetServiceURLsForService
=== RUN   TestGetServiceURLsForService/no_host
I0205 00:45:13.891318  975337 host.go:66] Checking if "minikube" exists ...
=== RUN   TestGetServiceURLsForService/correctly_return_serviceURLs
I0205 00:45:13.891335  975337 host.go:66] Checking if "minikube" exists ...
I0205 00:45:13.891338  975337 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc000829290 DriverName: HostOptions:<nil> Name:minikube RawDriver:[]} - <nil>
I0205 00:45:13.891348  975337 driver_mock.go:47] MockDriver.GetIP
=== RUN   TestGetServiceURLsForService/correctly_return_empty_serviceURLs
I0205 00:45:13.891367  975337 host.go:66] Checking if "minikube" exists ...
I0205 00:45:13.891390  975337 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc000829290 DriverName: HostOptions:<nil> Name:minikube RawDriver:[]} - <nil>
I0205 00:45:13.891399  975337 driver_mock.go:47] MockDriver.GetIP
--- PASS: TestGetServiceURLsForService (0.00s)
    --- PASS: TestGetServiceURLsForService/no_host (0.00s)
    --- PASS: TestGetServiceURLsForService/correctly_return_serviceURLs (0.00s)
    --- PASS: TestGetServiceURLsForService/correctly_return_empty_serviceURLs (0.00s)
=== RUN   TestGetCoreClient
=== RUN   TestGetCoreClient/ok
=== RUN   TestGetCoreClient/empty_config
=== RUN   TestGetCoreClient/broken_config
--- PASS: TestGetCoreClient (0.00s)
    --- PASS: TestGetCoreClient/ok (0.00s)
    --- PASS: TestGetCoreClient/empty_config (0.00s)
    --- PASS: TestGetCoreClient/broken_config (0.00s)
=== RUN   TestPrintServiceList
--- PASS: TestPrintServiceList (0.00s)
=== RUN   TestGetServiceListByLabel
=== RUN   TestGetServiceListByLabel/ok
=== RUN   TestGetServiceListByLabel/failed_get_client
=== RUN   TestGetServiceListByLabel/no_matches
--- PASS: TestGetServiceListByLabel (0.00s)
    --- PASS: TestGetServiceListByLabel/ok (0.00s)
    --- PASS: TestGetServiceListByLabel/failed_get_client (0.00s)
    --- PASS: TestGetServiceListByLabel/no_matches (0.00s)
=== RUN   TestCheckService
=== RUN   TestCheckService/ok
I0205 00:45:13.892292  975337 service.go:214] Found service: &Service{ObjectMeta:{mock-dashboard  default    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[mock:mock] map[] [] [] []},Spec:ServiceSpec{Ports:[]ServicePort{ServicePort{Name:port1,Protocol:,Port:11111,TargetPort:{0 11111 },NodePort:1111,AppProtocol:nil,},ServicePort{Name:port2,Protocol:,Port:22222,TargetPort:{0 22222 },NodePort:2222,AppProtocol:nil,},},Selector:map[string]string{},ClusterIP:,Type:,ExternalIPs:[],SessionAffinity:,LoadBalancerIP:,LoadBalancerSourceRanges:[],ExternalName:,ExternalTrafficPolicy:,HealthCheckNodePort:0,PublishNotReadyAddresses:false,SessionAffinityConfig:nil,IPFamilyPolicy:nil,ClusterIPs:[],IPFamilies:[],AllocateLoadBalancerNodePorts:nil,LoadBalancerClass:nil,InternalTrafficPolicy:nil,TrafficDistribution:nil,},Status:ServiceStatus{LoadBalancer:LoadBalancerStatus{Ingress:[]LoadBalancerIngress{},},Conditions:[]Condition{},},}
=== RUN   TestCheckService/failed_get_client
=== RUN   TestCheckService/svc_no_ports
--- PASS: TestCheckService (0.00s)
    --- PASS: TestCheckService/ok (0.00s)
    --- PASS: TestCheckService/failed_get_client (0.00s)
    --- PASS: TestCheckService/svc_no_ports (0.00s)
=== RUN   TestDeleteSecret
=== RUN   TestDeleteSecret/ok
=== RUN   TestDeleteSecret/failed_get_client
--- PASS: TestDeleteSecret (0.00s)
    --- PASS: TestDeleteSecret/ok (0.00s)
    --- PASS: TestDeleteSecret/failed_get_client (0.00s)
=== RUN   TestCreateSecret
=== RUN   TestCreateSecret/ok
=== RUN   TestCreateSecret/failed_get_client
--- PASS: TestCreateSecret (0.00s)
    --- PASS: TestCreateSecret/ok (0.00s)
    --- PASS: TestCreateSecret/failed_get_client (0.00s)
=== RUN   TestWaitAndMaybeOpenService
=== RUN   TestWaitAndMaybeOpenService/correctly_return_serviceURLs,_https,_no_url_mode
I0205 00:45:13.892519  975337 service.go:214] Found service: &Service{ObjectMeta:{mock-dashboard  default    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[mock:mock] map[] [] [] []},Spec:ServiceSpec{Ports:[]ServicePort{ServicePort{Name:port1,Protocol:,Port:11111,TargetPort:{0 11111 },NodePort:1111,AppProtocol:nil,},ServicePort{Name:port2,Protocol:,Port:22222,TargetPort:{0 22222 },NodePort:2222,AppProtocol:nil,},},Selector:map[string]string{},ClusterIP:,Type:,ExternalIPs:[],SessionAffinity:,LoadBalancerIP:,LoadBalancerSourceRanges:[],ExternalName:,ExternalTrafficPolicy:,HealthCheckNodePort:0,PublishNotReadyAddresses:false,SessionAffinityConfig:nil,IPFamilyPolicy:nil,ClusterIPs:[],IPFamilies:[],AllocateLoadBalancerNodePorts:nil,LoadBalancerClass:nil,InternalTrafficPolicy:nil,TrafficDistribution:nil,},Status:ServiceStatus{LoadBalancer:LoadBalancerStatus{Ingress:[]LoadBalancerIngress{},},Conditions:[]Condition{},},}
I0205 00:45:13.892554  975337 host.go:66] Checking if "minikube" exists ...
I0205 00:45:13.892558  975337 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0008294a0 DriverName: HostOptions:<nil> Name:minikube RawDriver:[]} - <nil>
I0205 00:45:13.892584  975337 driver_mock.go:47] MockDriver.GetIP
|-----------|----------------|-------------|-----------------------|
| NAMESPACE |      NAME      | TARGET PORT |          URL          |
|-----------|----------------|-------------|-----------------------|
| default   | mock-dashboard | port1/11111 | http://127.0.0.1:1111 |
|           |                | port2/22222 | http://127.0.0.1:2222 |
|-----------|----------------|-------------|-----------------------|
=== RUN   TestWaitAndMaybeOpenService/correctly_return_serviceURLs,_no_https,_no_url_mode
I0205 00:45:13.892776  975337 service.go:214] Found service: &Service{ObjectMeta:{mock-dashboard  default    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[mock:mock] map[] [] [] []},Spec:ServiceSpec{Ports:[]ServicePort{ServicePort{Name:port1,Protocol:,Port:11111,TargetPort:{0 11111 },NodePort:1111,AppProtocol:nil,},ServicePort{Name:port2,Protocol:,Port:22222,TargetPort:{0 22222 },NodePort:2222,AppProtocol:nil,},},Selector:map[string]string{},ClusterIP:,Type:,ExternalIPs:[],SessionAffinity:,LoadBalancerIP:,LoadBalancerSourceRanges:[],ExternalName:,ExternalTrafficPolicy:,HealthCheckNodePort:0,PublishNotReadyAddresses:false,SessionAffinityConfig:nil,IPFamilyPolicy:nil,ClusterIPs:[],IPFamilies:[],AllocateLoadBalancerNodePorts:nil,LoadBalancerClass:nil,InternalTrafficPolicy:nil,TrafficDistribution:nil,},Status:ServiceStatus{LoadBalancer:LoadBalancerStatus{Ingress:[]LoadBalancerIngress{},},Conditions:[]Condition{},},}
I0205 00:45:13.892803  975337 host.go:66] Checking if "minikube" exists ...
I0205 00:45:13.892806  975337 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0008294a0 DriverName: HostOptions:<nil> Name:minikube RawDriver:[]} - <nil>
I0205 00:45:13.892810  975337 driver_mock.go:47] MockDriver.GetIP
|-----------|----------------|-------------|-----------------------|
| NAMESPACE |      NAME      | TARGET PORT |          URL          |
|-----------|----------------|-------------|-----------------------|
| default   | mock-dashboard | port1/11111 | http://127.0.0.1:1111 |
|           |                | port2/22222 | http://127.0.0.1:2222 |
|-----------|----------------|-------------|-----------------------|
=== RUN   TestWaitAndMaybeOpenService/correctly_return_serviceURLs,_no_https,_url_mode
I0205 00:45:13.892946  975337 service.go:214] Found service: &Service{ObjectMeta:{mock-dashboard  default    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[mock:mock] map[] [] [] []},Spec:ServiceSpec{Ports:[]ServicePort{ServicePort{Name:port1,Protocol:,Port:11111,TargetPort:{0 11111 },NodePort:1111,AppProtocol:nil,},ServicePort{Name:port2,Protocol:,Port:22222,TargetPort:{0 22222 },NodePort:2222,AppProtocol:nil,},},Selector:map[string]string{},ClusterIP:,Type:,ExternalIPs:[],SessionAffinity:,LoadBalancerIP:,LoadBalancerSourceRanges:[],ExternalName:,ExternalTrafficPolicy:,HealthCheckNodePort:0,PublishNotReadyAddresses:false,SessionAffinityConfig:nil,IPFamilyPolicy:nil,ClusterIPs:[],IPFamilies:[],AllocateLoadBalancerNodePorts:nil,LoadBalancerClass:nil,InternalTrafficPolicy:nil,TrafficDistribution:nil,},Status:ServiceStatus{LoadBalancer:LoadBalancerStatus{Ingress:[]LoadBalancerIngress{},},Conditions:[]Condition{},},}
I0205 00:45:13.892970  975337 host.go:66] Checking if "minikube" exists ...
I0205 00:45:13.892973  975337 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0008294a0 DriverName: HostOptions:<nil> Name:minikube RawDriver:[]} - <nil>
I0205 00:45:13.892977  975337 driver_mock.go:47] MockDriver.GetIP
=== RUN   TestWaitAndMaybeOpenService/correctly_return_serviceURLs,_https,_url_mode
I0205 00:45:13.893001  975337 service.go:214] Found service: &Service{ObjectMeta:{mock-dashboard  default    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[mock:mock] map[] [] [] []},Spec:ServiceSpec{Ports:[]ServicePort{ServicePort{Name:port1,Protocol:,Port:11111,TargetPort:{0 11111 },NodePort:1111,AppProtocol:nil,},ServicePort{Name:port2,Protocol:,Port:22222,TargetPort:{0 22222 },NodePort:2222,AppProtocol:nil,},},Selector:map[string]string{},ClusterIP:,Type:,ExternalIPs:[],SessionAffinity:,LoadBalancerIP:,LoadBalancerSourceRanges:[],ExternalName:,ExternalTrafficPolicy:,HealthCheckNodePort:0,PublishNotReadyAddresses:false,SessionAffinityConfig:nil,IPFamilyPolicy:nil,ClusterIPs:[],IPFamilies:[],AllocateLoadBalancerNodePorts:nil,LoadBalancerClass:nil,InternalTrafficPolicy:nil,TrafficDistribution:nil,},Status:ServiceStatus{LoadBalancer:LoadBalancerStatus{Ingress:[]LoadBalancerIngress{},},Conditions:[]Condition{},},}
I0205 00:45:13.893024  975337 host.go:66] Checking if "minikube" exists ...
I0205 00:45:13.893027  975337 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0008294a0 DriverName: HostOptions:<nil> Name:minikube RawDriver:[]} - <nil>
I0205 00:45:13.893031  975337 driver_mock.go:47] MockDriver.GetIP
=== RUN   TestWaitAndMaybeOpenService/correctly_return_serviceURLs,_http,_url_mode
I0205 00:45:13.893049  975337 service.go:214] Found service: &Service{ObjectMeta:{mock-dashboard  default    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[mock:mock] map[] [] [] []},Spec:ServiceSpec{Ports:[]ServicePort{ServicePort{Name:port1,Protocol:,Port:11111,TargetPort:{0 11111 },NodePort:1111,AppProtocol:nil,},ServicePort{Name:port2,Protocol:,Port:22222,TargetPort:{0 22222 },NodePort:2222,AppProtocol:nil,},},Selector:map[string]string{},ClusterIP:,Type:,ExternalIPs:[],SessionAffinity:,LoadBalancerIP:,LoadBalancerSourceRanges:[],ExternalName:,ExternalTrafficPolicy:,HealthCheckNodePort:0,PublishNotReadyAddresses:false,SessionAffinityConfig:nil,IPFamilyPolicy:nil,ClusterIPs:[],IPFamilies:[],AllocateLoadBalancerNodePorts:nil,LoadBalancerClass:nil,InternalTrafficPolicy:nil,TrafficDistribution:nil,},Status:ServiceStatus{LoadBalancer:LoadBalancerStatus{Ingress:[]LoadBalancerIngress{},},Conditions:[]Condition{},},}
I0205 00:45:13.893071  975337 host.go:66] Checking if "minikube" exists ...
I0205 00:45:13.893074  975337 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0008294a0 DriverName: HostOptions:<nil> Name:minikube RawDriver:[]} - <nil>
I0205 00:45:13.893077  975337 driver_mock.go:47] MockDriver.GetIP
=== RUN   TestWaitAndMaybeOpenService/correctly_return_empty_serviceURLs
I0205 00:45:13.893133  975337 retry.go:31] will retry after 1.169222739s: default:mock-dashboard-no-ports has no ports
I0205 00:45:15.062591  975337 retry.go:31] will retry after 1.960306877s: default:mock-dashboard-no-ports has no ports
=== RUN   TestWaitAndMaybeOpenService/correctly_return_serviceURLs_for_a_delayed_service
I0205 00:45:17.023303  975337 service.go:214] Found service: &Service{ObjectMeta:{mock-dashboard-delayed  default    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[mock:mock] map[] [] [] []},Spec:ServiceSpec{Ports:[]ServicePort{ServicePort{Name:port1,Protocol:,Port:11111,TargetPort:{0 11111 },NodePort:1111,AppProtocol:nil,},},Selector:map[string]string{},ClusterIP:,Type:,ExternalIPs:[],SessionAffinity:,LoadBalancerIP:,LoadBalancerSourceRanges:[],ExternalName:,ExternalTrafficPolicy:,HealthCheckNodePort:0,PublishNotReadyAddresses:false,SessionAffinityConfig:nil,IPFamilyPolicy:nil,ClusterIPs:[],IPFamilies:[],AllocateLoadBalancerNodePorts:nil,LoadBalancerClass:nil,InternalTrafficPolicy:nil,TrafficDistribution:nil,},Status:ServiceStatus{LoadBalancer:LoadBalancerStatus{Ingress:[]LoadBalancerIngress{},},Conditions:[]Condition{},},}
I0205 00:45:17.023431  975337 host.go:66] Checking if "minikube" exists ...
I0205 00:45:17.023437  975337 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0008294a0 DriverName: HostOptions:<nil> Name:minikube RawDriver:[]} - <nil>
I0205 00:45:17.023461  975337 driver_mock.go:47] MockDriver.GetIP
|-----------|------------------------|-------------|-----------------------|
| NAMESPACE |          NAME          | TARGET PORT |          URL          |
|-----------|------------------------|-------------|-----------------------|
| default   | mock-dashboard-delayed | port1/11111 | http://127.0.0.1:1111 |
|-----------|------------------------|-------------|-----------------------|
--- PASS: TestWaitAndMaybeOpenService (3.13s)
    --- PASS: TestWaitAndMaybeOpenService/correctly_return_serviceURLs,_https,_no_url_mode (0.00s)
    --- PASS: TestWaitAndMaybeOpenService/correctly_return_serviceURLs,_no_https,_no_url_mode (0.00s)
    --- PASS: TestWaitAndMaybeOpenService/correctly_return_serviceURLs,_no_https,_url_mode (0.00s)
    --- PASS: TestWaitAndMaybeOpenService/correctly_return_serviceURLs,_https,_url_mode (0.00s)
    --- PASS: TestWaitAndMaybeOpenService/correctly_return_serviceURLs,_http,_url_mode (0.00s)
    --- PASS: TestWaitAndMaybeOpenService/correctly_return_empty_serviceURLs (3.13s)
    --- PASS: TestWaitAndMaybeOpenService/correctly_return_serviceURLs_for_a_delayed_service (0.00s)
=== RUN   TestWaitAndMaybeOpenServiceForNotDefaultNamspace
=== RUN   TestWaitAndMaybeOpenServiceForNotDefaultNamspace/correctly_return_empty_serviceURLs
I0205 00:45:17.023809  975337 retry.go:31] will retry after 864.025726ms: default:non-namespace-dashboard-no-ports has no ports
--- PASS: TestWaitAndMaybeOpenServiceForNotDefaultNamspace (0.87s)
    --- PASS: TestWaitAndMaybeOpenServiceForNotDefaultNamspace/correctly_return_empty_serviceURLs (0.87s)
PASS
ok  	k8s.io/minikube/pkg/minikube/service	4.021s
```

</details>

<details>

<summary>tunnel test</summary>

` $ go test k8s.io/minikube/pkg/minikube/tunnel -v`

```
=== RUN   TestAPIError
I0205 00:45:28.216244  976289 host.go:66] Checking if "nonexistentmachine" exists ...
--- PASS: TestAPIError (0.00s)
=== RUN   TestMinikubeCheckReturnsHostInformation
I0205 00:45:28.216361  976289 host.go:66] Checking if "testmachine" exists ...
I0205 00:45:28.216364  976289 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0004c9130 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
I0205 00:45:28.216417  976289 driver_mock.go:47] MockDriver.GetState called from /home/prezha/dev/Kubernetes/minikube/github.com/prezha/minikube/pkg/minikube/tunnel/cluster_inspector.go#62: returning "Running"
I0205 00:45:28.216421  976289 driver_mock.go:47] MockDriver.GetIP
--- PASS: TestMinikubeCheckReturnsHostInformation (0.00s)
=== RUN   TestUnparseableCIDR
I0205 00:45:28.216462  976289 driver_mock.go:47] MockDriver.GetIP
--- PASS: TestUnparseableCIDR (0.00s)
=== RUN   TestRouteIPDetection
I0205 00:45:28.216480  976289 driver_mock.go:47] MockDriver.GetIP
--- PASS: TestRouteIPDetection (0.00s)
=== RUN   TestEmptyListOfServicesDoesNothing
--- PASS: TestEmptyListOfServicesDoesNothing (0.00s)
=== RUN   TestServicesWithNoLoadbalancerType
--- PASS: TestServicesWithNoLoadbalancerType (0.00s)
=== RUN   TestServicesWithLoadbalancerType
I0205 00:45:28.216571  976289 loadbalancer_patcher.go:80] svc1-up-to-date is type LoadBalancer.
I0205 00:45:28.216574  976289 loadbalancer_patcher.go:80] svc2-out-of-date is type LoadBalancer.
I0205 00:45:28.216581  976289 loadbalancer_patcher.go:122] Patched svc2-out-of-date with IP 10.96.0.4
I0205 00:45:28.216583  976289 loadbalancer_patcher.go:80] svc3-empty-ingress is type LoadBalancer.
I0205 00:45:28.216586  976289 loadbalancer_patcher.go:122] Patched svc3-empty-ingress with IP 10.96.0.2
--- PASS: TestServicesWithLoadbalancerType (0.00s)
=== RUN   TestCleanupPatchedIPs
I0205 00:45:28.216631  976289 loadbalancer_patcher.go:80] svc1-up-to-date is type LoadBalancer.
I0205 00:45:28.216640  976289 loadbalancer_patcher.go:145] Removed load balancer ingress from svc1-up-to-date.
I0205 00:45:28.216643  976289 loadbalancer_patcher.go:80] svc2-out-of-date is type LoadBalancer.
I0205 00:45:28.216645  976289 loadbalancer_patcher.go:145] Removed load balancer ingress from svc2-out-of-date.
I0205 00:45:28.216647  976289 loadbalancer_patcher.go:80] svc3-empty-ingress is type LoadBalancer.
--- PASS: TestCleanupPatchedIPs (0.00s)
=== RUN   TestPersistentRegistryWithNoKey
--- PASS: TestPersistentRegistryWithNoKey (0.00s)
=== RUN   TestPersistentRegistryNullableMetadata
--- PASS: TestPersistentRegistryNullableMetadata (0.00s)
=== RUN   TestListOnEmptyRegistry
--- PASS: TestListOnEmptyRegistry (0.00s)
=== RUN   TestRemoveOnEmptyRegistry
--- PASS: TestRemoveOnEmptyRegistry (0.00s)
=== RUN   TestRegisterOnEmptyRegistry
--- PASS: TestRegisterOnEmptyRegistry (0.00s)
=== RUN   TestRemoveOnNonExistentTunnel
--- PASS: TestRemoveOnNonExistentTunnel (0.00s)
=== RUN   TestListAfterRegister
--- PASS: TestListAfterRegister (0.00s)
=== RUN   TestRegisterRemoveList
--- PASS: TestRegisterRemoveList (0.00s)
=== RUN   TestDuplicateRouteError
--- PASS: TestDuplicateRouteError (0.00s)
=== RUN   TestTunnelTakeoverFromNonRunningProcess
--- PASS: TestTunnelTakeoverFromNonRunningProcess (0.00s)
=== RUN   TestReporter
=== RUN   TestReporter/simple
=== RUN   TestReporter/errors
--- PASS: TestReporter (0.00s)
    --- PASS: TestReporter/simple (0.00s)
    --- PASS: TestReporter/errors (0.00s)
=== RUN   TestRoutingTable
=== RUN   TestRoutingTable/doesn't_exist,_no_complication
=== RUN   TestRoutingTable/doesn't_exist,_and_has_overlap_and_a_conflict
=== RUN   TestRoutingTable/exists,_and_has_overlap_and_no_conflict
--- PASS: TestRoutingTable (0.00s)
    --- PASS: TestRoutingTable/doesn't_exist,_no_complication (0.00s)
    --- PASS: TestRoutingTable/doesn't_exist,_and_has_overlap_and_a_conflict (0.00s)
    --- PASS: TestRoutingTable/exists,_and_has_overlap_and_no_conflict (0.00s)
=== RUN   TestTunnelManagerEventHandling
=== RUN   TestTunnelManagerEventHandling/tunnel_quits_on_stopped_minikube
I0205 00:45:28.218010  976289 tunnel_manager_test.go:45] waiting for tunnel to be ready.
I0205 00:45:28.218016  976289 tunnel_manager_test.go:47] check!
I0205 00:45:28.218018  976289 tunnel_manager_test.go:49] check done.
I0205 00:45:28.218028  976289 tunnel_manager.go:116] minikube status: Stopped, cleaning up and quitting...
I0205 00:45:28.218035  976289 tunnel_manager_test.go:52] it's done, yay!
=== RUN   TestTunnelManagerEventHandling/tunnel_quits_on_ctrlc_before_doing_a_check
=== RUN   TestTunnelManagerEventHandling/tunnel_always_quits_when_ctrl_c_is_pressed
--- PASS: TestTunnelManagerEventHandling (0.36s)
    --- PASS: TestTunnelManagerEventHandling/tunnel_quits_on_stopped_minikube (0.00s)
    --- PASS: TestTunnelManagerEventHandling/tunnel_quits_on_ctrlc_before_doing_a_check (0.00s)
    --- PASS: TestTunnelManagerEventHandling/tunnel_always_quits_when_ctrl_c_is_pressed (0.36s)
=== RUN   TestTunnelManagerDelayAndContext
I0205 00:45:28.575263  976289 tunnel_manager.go:71] Setting up tunnel...
I0205 00:45:28.575272  976289 tunnel_manager.go:81] Started minikube tunnel.
--- PASS: TestTunnelManagerDelayAndContext (1.10s)
=== RUN   TestTunnelManagerCleanup
I0205 00:45:29.675944  976289 tunnel_manager.go:138] ID { Route: 5.0.0.0/9 -> 1.2.3.4, machineName: minikube, Pid: 976289 } is running: true
I0205 00:45:29.675955  976289 tunnel_manager.go:138] ID { Route: 200.0.0.0/9 -> 100.2.3.4, machineName: minikube, Pid: 976289 } is running: true
I0205 00:45:29.675979  976289 tunnel_manager.go:138] ID { Route: 10.0.0.0/9 -> 200.2.3.4, machineName: minikube, Pid: 12341234 } is running: false
I0205 00:45:29.676056  976289 tunnel_manager.go:138] ID { Route: 20.0.0.0/9 -> 250.2.3.4, machineName: minikube, Pid: 12341234 } is running: false
--- PASS: TestTunnelManagerCleanup (0.00s)
=== RUN   TestTunnel
=== RUN   TestTunnel/simple_stopped
I0205 00:45:29.676240  976289 host.go:66] Checking if "testmachine" exists ...
I0205 00:45:29.676257  976289 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0004c9130 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
I0205 00:45:29.676283  976289 driver_mock.go:47] MockDriver.GetState called from /home/prezha/dev/Kubernetes/minikube/github.com/prezha/minikube/pkg/minikube/tunnel/cluster_inspector.go#62: returning "Stopped"
I0205 00:45:29.676286  976289 driver_mock.go:47] MockDriver.GetIP
I0205 00:45:29.676314  976289 host.go:66] Checking if "testmachine" exists ...
I0205 00:45:29.676316  976289 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0004c9130 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
I0205 00:45:29.676321  976289 driver_mock.go:47] MockDriver.GetState called from /home/prezha/dev/Kubernetes/minikube/github.com/prezha/minikube/pkg/minikube/tunnel/tunnel.go#119: returning "Stopped"
=== RUN   TestTunnel/tunnel_cleanup_(ctrl+c_before_check)
I0205 00:45:29.676386  976289 host.go:66] Checking if "testmachine" exists ...
I0205 00:45:29.676389  976289 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0004c91e0 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
I0205 00:45:29.676407  976289 driver_mock.go:47] MockDriver.GetState called from /home/prezha/dev/Kubernetes/minikube/github.com/prezha/minikube/pkg/minikube/tunnel/cluster_inspector.go#62: returning "Running"
I0205 00:45:29.676410  976289 driver_mock.go:47] MockDriver.GetIP
=== RUN   TestTunnel/tunnel_create_Route
I0205 00:45:29.676511  976289 host.go:66] Checking if "testmachine" exists ...
I0205 00:45:29.676534  976289 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0004c9290 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
I0205 00:45:29.676539  976289 driver_mock.go:47] MockDriver.GetState called from /home/prezha/dev/Kubernetes/minikube/github.com/prezha/minikube/pkg/minikube/tunnel/cluster_inspector.go#62: returning "Running"
I0205 00:45:29.676542  976289 driver_mock.go:47] MockDriver.GetIP
I0205 00:45:29.676549  976289 host.go:66] Checking if "testmachine" exists ...
I0205 00:45:29.676566  976289 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0004c9290 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
I0205 00:45:29.676570  976289 driver_mock.go:47] MockDriver.GetState called from /home/prezha/dev/Kubernetes/minikube/github.com/prezha/minikube/pkg/minikube/tunnel/tunnel.go#119: returning "Running"
=== RUN   TestTunnel/tunnel_cleanup_error_after_1_successful_addRoute
I0205 00:45:29.676717  976289 host.go:66] Checking if "testmachine" exists ...
I0205 00:45:29.676720  976289 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0004c93f0 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
I0205 00:45:29.676727  976289 driver_mock.go:47] MockDriver.GetState called from /home/prezha/dev/Kubernetes/minikube/github.com/prezha/minikube/pkg/minikube/tunnel/cluster_inspector.go#62: returning "Running"
I0205 00:45:29.676730  976289 driver_mock.go:47] MockDriver.GetIP
I0205 00:45:29.676754  976289 host.go:66] Checking if "testmachine" exists ...
I0205 00:45:29.676757  976289 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0004c93f0 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
I0205 00:45:29.676776  976289 driver_mock.go:47] MockDriver.GetState called from /home/prezha/dev/Kubernetes/minikube/github.com/prezha/minikube/pkg/minikube/tunnel/tunnel.go#119: returning "Running"
=== RUN   TestTunnel/tunnel_cleanup
I0205 00:45:29.676916  976289 host.go:66] Checking if "testmachine" exists ...
I0205 00:45:29.676920  976289 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0004c9550 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
I0205 00:45:29.676925  976289 driver_mock.go:47] MockDriver.GetState called from /home/prezha/dev/Kubernetes/minikube/github.com/prezha/minikube/pkg/minikube/tunnel/cluster_inspector.go#62: returning "Running"
I0205 00:45:29.676928  976289 driver_mock.go:47] MockDriver.GetIP
I0205 00:45:29.676957  976289 host.go:66] Checking if "testmachine" exists ...
I0205 00:45:29.676960  976289 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0004c9550 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
I0205 00:45:29.676964  976289 driver_mock.go:47] MockDriver.GetState called from /home/prezha/dev/Kubernetes/minikube/github.com/prezha/minikube/pkg/minikube/tunnel/tunnel.go#119: returning "Running"
=== RUN   TestTunnel/race_condition:_other_tunnel_registers_while_in_between_routing_and_registration
I0205 00:45:29.677061  976289 host.go:66] Checking if "testmachine" exists ...
I0205 00:45:29.677064  976289 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0004c9600 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
I0205 00:45:29.677069  976289 driver_mock.go:47] MockDriver.GetState called from /home/prezha/dev/Kubernetes/minikube/github.com/prezha/minikube/pkg/minikube/tunnel/cluster_inspector.go#62: returning "Running"
I0205 00:45:29.677071  976289 driver_mock.go:47] MockDriver.GetIP
I0205 00:45:29.677127  976289 host.go:66] Checking if "testmachine" exists ...
I0205 00:45:29.677131  976289 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0004c9600 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
I0205 00:45:29.677151  976289 driver_mock.go:47] MockDriver.GetState called from /home/prezha/dev/Kubernetes/minikube/github.com/prezha/minikube/pkg/minikube/tunnel/tunnel.go#119: returning "Running"
E0205 00:45:29.677167  976289 tunnel.go:148] failed to register tunnel: there is already a running tunnel for this machine: ID { Route: 0.0.0.0/5 -> 1.2.3.4, machineName: testmachine, Pid: 1235 }
=== RUN   TestTunnel/race_condition:_other_tunnel_registers_and_creates_the_same_route_first
I0205 00:45:29.677231  976289 host.go:66] Checking if "testmachine" exists ...
I0205 00:45:29.677234  976289 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0004c96b0 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
I0205 00:45:29.677240  976289 driver_mock.go:47] MockDriver.GetState called from /home/prezha/dev/Kubernetes/minikube/github.com/prezha/minikube/pkg/minikube/tunnel/cluster_inspector.go#62: returning "Running"
I0205 00:45:29.677242  976289 driver_mock.go:47] MockDriver.GetIP
I0205 00:45:29.677263  976289 host.go:66] Checking if "testmachine" exists ...
I0205 00:45:29.677265  976289 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0004c96b0 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
I0205 00:45:29.677270  976289 driver_mock.go:47] MockDriver.GetState called from /home/prezha/dev/Kubernetes/minikube/github.com/prezha/minikube/pkg/minikube/tunnel/tunnel.go#119: returning "Running"
--- PASS: TestTunnel (0.00s)
    --- PASS: TestTunnel/simple_stopped (0.00s)
    --- PASS: TestTunnel/tunnel_cleanup_(ctrl+c_before_check) (0.00s)
    --- PASS: TestTunnel/tunnel_create_Route (0.00s)
    --- PASS: TestTunnel/tunnel_cleanup_error_after_1_successful_addRoute (0.00s)
    --- PASS: TestTunnel/tunnel_cleanup (0.00s)
    --- PASS: TestTunnel/race_condition:_other_tunnel_registers_while_in_between_routing_and_registration (0.00s)
    --- PASS: TestTunnel/race_condition:_other_tunnel_registers_and_creates_the_same_route_first (0.00s)
=== RUN   TestErrorCreatingTunnel
I0205 00:45:29.677353  976289 host.go:66] Checking if "testmachine" exists ...
I0205 00:45:29.677357  976289 api_mock.go:60] MockAPI.Load: &{ConfigVersion:0 Driver:0xc0004c9760 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
I0205 00:45:29.677362  976289 driver_mock.go:47] MockDriver.GetState called from /home/prezha/dev/Kubernetes/minikube/github.com/prezha/minikube/pkg/minikube/tunnel/cluster_inspector.go#62: returning "Stopped"
--- PASS: TestErrorCreatingTunnel (0.00s)
PASS
ok  	k8s.io/minikube/pkg/minikube/tunnel	1.483s
```

</details>



k8s-ci-robot: [APPROVALNOTIFIER] This PR is **APPROVED**

This pull-request has been approved by: *<a href="https://github.com/kubernetes/minikube/pull/20363#" title="Author self-approved">prezha</a>*

The full list of commands accepted by this bot can be found [here](https://go.k8s.io/bot-commands?repo=kubernetes%2Fminikube).

The pull request process is described [here](https://git.k8s.io/community/contributors/guide/owners.md#the-code-review-process)

<details >
Needs approval from an approver in each of these files:

- ~~[OWNERS](https://github.com/kubernetes/minikube/blob/master/OWNERS)~~ [prezha]

Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
</details>
<!-- META={"approvers":[]} -->

Patch:
diff --git a/go.mod b/go.mod
index 81c6ec87c..577bdaad6 100644
--- a/go.mod
+++ b/go.mod
@@ -77,9 +77,9 @@ require (
 	gonum.org/v1/plot v0.15.0
 	google.golang.org/api v0.217.0
 	gopkg.in/yaml.v2 v2.4.0
-	k8s.io/api v0.31.3
-	k8s.io/apimachinery v0.32.0
-	k8s.io/client-go v0.31.3
+	k8s.io/api v0.32.1
+	k8s.io/apimachinery v0.32.1
+	k8s.io/client-go v0.32.1
 	k8s.io/cluster-bootstrap v0.0.0
 	k8s.io/component-base v0.31.3
 	k8s.io/klog/v2 v2.130.1
@@ -164,7 +164,6 @@ require (
 	github.com/hectane/go-acl v0.0.0-20190604041725-da78bae5fc95 // indirect
 	github.com/hooklift/assert v0.0.0-20170704181755-9d1defd6d214 // indirect
 	github.com/huandu/xstrings v1.3.2 // indirect
-	github.com/imdario/mergo v0.3.12 // indirect
 	github.com/inconshreveable/mousetrap v1.1.0 // indirect
 	github.com/jmespath/go-jmespath v0.4.0 // indirect
 	github.com/josharian/intern v1.0.0 // indirect
diff --git a/go.sum b/go.sum
index 5d6aeb34d..6bb19ef99 100644
--- a/go.sum
+++ b/go.sum
@@ -1498,7 +1498,6 @@ github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJ
 github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
 github.com/imdario/mergo v0.3.10/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
 github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
-github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU=
 github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
 github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
 github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
@@ -3053,7 +3052,6 @@ google.golang.org/grpc v1.56.3/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpX
 google.golang.org/grpc v1.69.4 h1:MF5TftSMkd8GLw/m0KM6V8CMOCY6NZ1NQDPGFgbTt4A=
 google.golang.org/grpc v1.69.4/go.mod h1:vyjdE6jLBI76dgpDojsFGNaHlxdjXN9ghpnd2o7JGZ4=
 google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
-google.golang.org/grpc/stats/opentelemetry v0.0.0-20240907200651-3ffb98b2c93a h1:UIpYSuWdWHSzjwcAFRLjKcPXFZVVLXGEM23W+NWqipw=
 google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
 google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
 google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
@@ -3140,8 +3138,8 @@ k8s.io/api v0.20.6/go.mod h1:X9e8Qag6JV/bL5G6bU8sdVRltWKmdHsFUGS3eVndqE8=
 k8s.io/api v0.22.4/go.mod h1:Rgs+9gIGYC5laXQSZZ9JqT5NevNgoGiOdVWi1BAB3qk=
 k8s.io/api v0.22.5/go.mod h1:mEhXyLaSD1qTOf40rRiKXkc+2iCem09rWLlFwhCEiAs=
 k8s.io/api v0.23.5/go.mod h1:Na4XuKng8PXJ2JsploYYrivXrINeTaycCGcYgF91Xm8=
-k8s.io/api v0.31.3 h1:umzm5o8lFbdN/hIXbrK9oRpOproJO62CV1zqxXrLgk8=
-k8s.io/api v0.31.3/go.mod h1:UJrkIp9pnMOI9K2nlL6vwpxRzzEX5sWgn8kGQe92kCE=
+k8s.io/api v0.32.1 h1:f562zw9cy+GvXzXf0CKlVQ7yHJVYzLfL6JAS4kOAaOc=
+k8s.io/api v0.32.1/go.mod h1:/Yi/BqkuueW1BgpoePYBRdDYfjPF5sgTr5+YqDZra5k=
 k8s.io/apimachinery v0.19.1/go.mod h1:DnPGDnARWFvYa3pMHgSxtbZb7gpzzAZ1pTfaUNDVlmA=
 k8s.io/apimachinery v0.20.1/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU=
 k8s.io/apimachinery v0.20.4/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU=
@@ -3150,8 +3148,8 @@ k8s.io/apimachinery v0.22.1/go.mod h1:O3oNtNadZdeOMxHFVxOreoznohCpy0z6mocxbZr7oJ
 k8s.io/apimachinery v0.22.4/go.mod h1:yU6oA6Gnax9RrxGzVvPFFJ+mpnW6PBSqp0sx0I0HHW0=
 k8s.io/apimachinery v0.22.5/go.mod h1:xziclGKwuuJ2RM5/rSFQSYAj0zdbci3DH8kj+WvyN0U=
 k8s.io/apimachinery v0.23.5/go.mod h1:BEuFMMBaIbcOqVIJqNZJXGFTP4W6AycEpb5+m/97hrM=
-k8s.io/apimachinery v0.32.0 h1:cFSE7N3rmEEtv4ei5X6DaJPHHX0C+upp+v5lVPiEwpg=
-k8s.io/apimachinery v0.32.0/go.mod h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE=
+k8s.io/apimachinery v0.32.1 h1:683ENpaCBjma4CYqsmZyhEzrGz6cjn1MY/X2jB2hkZs=
+k8s.io/apimachinery v0.32.1/go.mod h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE=
 k8s.io/apiserver v0.20.1/go.mod h1:ro5QHeQkgMS7ZGpvf4tSMx6bBOgPfE+f52KwvXfScaU=
 k8s.io/apiserver v0.20.4/go.mod h1:Mc80thBKOyy7tbvFtB4kJv1kbdD0eIH8k8vianJcbFM=
 k8s.io/apiserver v0.20.6/go.mod h1:QIJXNt6i6JB+0YQRNcS0hdRHJlMhflFmsBDeSgT1r8Q=
@@ -3164,8 +3162,8 @@ k8s.io/client-go v0.20.4/go.mod h1:LiMv25ND1gLUdBeYxBIwKpkSC5IsozMMmOOeSJboP+k=
 k8s.io/client-go v0.20.6/go.mod h1:nNQMnOvEUEsOzRRFIIkdmYOjAZrC8bgq0ExboWSU1I0=
 k8s.io/client-go v0.22.5/go.mod h1:cs6yf/61q2T1SdQL5Rdcjg9J1ElXSwbjSrW2vFImM4Y=
 k8s.io/client-go v0.23.5/go.mod h1:flkeinTO1CirYgzMPRWxUCnV0G4Fbu2vLhYCObnt/r4=
-k8s.io/client-go v0.31.3 h1:CAlZuM+PH2cm+86LOBemaJI/lQ5linJ6UFxKX/SoG+4=
-k8s.io/client-go v0.31.3/go.mod h1:2CgjPUTpv3fE5dNygAr2NcM8nhHzXvxB8KL5gYc3kJs=
+k8s.io/client-go v0.32.1 h1:otM0AxdhdBIaQh7l1Q0jQpmo7WOFIk5FFa4bg6YMdUU=
+k8s.io/client-go v0.32.1/go.mod h1:aTTKZY7MdxUaJ/KiUs8D+GssR9zJZi77ZqtzcGXIiDg=
 k8s.io/cluster-bootstrap v0.22.4 h1:2ZhV/1K4GiCrnmDHHbBnN3bERWn+Nxrtxmxp6uYYThI=
 k8s.io/cluster-bootstrap v0.22.4/go.mod h1:fTQZ6u9G6fg2LHhB8nEgZLnXIhCDSRYuLUUS5pgW8RY=
 k8s.io/code-generator v0.19.7/go.mod h1:lwEq3YnLYb/7uVXLorOJfxg+cUu2oihFhHZ0n9NIla0=


Test patch:
diff --git a/pkg/minikube/service/service_test.go b/pkg/minikube/service/service_test.go
index 7ac672da3..e5b466b4b 100644
--- a/pkg/minikube/service/service_test.go
+++ b/pkg/minikube/service/service_test.go
@@ -34,6 +34,8 @@ import (
 	core "k8s.io/api/core/v1"
 	meta "k8s.io/apimachinery/pkg/apis/meta/v1"
 	"k8s.io/apimachinery/pkg/util/intstr"
+	corev1 "k8s.io/client-go/applyconfigurations/core/v1"
+	"k8s.io/client-go/gentype"
 	typed_core "k8s.io/client-go/kubernetes/typed/core/v1"
 	"k8s.io/client-go/kubernetes/typed/core/v1/fake"
 	testing_fake "k8s.io/client-go/testing"
@@ -63,8 +65,24 @@ func (m *MockClientGetter) GetCoreClient(string) (typed_core.CoreV1Interface, er
 		secretsMap:   m.secretsMap}, nil
 }
 
-func (m *MockCoreClient) Secrets(_ string) typed_core.SecretInterface {
-	return &fake.FakeSecrets{Fake: &fake.FakeCoreV1{Fake: &testing_fake.Fake{}}}
+func (m *MockCoreClient) Secrets(namespace string) typed_core.SecretInterface {
+	return &MockSecretInterface{
+		FakeClientWithListAndApply: gentype.NewFakeClientWithListAndApply[*core.Secret, *core.SecretList, *corev1.SecretApplyConfiguration](
+			fake.FakeCoreV1{Fake: &testing_fake.Fake{}}.Fake,
+			namespace,
+			core.SchemeGroupVersion.WithResource("secrets"),
+			core.SchemeGroupVersion.WithKind("Secret"),
+			func() *core.Secret { return &core.Secret{} },
+			func() *core.SecretList { return &core.SecretList{} },
+			func(dst, src *core.SecretList) { dst.ListMeta = src.ListMeta },
+			func(list *core.SecretList) []*core.Secret { return gentype.ToPointerSlice(list.Items) },
+			func(list *core.SecretList, items []*core.Secret) { list.Items = gentype.FromPointerSlice(items) },
+		),
+		Fake: fake.FakeCoreV1{},
+		SecretsList: &core.SecretList{
+			Items: []core.Secret{},
+		},
+	}
 }
 
 func (m *MockCoreClient) Services(namespace string) typed_core.ServiceInterface {
@@ -171,7 +189,8 @@ func (m *MockCoreClient) Endpoints(namespace string) typed_core.EndpointsInterfa
 }
 
 type MockEndpointsInterface struct {
-	fake.FakeEndpoints
+	*gentype.FakeClientWithListAndApply[*core.Endpoints, *core.EndpointsList, *corev1.EndpointsApplyConfiguration]
+	fake.FakeCoreV1
 	Endpoints *core.Endpoints
 }
 
@@ -227,12 +246,15 @@ func (e MockEndpointsInterface) Get(_ context.Context, name string, _ meta.GetOp
 }
 
 type MockServiceInterface struct {
-	fake.FakeServices
+	*gentype.FakeClientWithListAndApply[*core.Service, *core.ServiceList, *corev1.ServiceApplyConfiguration]
+	fake.FakeCoreV1
+	typed_core.ServiceExpansion
 	ServiceList *core.ServiceList
 }
 
 type MockSecretInterface struct {
-	fake.FakeSecrets
+	*gentype.FakeClientWithListAndApply[*core.Secret, *core.SecretList, *corev1.SecretApplyConfiguration]
+	Fake        fake.FakeCoreV1
 	SecretsList *core.SecretList
 }
 
diff --git a/pkg/minikube/tunnel/loadbalancer_patcher_test.go b/pkg/minikube/tunnel/loadbalancer_patcher_test.go
index 0928d43ad..95c8fd037 100644
--- a/pkg/minikube/tunnel/loadbalancer_patcher_test.go
+++ b/pkg/minikube/tunnel/loadbalancer_patcher_test.go
@@ -24,9 +24,12 @@ import (
 
 	core "k8s.io/api/core/v1"
 	meta "k8s.io/apimachinery/pkg/apis/meta/v1"
+	corev1 "k8s.io/client-go/applyconfigurations/core/v1"
+	"k8s.io/client-go/gentype"
 	typed_core "k8s.io/client-go/kubernetes/typed/core/v1"
 	fake "k8s.io/client-go/kubernetes/typed/core/v1/fake"
 	"k8s.io/client-go/rest"
+	testing_fake "k8s.io/client-go/testing"
 )
 
 type stubCoreClient struct {
@@ -35,10 +38,21 @@ type stubCoreClient struct {
 	restClient   *rest.RESTClient
 }
 
-func (c *stubCoreClient) Services(_ string) typed_core.ServiceInterface {
+func (c *stubCoreClient) Services(namespace string) typed_core.ServiceInterface {
 	return &stubServices{
-		fake.FakeServices{Fake: &c.FakeCoreV1},
-		c.servicesList,
+		FakeClientWithListAndApply: gentype.NewFakeClientWithListAndApply[*core.Service, *core.ServiceList, *corev1.ServiceApplyConfiguration](
+			fake.FakeCoreV1{Fake: &testing_fake.Fake{}}.Fake,
+			namespace,
+			core.SchemeGroupVersion.WithResource("services"),
+			core.SchemeGroupVersion.WithKind("Service"),
+			func() *core.Service { return &core.Service{} },
+			func() *core.ServiceList { return &core.ServiceList{} },
+			func(dst, src *core.ServiceList) { dst.ListMeta = src.ListMeta },
+			func(list *core.ServiceList) []*core.Service { return gentype.ToPointerSlice(list.Items) },
+			func(list *core.ServiceList, items []*core.Service) { list.Items = gentype.FromPointerSlice(items) },
+		),
+		Fake:         fake.FakeCoreV1{},
+		servicesList: c.servicesList,
 	}
 }
 
@@ -47,7 +61,9 @@ func (c *stubCoreClient) RESTClient() rest.Interface {
 }
 
 type stubServices struct {
-	fake.FakeServices
+	*gentype.FakeClientWithListAndApply[*core.Service, *core.ServiceList, *corev1.ServiceApplyConfiguration]
+	Fake fake.FakeCoreV1
+	typed_core.ServiceExpansion
 	servicesList *core.ServiceList
 }