From 1db0c811872747848a19229c382bab3ac081f6f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de> Date: Wed, 23 Jun 2021 12:26:35 +0200 Subject: [PATCH] Make persistentVolumeClaim configurable --- .../helm/templates/theodolite/theodolite-operator.yaml | 6 +++--- execution/helm/values.yaml | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/execution/helm/templates/theodolite/theodolite-operator.yaml b/execution/helm/templates/theodolite/theodolite-operator.yaml index 15ce1cfbc..7e9194fb4 100644 --- a/execution/helm/templates/theodolite/theodolite-operator.yaml +++ b/execution/helm/templates/theodolite/theodolite-operator.yaml @@ -31,10 +31,10 @@ spec: - name: RESULTS_FOLDER value: "results" volumeMounts: - {{- if .Values.operator.resultsVolume.enabled }} + {{- if .Values.operator.resultsVolume.enabled }} - name: theodolite-pv-storage mountPath: "/deployments/results" - {{- end }} + {{- end }} - name: benchmark-resources mountPath: /work/benchmark-resources {{- if .Values.operator.sloChecker.lagTrend.enabled }} @@ -65,7 +65,7 @@ spec: {{- if .Values.operator.resultsVolume.enabled }} - name: theodolite-pv-storage persistentVolumeClaim: - claimName: theodolite-pv-claim + claimName: {{ .Values.operator.resultsVolume.persistentVolumeClaim.name | quote }} {{- end }} - name: benchmark-resources configMap: diff --git a/execution/helm/values.yaml b/execution/helm/values.yaml index 14c730795..4b970bf86 100644 --- a/execution/helm/values.yaml +++ b/execution/helm/values.yaml @@ -264,6 +264,8 @@ operator: resultsVolume: enabled: true + persistentVolumeClaim: + name: theodolite-pv-claim accessSidecar: enabled: true image: busybox -- GitLab