From cdc05ba506ee43fe7c25090a431972b13d307685 Mon Sep 17 00:00:00 2001 From: Wylie Hobbs Date: Thu, 12 Aug 2021 10:42:15 -0600 Subject: [PATCH] support volumes/volumeMounts in loadtester chart Signed-off-by: Wylie Hobbs --- charts/loadtester/Chart.yaml | 2 +- charts/loadtester/templates/deployment.yaml | 9 +++++++++ charts/loadtester/values.yaml | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/charts/loadtester/Chart.yaml b/charts/loadtester/Chart.yaml index c9b940390..a99ba088f 100644 --- a/charts/loadtester/Chart.yaml +++ b/charts/loadtester/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: loadtester -version: 0.19.0 +version: 0.19.1 appVersion: 0.18.0 kubeVersion: ">=1.11.0-0" engine: gotpl diff --git a/charts/loadtester/templates/deployment.yaml b/charts/loadtester/templates/deployment.yaml index 9f785ed94..c3fed6ec3 100644 --- a/charts/loadtester/templates/deployment.yaml +++ b/charts/loadtester/templates/deployment.yaml @@ -74,6 +74,15 @@ spec: {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.volumeMounts }} + volumeMounts: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- end }} + {{ with .Values.volumes }} + volumes: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/loadtester/values.yaml b/charts/loadtester/values.yaml index 1ebb06dd4..edcd5b3ca 100644 --- a/charts/loadtester/values.yaml +++ b/charts/loadtester/values.yaml @@ -29,6 +29,9 @@ resources: cpu: 10m memory: 64Mi +volumes: [] +volumeMounts: [] + nodeSelector: {} tolerations: []