From 7c489f480cdc96562d6c7155e4bfb43167b232ba Mon Sep 17 00:00:00 2001 From: Keith Suderman Date: Fri, 18 Aug 2023 15:46:26 -0400 Subject: [PATCH] Only execute the if CVMFS is actually enabled. --- galaxy/templates/hook-cvmfs-fix.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/galaxy/templates/hook-cvmfs-fix.yaml b/galaxy/templates/hook-cvmfs-fix.yaml index 12ab3cbd..1caa21ba 100644 --- a/galaxy/templates/hook-cvmfs-fix.yaml +++ b/galaxy/templates/hook-cvmfs-fix.yaml @@ -1,3 +1,5 @@ +{{- if and .Values.refdata.enabled (eq .Values.refdata.type "cvmfs") }} + # Include the code you want to run when both conditions are met apiVersion: batch/v1 kind: Job metadata: @@ -33,3 +35,5 @@ spec: - name: kubectl-script configMap: name: "{{ .Release.Name }}-configmap-cvmfs-fix" +{{- end }} +