Skip to content

Commit

Permalink
Support air-gap with helm repos
Browse files Browse the repository at this point in the history
If default stable helm repo is not available then helm init or installs
will also fail. Test if updating default repos fail and if so remove
stable repo so install from other sources will succeed.
  • Loading branch information
erikwilson committed Mar 21, 2019
1 parent 2a1df15 commit 1cb7fb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entry
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ update-ca-certificates
tiller --listen=127.0.0.1:44134 --storage=secret &
export HELM_HOST=127.0.0.1:44134

helm init --client-only
helm init --skip-refresh --client-only
helm repo update --strict || helm repo remove stable
if [ -n "$REPO" ]; then
helm repo add ${NAME%%/*} $REPO
fi
Expand Down

0 comments on commit 1cb7fb7

Please sign in to comment.