Skip to content

Commit

Permalink
Set injector external vault addr protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Arendt committed Jul 3, 2020
1 parent 9fdd47b commit 5545522
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ function configure_kubernetes {
elif [ "${command_result[1]}" = "1" ] ; then
log_and_print "Installing Vault Agent Helm Chart...";
if [ "$helm_custom_values_set_bool" = "true" ] ; then
if [ "$vault_protocol" = "http" ] ; then
sed -i 's|"externalVaultAddr": "http[s]://|"externalVaultAddr": "http://|g' /tmp/vault_helm_chart_values.yaml
fi
helm upgrade --install --wait -f /tmp/vault_helm_chart_values.yaml vault /tmp/v0.4.0.tar.gz
else
helm upgrade --install --wait vault /tmp/v0.4.0.tar.gz
Expand Down

0 comments on commit 5545522

Please sign in to comment.