blob: eaa6d86a9800a1656c66ce368432a602961ea07e [file] [log] [blame]
Matteo Scandoloc342a242019-01-28 16:13:09 -08001---
2# Copyright 2018-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16apiVersion: batch/v1
17kind: Job
18metadata:
19 name: xos-tester
20 labels:
21 app: xos-tester
22 chart: xos-tester
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
25spec:
26 template:
27 metadata:
28 labels:
29 app: xos-tester
30 release: {{ .Release.Name }}
31 spec:
32 restartPolicy: Never
33 containers:
34 - name: xos-tester
35 image: {{ .Values.global.registry }}{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }}
36 imagePullPolicy: {{ .Values.image.pullPolicy }}
37 command: [
38 "bash",
39 "run_tests.sh"
40 ]
41 volumeMounts:
42 - name: xos-tester-command
43 mountPath: /src/cord-api/Tests/run_tests.sh
44 subPath: command/run_tests.sh
45 volumes:
46 - name: xos-tester-command
47 configMap:
48 name: xos-tester-command
49 items:
50 - key: command
51 path: command/run_tests.sh