diff --git a/execution/helm/templates/theodolite/theodolite-operator.yaml b/execution/helm/templates/theodolite/theodolite-operator.yaml index 03418c14cf0e34a02d9b2181bae714b364214389..15ce1cfbcd95a5888fc9acf4704bdf8947cbb238 100644 --- a/execution/helm/templates/theodolite/theodolite-operator.yaml +++ b/execution/helm/templates/theodolite/theodolite-operator.yaml @@ -31,8 +31,10 @@ spec: - name: RESULTS_FOLDER value: "results" volumeMounts: + {{- if .Values.operator.resultsVolume.enabled }} - name: theodolite-pv-storage mountPath: "/deployments/results" + {{- end }} - name: benchmark-resources mountPath: /work/benchmark-resources {{- if .Values.operator.sloChecker.lagTrend.enabled }} @@ -46,8 +48,11 @@ spec: - name: LOG_LEVEL value: INFO {{- end }} + {{- if and .Values.operator.resultsVolume.enabled .Values.operator.resultsVolume.accessSidecar.enabled }} - name: results-access image: busybox:stable + image: "{{ .Values.operator.resultsVolume.accessSidecar.image }}:{{ .Values.operator.resultsVolume.accessSidecar.imageTag }}" + imagePullPolicy: "{{ .Values.operator.resultsVolume.accessSidecar.imagePullPolicy }}" command: - sh - -c @@ -55,10 +60,13 @@ spec: volumeMounts: - mountPath: /results name: theodolite-pv-storage + {{- end }} volumes: + {{- if .Values.operator.resultsVolume.enabled }} - name: theodolite-pv-storage persistentVolumeClaim: claimName: theodolite-pv-claim + {{- end }} - name: benchmark-resources configMap: name: benchmark-resources