From f49709ff52dc25f7772f6a9baefbf784e734a359 Mon Sep 17 00:00:00 2001 From: Krishnaswamy Subramanian Date: Mon, 5 Nov 2018 02:20:15 +0530 Subject: [PATCH] [stable/consul] Fix ignoring gossip-key passed via values (#8784) Signed-off-by: Krishnaswamy Subramanian --- stable/consul/Chart.yaml | 2 +- stable/consul/templates/gossip-secret.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/stable/consul/Chart.yaml b/stable/consul/Chart.yaml index 47b93c2779..b3b158ba63 100755 --- a/stable/consul/Chart.yaml +++ b/stable/consul/Chart.yaml @@ -1,6 +1,6 @@ name: consul home: https://github.com/hashicorp/consul -version: 3.4.0 +version: 3.4.1 appVersion: 1.0.0 description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and diff --git a/stable/consul/templates/gossip-secret.yaml b/stable/consul/templates/gossip-secret.yaml index 6fd7d881fd..19dc3c4d5f 100644 --- a/stable/consul/templates/gossip-secret.yaml +++ b/stable/consul/templates/gossip-secret.yaml @@ -10,5 +10,9 @@ metadata: component: "{{ .Release.Name }}-{{ .Values.Component }}" type: Opaque data: + {{ if .Values.GossipKey }} + gossip-key: {{ .Values.GossipKey | b64enc }} + {{ else }} gossip-key: {{ randAlphaNum 24 | b64enc }} + {{ end }} {{ end }}