Fix Robot distribute test
[oom.git] / kubernetes / robot / templates / robot-deployment.yaml
index 3a98f87..154abb4 100644 (file)
@@ -1,3 +1,4 @@
+#{{ if not .Values.disableRobotRobot }}
 apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
@@ -14,28 +15,28 @@ spec:
        name: robot
     spec:
       containers:
-      - image: {{ .Values.image.testsuite }}
+      - command:
+        - bash
+        - "-c"
+        - |
+          git clone -b amsterdam --single-branch http://gerrit.onap.org/r/demo.git /tmp/demo
+          mkdir -p /share/heat && cp -rf /tmp/demo/heat /share
+          git clone -b amsterdam --single-branch http://gerrit.onap.org/r/testsuite/properties.git /tmp/testsuite/properties
+          mkdir -p /share/config && cp /tmp/testsuite/properties/integration_* /share/config
+          lighttpd -D -f /etc/lighttpd/lighttpd.conf
+        image: {{ .Values.image.testsuite }}
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: robot
         volumeMounts:
-        - name: robot-eteshare
-          mountPath: /share
+        - name: localtime
+          mountPath: /etc/localtime
+          readOnly: true
         - name: robot-resources-asdc-interface
           mountPath: /var/opt/OpenECOMP_ETE/robot/resources/asdc_interface.robot
-        - name: robot-resources-policy-interface
-          mountPath: /var/opt/OpenECOMP_ETE/robot/resources/policy_interface.robot
-        - name: robot-resources-sdngc-interface
-          mountPath: /var/opt/OpenECOMP_ETE/robot/resources/sdngc_interface.robot
+        - name: vm-properties
+          mountPath: /share/config/
         - name: lighttpd-authorization
           mountPath: /etc/lighttpd/authorization
-        - name: robot-assets-asdc-base-clearwater-env
-          mountPath: /var/opt/OpenECOMP_ETE/robot/assets/asdc/base_clearwater/base_clearwater.env
-        - name: robot-assets-asdc-base-vfw-env
-          mountPath: /var/opt/OpenECOMP_ETE/robot/assets/asdc/base_vfw/base_vfw.env
-        - name: robot-assets-asdc-base-vlb-env
-          mountPath: /var/opt/OpenECOMP_ETE/robot/assets/asdc/base_vlb/base_vlb.env
-        - name: robot-assets-asdc-base-vlb-dns-env
-          mountPath: /var/opt/OpenECOMP_ETE/robot/assets/asdc/base_vlb/dnsscaling.env
         ports:
         - containerPort: 88
         readinessProbe:
@@ -44,32 +45,18 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
-        - name: robot-eteshare
+        - name: localtime
           hostPath:
-            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/eteshare
+            path: /etc/localtime
         - name: robot-resources-asdc-interface
           hostPath:
             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/asdc_interface.robot
-        - name: robot-resources-policy-interface
+        - name: vm-properties
           hostPath:
-            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/policy_interface.robot
-        - name: robot-resources-sdngc-interface
-          hostPath:
-            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/sdngc_interface.robot
+            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/config
         - name: lighttpd-authorization
           hostPath:
             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/authorization
-        - name: robot-assets-asdc-base-clearwater-env
-          hostPath:
-            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/assets/asdc/base_clearwater/base_clearwater.env
-        - name: robot-assets-asdc-base-vfw-env
-          hostPath:
-            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/assets/asdc/base_vfw/base_vfw.env
-        - name: robot-assets-asdc-base-vlb-env
-          hostPath:
-            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/assets/asdc/base_vlb/base_vlb.env
-        - name: robot-assets-asdc-base-vlb-dns-env
-          hostPath:
-            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/assets/asdc/base_vlb/dnsscaling.env
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
+#{{ end }}
\ No newline at end of file