kubernetes/minikube
View on GitHubmove viper calls from packages into cmd to improve testability/resusablitily
Open
#21,670 opened on Sep 30, 2025
help wantedkind/cleanuppriority/important-soon
Repository metrics
- Stars
- (31,799 stars)
- PR merge metrics
- (Avg merge 26d 4h) (55 merged PRs in 30d)
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