aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/robot/templates/deployment.yaml
diff options
context:
space:
mode:
authorMandeep Khinda <mandeep.khinda@amdocs.com>2018-05-17 20:08:42 +0000
committerMandeep Khinda <mandeep.khinda@amdocs.com>2018-05-17 20:12:21 +0000
commit1a8ec773a8f7a8eadd6f2450a15f1c94031d7a1c (patch)
treee0b991fb6a49c8e0c0dcd50f86337a3555dd647d /kubernetes/robot/templates/deployment.yaml
parent1126b3284a20c8b017b85ff504624fe9c20b0522 (diff)
storing robot logs on the pv
so we don't lose test history anymore after the pod restarts Issue-ID: OOM-875 Change-Id: Ic1e0eb0263f7a346866a58c674cab1da29e52608 Signed-off-by: Mandeep Khinda <mandeep.khinda@amdocs.com>
Diffstat (limited to 'kubernetes/robot/templates/deployment.yaml')
-rw-r--r--kubernetes/robot/templates/deployment.yaml11
1 files changed, 10 insertions, 1 deletions
diff --git a/kubernetes/robot/templates/deployment.yaml b/kubernetes/robot/templates/deployment.yaml
index 0b658093bf..e5cc1d3a0f 100644
--- a/kubernetes/robot/templates/deployment.yaml
+++ b/kubernetes/robot/templates/deployment.yaml
@@ -77,12 +77,14 @@ spec:
subPath: sdngc_interface.robot
- name: robot-resources
mountPath: /var/opt/OpenECOMP_ETE/robot/resources/oof_interface.robot
- subPath: oof_interface.robot
+ subPath: oof_interface.robot
- name: robot-lighttpd-authorization
mountPath: /etc/lighttpd/authorization
subPath: authorization
- name: demodir
mountPath: /share
+ - name: robot-logs
+ mountPath: /share/logs
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- if .Values.nodeSelector }}
@@ -94,6 +96,13 @@ spec:
{{ toYaml .Values.affinity | indent 10 }}
{{- end }}
volumes:
+ {{- if .Values.persistence.enabled }}
+ - name: robot-logs
+ persistentVolumeClaim:
+ claimName: {{ include "common.fullname" . }}
+ {{- else }}
+ emptyDir: {}
+ {{- end }}
- name: localtime
hostPath:
path: /etc/localtime