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

Merge branch 'store-results-in-volume' into 'theodolite-kotlin'

Store benchmark execution results in operator volume

See merge request !153
parents f8c5e85e 1db0c811
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 #3776 passed
......@@ -15,6 +15,8 @@ spec:
spec:
terminationGracePeriodSeconds: 0
serviceAccountName: {{ include "theodolite.serviceAccountName" . }}
securityContext:
runAsUser: 0 # Set the permissions for write access to the volumes.
containers:
- name: theodolite
image: "{{ .Values.operator.image }}:{{ .Values.operator.imageTag }}"
......@@ -26,7 +28,13 @@ spec:
value: operator
- name: THEODOLITE_APP_RESOURCES
value: "./benchmark-resources"
- 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 }}
......@@ -40,7 +48,25 @@ 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
- exec tail -f /dev/null
volumeMounts:
- mountPath: /results
name: theodolite-pv-storage
{{- end }}
volumes:
{{- if .Values.operator.resultsVolume.enabled }}
- name: theodolite-pv-storage
persistentVolumeClaim:
claimName: {{ .Values.operator.resultsVolume.persistentVolumeClaim.name | quote }}
{{- end }}
- name: benchmark-resources
configMap:
name: benchmark-resources
......
......@@ -262,6 +262,17 @@ operator:
imageTag: theodolite-kotlin-latest
imagePullPolicy: Always
resultsVolume:
enabled: true
persistentVolumeClaim:
name: theodolite-pv-claim
accessSidecar:
enabled: true
image: busybox
imageTag: stable
imagePullPolicy: IfNotPresent
serviceAccount:
create: true
......
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