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

Commit

Permalink
- Fix HELM_TILLER_SILENT not default to false #18
Browse files Browse the repository at this point in the history
- Bind Tiller on 127.0.0.1 instead of localhost #19
  • Loading branch information
rimusz committed Oct 17, 2018
1 parent b4f153a commit 382ab60
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

tmp
bin
logs
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ run Start Tiller and run arbitrary command within the environment
stop Stop Tiller
```

In automation cases you might want to silence plugin messages with setting `HELM_TILLER_SILENT=true`, then only helm output will be seen.
You can change default Tiller port by setting it with `HELM_TILLER_PORT=44135`.
Available environment variables:

- To silence plugin messages with setting `HELM_TILLER_SILENT=true`, then only helm cli output will be seen.
- To change default Tiller port by setting it with `HELM_TILLER_PORT=44135`.

### Tiller start examples

Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: "tiller"
version: "0.5.7"
version: "0.5.8"
usage: "Please see https://github.com/rimusz/helm-tiller for usage"
description: "Start a Tiller server locally"
command: "$HELM_PLUGIN_DIR/scripts/tiller.sh"
Expand Down
6 changes: 3 additions & 3 deletions scripts/tiller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ helm_env() {
# Set namespace
echo export TILLER_NAMESPACE="${1}"
fi
echo export HELM_HOST=localhost:${HELM_TILLER_PORT}
echo export HELM_HOST=127.0.0.1:${HELM_TILLER_PORT}
}
start_tiller() {
if [[ "${HELM_TILLER_SILENT}" == "false" ]]; then
echo "Starting Tiller..."
fi
{ ./bin/tiller --storage=secret --listen=localhost:${HELM_TILLER_PORT} & } 2>/dev/null
{ ./bin/tiller --storage=secret --listen=127.0.0.1:${HELM_TILLER_PORT} & } 2>/dev/null
if [[ "${HELM_TILLER_SILENT}" == "false" ]]; then
echo "Tiller namespace: $TILLER_NAMESPACE"
fi
Expand All @@ -107,7 +107,7 @@ run_tiller() {
if [[ "${HELM_TILLER_SILENT}" == "false" ]]; then
echo "Starting Tiller..."
fi
{ ./bin/tiller --storage=secret --listen=localhost:${HELM_TILLER_PORT} & } 2>/dev/null
{ ./bin/tiller --storage=secret --listen=127.0.0.1:${HELM_TILLER_PORT} & } 2>/dev/null
cd "${CURRENT_FOLDER}"
}
Expand Down

0 comments on commit 382ab60

Please sign in to comment.