From 22639198aa960ea5f10097f7cc5c1672e9c96bd3 Mon Sep 17 00:00:00 2001 From: Christine Banek Date: Thu, 7 Apr 2022 14:48:42 -0700 Subject: [PATCH] [DM-34317] Gate creating secret on having somewhere to publish --- charts/sherlock/Chart.yaml | 2 +- charts/sherlock/templates/vault-secret.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/sherlock/Chart.yaml b/charts/sherlock/Chart.yaml index f778561e..60a6d6fe 100644 --- a/charts/sherlock/Chart.yaml +++ b/charts/sherlock/Chart.yaml @@ -3,6 +3,6 @@ appVersion: 0.1.5 description: A Helm chart for Kubernetes name: sherlock type: application -version: 0.1.9 +version: 0.1.10 maintainers: - name: cbanek diff --git a/charts/sherlock/templates/vault-secret.yaml b/charts/sherlock/templates/vault-secret.yaml index e9fe80f4..c661aba3 100644 --- a/charts/sherlock/templates/vault-secret.yaml +++ b/charts/sherlock/templates/vault-secret.yaml @@ -1,3 +1,4 @@ +{{- if .Values.publish_url }} apiVersion: ricoberger.de/v1alpha1 kind: VaultSecret metadata: @@ -7,3 +8,4 @@ metadata: spec: path: {{ required "vaultSecretsPath must be set" .Values.vaultSecretsPath | quote }} type: Opaque +{{- end }}