From e2842b01348165a3b6ce9a4abae83a2e703efb5a Mon Sep 17 00:00:00 2001 From: Angelo Fausti Date: Thu, 15 Feb 2024 16:24:20 -0700 Subject: [PATCH] Add conditional to create VaultSecret resource --- applications/sasquatch/templates/vault-secrets.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/sasquatch/templates/vault-secrets.yaml b/applications/sasquatch/templates/vault-secrets.yaml index aeb2dabbe9..409a86d6e5 100644 --- a/applications/sasquatch/templates/vault-secrets.yaml +++ b/applications/sasquatch/templates/vault-secrets.yaml @@ -14,6 +14,7 @@ metadata: spec: path: "{{ .Values.global.vaultSecretsPath }}/pull-secret" type: kubernetes.io/dockerconfigjson +{{- if (index .Values "strimzi-kafka" "connect" "enabled") }} --- apiVersion: ricoberger.de/v1alpha1 kind: VaultSecret @@ -28,3 +29,4 @@ spec: templates: .dockerconfigjson: >- {% index .Secrets "connect-push-secret" %} +{{- end }}