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

document .kops file - does VIPER work #2435

Open
chrislovecnm opened this issue Apr 26, 2017 · 10 comments
Open

document .kops file - does VIPER work #2435

chrislovecnm opened this issue Apr 26, 2017 · 10 comments
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.

Comments

@chrislovecnm
Copy link
Contributor

I have the following config file installed and run:

$cat $HOME/.kops
KOPS_STATE_STORE=s3://aws.k8spro.com
$ kops toolbox inventory -f in-v1alpha2.yaml
unable to load client set State Store: Required value: Please set the --state flag or export KOPS_STATE_STORE.
A valid value follows the format s3://<bucket>.
A s3 bucket is required to store cluster state information.

And that does not work. We have https://github.com/spf13/viper installed, but I do not know if it is actually wired in correctly ....

@dolftax
Copy link
Contributor

dolftax commented May 8, 2017

@chrislovecnm Elaborate this issue?

@chrislovecnm
Copy link
Contributor Author

We have viper in order code base. It is part or the cobra cli stuff. It does not seem to be functioning. This issue is to figure out if it works, if so document how it works. If not fix it.

@chrislovecnm
Copy link
Contributor Author

Here are the docs https://github.com/spf13/viper

Code is in cmd/kops/root.go

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 24, 2017
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle rotten
/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 23, 2018
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@chrislovecnm
Copy link
Contributor Author

/lifecycle frozen
/remove-lifecycle rotten

This is not fixed, and someone had a PR in that got closed.

@k8s-ci-robot k8s-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels Feb 22, 2018
@chrislovecnm chrislovecnm reopened this Feb 22, 2018
@jsenon
Copy link
Contributor

jsenon commented Mar 19, 2018

I will try to handle this issue

@jsenon
Copy link
Contributor

jsenon commented Mar 19, 2018

Actually config file is located on $HOME/.kops.yaml, do you want to move it to $HOME/.kops/config ?

@fred-vogt
Copy link

@chrislovecnm - I think viper is setup up in kops to ONLY cover the case of the state store having a default value.

cmd/kops/root.go

rootCommand.RegistryPath = viper.GetString("KOPS_STATE_STORE")

The use case for this file might be somewhat limited:

  • always required settings, or settings that apply to ALL clusters

Some items that might be candidates:

That said, I think this feature of kops does need to be documented better.
For myself I was wondering if it could be used to specify custom values for KOPS_BASE_URL or custom base url mirrors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
None yet
Development

No branches or pull requests

7 participants