Skip to content

Add machine wide and user cached options for lookup of shpod.yaml#45

Open
nathanjrobertson wants to merge 1 commit intoBretFisher:mainfrom
nathanjrobertson:yaml_locations
Open

Add machine wide and user cached options for lookup of shpod.yaml#45
nathanjrobertson wants to merge 1 commit intoBretFisher:mainfrom
nathanjrobertson:yaml_locations

Conversation

@nathanjrobertson
Copy link
Copy Markdown

As it stands, if you run shpod from a directory other than the one which contains shpod.yaml, it won't find the configuration, and will download it from the default location. This PR adds a few extra places that it should look (/etc/shpod.yaml and $HOME/.shpod/shpod.yaml). This allows a user to put shpod.sh in somewhere like $HOME/bin, put their configuration in one of those two locations, and customize as needed.

I'm using this so that I can add extra permissions to cluster roles of the shpods I'm attaching to various Kubernetes clusters I'm accessing.

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

Successfully merging this pull request may close these issues.

1 participant