Skip to content
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.

Commit

Permalink
- feature to change Tiller storage backend
Browse files Browse the repository at this point in the history
  • Loading branch information
rimusz committed Oct 26, 2018
1 parent 7d1a8b5 commit 5c28b42
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ stop Stop Tiller
Available environment variables:

- To silence plugin specific messages by setting `HELM_TILLER_SILENT=true`, only `helm` cli output will be printed.
- To change default Tiller port by setting `HELM_TILLER_PORT=44140`.
- To change default Tiller port by setting `HELM_TILLER_PORT=44140`, default is `44134`.
- To change Tiller storage to `configmap` by setting `HELM_TILLER_STORAGE=configmap`, default is `secret`.
- To store Tiller logs in `$HOME/.helm/plugins/helm-tiller/logs` by setting `HELM_TILLER_LOGS=true`.
- You can set a specific folder/file for Tiller logs by setting `HELM_TILLER_LOGS_DIR=/some_folder/tiller.logs`.
- To change default Tiller maximum number of releases kept in release history by setting e.g. to 20 `HELM_TILLER_HISTORY_MAX=20`.
Expand Down
4 changes: 2 additions & 2 deletions plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: "tiller"
version: "0.6.2"
version: "0.6.3"
usage: "Please see https://github.com/rimusz/helm-tiller for usage"
description: "Start a Tiller server locally"
description: "Start a Tiller server locally, aka Tillerless Helm"
command: "$HELM_PLUGIN_DIR/scripts/tiller.sh"
useTunnel: false
6 changes: 4 additions & 2 deletions scripts/tiller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -o errexit

: "${HELM_TILLER_SILENT:=false}"
: "${HELM_TILLER_PORT:=44134}"
: "${HELM_TILLER_STORAGE:=secret}"
: "${HELM_TILLER_LOGS:=false}"
: "${HELM_TILLER_LOGS_DIR:=/dev/null}"
: "${HELM_TILLER_HISTORY_MAX:=0}"
Expand Down Expand Up @@ -35,7 +36,8 @@ function usage() {
Available environment variables:
'HELM_TILLER_SILENT=true' - silence plugin specific messages, only `helm` cli output will be printed.
'HELM_TILLER_PORT=44140' - change Tiller port.
'HELM_TILLER_PORT=44140' - change Tiller port, default is `44134`.
'HELM_TILLER_STORAGE=configmap' - change Tiller storage to `configmap`, default is `secret`.
'HELM_TILLER_LOGS=true' - store Tiller logs in '$HOME/.helm/plugins/helm-tiller/logs'.
'HELM_TILLER_LOGS_DIR=/some_folder/tiller.logs' - set a specific folder/file for Tiller logs.
'HELM_TILLER_HISTORY_MAX=20' - change maximum number of releases kept in release history by Tiller.
Expand Down Expand Up @@ -115,7 +117,7 @@ tiller_env() {
start_tiller() {
tiller_env
{ ./bin/tiller --storage=secret --listen=127.0.0.1:${HELM_TILLER_PORT} --history-max=${HELM_TILLER_HISTORY_MAX} & } 2>"${HELM_TILLER_LOGS_DIR}"
{ ./bin/tiller --storage=${HELM_TILLER_STORAGE} --listen=127.0.0.1:${HELM_TILLER_PORT} --history-max=${HELM_TILLER_HISTORY_MAX} & } 2>"${HELM_TILLER_LOGS_DIR}"
if [[ "${HELM_TILLER_SILENT}" == "false" ]]; then
echo "Tiller namespace: $TILLER_NAMESPACE"
fi
Expand Down

0 comments on commit 5c28b42

Please sign in to comment.