Intended to make everyones lifes easier by automatically changing the gcloud
and kubectl
context based on a small configuration file. This can be added as a submodule together with a minimal config your existing code repository.
- Install direnv via brew
brew install direnv
- (iTerm users only) Add this line at the end of your ~/.bash_profile:
eval "$(direnv hook $SHELL)"
- Enjoy!
- Add the submodule to your existing Git project
- Copy the sample
gkubenv.yaml
fromexamples
to your root folder and change the values accordingly - Copy the
dot.envrc
fromexamples
as.envrc
to your root folder