diff options
author | Mandeep Khinda <mandeep.khinda@amdocs.com> | 2018-05-17 20:08:42 +0000 |
---|---|---|
committer | Mandeep Khinda <mandeep.khinda@amdocs.com> | 2018-05-17 20:12:21 +0000 |
commit | 80d2d725009f49a6e0ca4748e847db7bb93fc859 (patch) | |
tree | b496b6b8ad7dd7715a2354b3d56604238504ca88 /templates/deployment.yaml | |
parent | 91af4b70f8d99c0a6469be0e3fd23d60da71f73c (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 'templates/deployment.yaml')
-rw-r--r-- | templates/deployment.yaml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 0b65809..e5cc1d3 100644 --- a/templates/deployment.yaml +++ b/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 |