+#{{ if not .Values.disableRobotRobot }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: robot
- namespace: {{ .Values.NS }}
+ namespace: "{{ .Values.nsPrefix }}"
spec:
+ replicas: {{ .Values.robotReplicas }}
selector:
matchLabels:
app: robot
imagePullPolicy: {{ .Values.pullPolicy }}
name: robot
volumeMounts:
+ - name: localtime
+ mountPath: /etc/localtime
+ readOnly: true
- name: robot-eteshare
- mountPath: /share
- - name: robot-assets
- mountPath: /var/opt/OpenECOMP_ETE/robot/assets
+ mountPath: /share/config
- name: robot-resources
- mountPath: /var/opt/OpenECOMP_ETE/robot/resources
- - name: robot-testsuites
- mountPath: /var/opt/OpenECOMP_ETE/robot/testsuites
+ mountPath: /var/opt/OpenECOMP_ETE/robot/resources/asdc_interface.robot
+ subPath: asdc_interface.robot
+ - name: robot-resources
+ mountPath: /var/opt/OpenECOMP_ETE/robot/resources/policy_interface.robot
+ subPath: policy_interface.robot
+ - name: robot-resources
+ mountPath: /var/opt/OpenECOMP_ETE/robot/resources/sdngc_interface.robot
+ subPath: sdngc_interface.robot
- name: lighttpd-authorization
mountPath: /etc/lighttpd/authorization
+ subPath: authorization
ports:
- containerPort: 88
readinessProbe:
initialDelaySeconds: 5
periodSeconds: 10
volumes:
- - name: robot-eteshare
- hostPath:
- path: /dockerdata-nfs/onap/robot/eteshare
- - name: robot-assets
+ - name: localtime
hostPath:
- path: /dockerdata-nfs/onap/robot/robot/assets
+ path: /etc/localtime
+ - name: robot-eteshare
+ configMap:
+ name: robot-eteshare-configmap
+ defaultMode: 0755
- name: robot-resources
- hostPath:
- path: /dockerdata-nfs/onap/robot/robot/resources
- - name: robot-testsuites
- hostPath:
- path: /dockerdata-nfs/onap/robot/robot/testsuites
+ configMap:
+ name: robot-resources-configmap
- name: lighttpd-authorization
- hostPath:
- path: /dockerdata-nfs/onap/robot/authorization
+ configMap:
+ name: lighttpd-authorization-configmap
imagePullSecrets:
- - name: onap-docker-registry-key
+ - name: "{{ .Values.nsPrefix }}-docker-registry-key"
+#{{ end }}