Matteo Scandolo | c342a24 | 2019-01-28 16:13:09 -0800 | [diff] [blame] | 1 | --- |
| 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 | |
| 16 | apiVersion: batch/v1 |
| 17 | kind: Job |
| 18 | metadata: |
| 19 | name: xos-tester |
| 20 | labels: |
| 21 | app: xos-tester |
| 22 | chart: xos-tester |
| 23 | release: {{ .Release.Name }} |
| 24 | heritage: {{ .Release.Service }} |
| 25 | spec: |
| 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 |