[incubator/vault] Use single consul token for vault and consul agent (#12844)

* Use single consul token for vault and consul agent

Signed-off-by: Cyrille <cyrille@omise.co>

* Bump version

Signed-off-by: Cyrille <cyrille@omise.co>
This commit is contained in:
Cyrille De Ciancio
2019-04-28 04:54:20 -07:00
committed by Kubernetes Prow Robot
parent bc54518d74
commit 530638cd87
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for Vault, a tool for managing secrets
name: vault
version: 0.18.2
version: 0.18.3
appVersion: 1.0.1
home: https://www.vaultproject.io/
icon: https://www.vaultproject.io/assets/images/mega-nav/logo-vault-0f83e3d2.svg
@@ -126,9 +126,14 @@ spec:
GOSSIP_KEY="-config-file /etc/consul/encrypt.json"
fi
{{- end }}
{{- if .Values.vault.config.storage.consul.token }}
echo "{\"acl\":{\"tokens\":{\"agent\":\"{{ .Values.vault.config.storage.consul.token }}\"}}}" > /etc/consul/agent-token.json
AGENT_TOKEN="-config-file /etc/consul/agent-token.json"
{{- end }}
exec /bin/consul agent \
$GOSSIP_KEY \
$AGENT_TOKEN \
-join={{- .Values.consulAgent.join }} \
-data-dir=/etc/consul
resources: