Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

~/.kube for location of multiforward.yaml #2

Open
almereyda opened this issue Sep 2, 2022 · 0 comments
Open

~/.kube for location of multiforward.yaml #2

almereyda opened this issue Sep 2, 2022 · 0 comments

Comments

@almereyda
Copy link

almereyda commented Sep 2, 2022

It is a common pattern for kubectl tools to also use the ~/.kube directory for storing their configuration, e.g. https://github.com/simontheleg/konf-go

Would it seem useful to also add ~/.kube/multiforward.yaml to the list of search paths?

viper.SetConfigName(".multiforward")
viper.SetConfigType("yaml")
viper.AddConfigPath("$HOME")
viper.AddConfigPath(".")

Eventually it would be enough to add this below or above here?

	viper.AddConfigPath("$HOME/.kube")

Then I'd also be happy to continue using .multiforward.yaml, for not having to maintain two different names for the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant