https://github.com/null93/tillns
Switch faster between tiller namespaces in helm
https://github.com/null93/tillns
helm kubernetes tiller-namespace
Last synced: 28 days ago
JSON representation
Switch faster between tiller namespaces in helm
- Host: GitHub
- URL: https://github.com/null93/tillns
- Owner: null93
- License: mit
- Created: 2019-11-07T23:36:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-15T02:46:03.000Z (over 6 years ago)
- Last Synced: 2025-05-25T12:38:46.415Z (about 1 year ago)
- Topics: helm, kubernetes, tiller-namespace
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# tillns
> Switch faster between tiller namespaces in helm


## About
`tillns` uses `kubectl` to figure out which context you are using and also which namespace you are currently using. It makes it easy to use helm by implicitly setting the tiller namespace for every helm command that is run. This is done by setting the `TILLER_NAMESPACE` environmental variable. Changing contexts and namespaces can be done with `kubectx` and `kubens` respectively. `tillns` simply uses the current state and applies it to `helm`. If you would like to temporaily disable this program from wrapping helm, then run helm (once it is aliases with `tillns`) with the following command: `helm -- `.
## Install (Homebrew)
```shell
$ brew install null93/tillns/tillns
$ echo -e "alias helm='tillns'" >> ~/.bash_profile
```
## Limitations
Since a tiller deployment can be targeted with [helm](https://github.com/helm/helm) via the `--tiller-namespace` argument and the `TILLER_NAMESPACE` environmental variable only, a different approach needed to be used to solve the same problem that `kubens` solved for `kubectl`. This solution sets the `TILLER_NAMESPACE` environmental variable and passes all arguments from the `tillns` command to helm. For this reason helm needs to be aliases under the formeantioned command during setup.
## Attribution
A lot of credit needs to go to the [ahmetb/kubectx](https://github.com/ahmetb/kubectx) project. This project basically applies what `kubens` does for `kubectl` but for `helm` instead.