aboutsummaryrefslogtreecommitdiffstats
path: root/tools/moon_kubernetes/templates/moon_forming_functest.yaml
blob: 4cb2c3a09e51393eca4f4e4dc4eff8d9e6d9fc7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
apiVersion: batch/v1
kind: Job
metadata:
  name: functest
  namespace: moon
spec:
  template:
    metadata:
      name: functest
    spec:
      containers:
      - name: functest
        image: wukongsun/moon_forming:dev
        env:
        - name: COMMAND
          value: "functest"
        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