You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add run.CommandOptions.ProfileName and use it to replace most of the
following calls:
- viper.GetString("profile")
- viper.GetString(config.ProfileName)
- viper.GetString(ProfileName)
- viper.Set("profile", ...)
- viper.Set(config.ProfileName, ...)
- viper.Set(ProfileName, ...)
The ProfileName constant is in minikube/config package, so we use the
existing constants instead of adding cmd/flags.ProfileName.
This is change is little bit bigger because the existing code was messy,
the tests mocks were broken, and one test was wrong. I should probably
split this change to smaller commits.
The minikube/provision package is still using
viper.GetString(config.ProfileName). I could not find a way to remove
this usage because libmachine API does not allow passing the options.
0 commit comments