aboutsummaryrefslogtreecommitdiffstats
path: root/tools/moon_kubernetes/templates/moon_functest.yaml
diff options
context:
space:
mode:
authorAsteroide <thomas.duval@orange.com>2018-02-19 15:34:12 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-19 15:34:12 +0000
commite36a301b551e454ea8c28aa2beefd8f535d8f6fe (patch)
treec5e7fae4158b6c33b029a5397021e16731ace6d8 /tools/moon_kubernetes/templates/moon_functest.yaml
parentf4c44ba00f07c75099fbf0316c9e3bc53b83f30d (diff)
parentb38ecccb8ab9cd1e631f89c92f6b88e420b2a1b0 (diff)
Merge "Add the moon_pythonfunctest container to perform functionnal tests"
Diffstat (limited to 'tools/moon_kubernetes/templates/moon_functest.yaml')
-rw-r--r--tools/moon_kubernetes/templates/moon_functest.yaml27
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/moon_kubernetes/templates/moon_functest.yaml b/tools/moon_kubernetes/templates/moon_functest.yaml
new file mode 100644
index 00000000..d70ebb96
--- /dev/null
+++ b/tools/moon_kubernetes/templates/moon_functest.yaml
@@ -0,0 +1,27 @@
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: functest
+ namespace: moon
+spec:
+ template:
+ metadata:
+ name: functest
+ spec:
+ containers:
+ - name: functest
+ image: wukongsun/moon_python_func_test:latest
+ volumeMounts:
+ - name: config-volume
+ mountPath: /etc/moon
+ - name: tests-volume
+ mountPath: /data
+ volumes:
+ - name: config-volume
+ configMap:
+ name: moon-config
+ - name: tests-volume
+ hostPath:
+ path: "{{PATH}}"
+ restartPolicy: Never
+ #backoffLimit: 4