kubernetes/minikube

move viper calls from packages into cmd to improve testability/resusablitily

Ouverte

#21 670 ouverte le 30 sept. 2025

 (4 commentaires) (0 réaction) (1 personne assignée)Go (5 222 forks)batch import
help wantedkind/cleanuppriority/important-soon

Métriques du dépôt

Stars
 (31 799 étoiles)
Métriques de merge PR
 (Merge moyen 12j 19h) (43 PRs mergées en 30 j)

Description

packages inside minikube should not be calling viper to get a config, the viper (getting confg flags) should only be called form Cmd packages

this will help better testing and also avoid race conditions in Setting or Getting Flags in Parallel testing and Parallel usage of minikube and make minikube code more reusable and more testable

Originally posted by @medyagh in https://github.com/kubernetes/minikube/pull/21635#discussion_r2392461773

Guide contributeur