From 6ebe5b6521d3dc5f98981ffded70155b537c533e Mon Sep 17 00:00:00 2001 From: rameshiyer27 Date: Tue, 14 Feb 2023 17:52:49 +0000 Subject: Add volume mount for storing k8s robot logs to the host Issue-ID: POLICY-4546 Signed-off-by: zrrmmua Change-Id: I498aa9db39d6b04e685a893c9bca41c6bb108265 --- helm/robot/templates/test-job.yaml | 9 ++++++++- helm/robot/values.yaml | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'helm/robot') diff --git a/helm/robot/templates/test-job.yaml b/helm/robot/templates/test-job.yaml index 5d8a610f..ed1669a9 100644 --- a/helm/robot/templates/test-job.yaml +++ b/helm/robot/templates/test-job.yaml @@ -49,4 +49,11 @@ spec: - name: ROBOT_FILE value: {{ .Values.robot }} command: [ "./run-test.sh", "$(ROBOT_FILE)" ] - restartPolicy: Never \ No newline at end of file + volumeMounts: + - name: robot-csit-pv + mountPath: /tmp + restartPolicy: Never + volumes: + - name: robot-csit-pv + hostPath: + path: {{ .Values.robotLogDir }} \ No newline at end of file diff --git a/helm/robot/values.yaml b/helm/robot/values.yaml index 95df6fa0..5baf8aac 100644 --- a/helm/robot/values.yaml +++ b/helm/robot/values.yaml @@ -67,4 +67,4 @@ affinity: {} robot: "" readiness: [] - +robotLogDir: "" -- cgit 1.2.3-korg