An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# tillns
> Switch faster between tiller namespaces in helm

![MIT License](https://img.shields.io/badge/License-MIT-lightgrey.svg?style=for-the-badge)
![Version 1.1.0](https://img.shields.io/badge/Version-1.1.0-lightgrey.svg?style=for-the-badge)

## 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.