Skip to content
Snippets Groups Projects
Commit 6e840509 authored by Sören Henning's avatar Sören Henning
Browse files

Make results volume optional

parent c446d914
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!153Store benchmark execution results in operator volume,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
Pipeline #3758 failed
...@@ -31,8 +31,10 @@ spec: ...@@ -31,8 +31,10 @@ spec:
- name: RESULTS_FOLDER - name: RESULTS_FOLDER
value: "results" value: "results"
volumeMounts: volumeMounts:
{{- if .Values.operator.resultsVolume.enabled }}
- name: theodolite-pv-storage - name: theodolite-pv-storage
mountPath: "/deployments/results" mountPath: "/deployments/results"
{{- end }}
- name: benchmark-resources - name: benchmark-resources
mountPath: /work/benchmark-resources mountPath: /work/benchmark-resources
{{- if .Values.operator.sloChecker.lagTrend.enabled }} {{- if .Values.operator.sloChecker.lagTrend.enabled }}
...@@ -46,8 +48,11 @@ spec: ...@@ -46,8 +48,11 @@ spec:
- name: LOG_LEVEL - name: LOG_LEVEL
value: INFO value: INFO
{{- end }} {{- end }}
{{- if and .Values.operator.resultsVolume.enabled .Values.operator.resultsVolume.accessSidecar.enabled }}
- name: results-access - name: results-access
image: busybox:stable image: busybox:stable
image: "{{ .Values.operator.resultsVolume.accessSidecar.image }}:{{ .Values.operator.resultsVolume.accessSidecar.imageTag }}"
imagePullPolicy: "{{ .Values.operator.resultsVolume.accessSidecar.imagePullPolicy }}"
command: command:
- sh - sh
- -c - -c
...@@ -55,10 +60,13 @@ spec: ...@@ -55,10 +60,13 @@ spec:
volumeMounts: volumeMounts:
- mountPath: /results - mountPath: /results
name: theodolite-pv-storage name: theodolite-pv-storage
{{- end }}
volumes: volumes:
{{- if .Values.operator.resultsVolume.enabled }}
- name: theodolite-pv-storage - name: theodolite-pv-storage
persistentVolumeClaim: persistentVolumeClaim:
claimName: theodolite-pv-claim claimName: theodolite-pv-claim
{{- end }}
- name: benchmark-resources - name: benchmark-resources
configMap: configMap:
name: benchmark-resources name: benchmark-resources
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment