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 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'helm/robot/templates/test-job.yaml') 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 -- cgit 1.2.3-korg