2020-04-01 11:35:10 +00:00
|
|
|
---
|
2020-05-28 15:22:48 +00:00
|
|
|
kind: Template
|
|
|
|
apiVersion: v1
|
2020-04-01 11:35:10 +00:00
|
|
|
metadata:
|
|
|
|
name: jjb-validate
|
2020-05-28 15:22:48 +00:00
|
|
|
objects:
|
|
|
|
- apiVersion: batch/v1
|
|
|
|
kind: Job
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: jjb-validate
|
|
|
|
jjb/session: "${SESSION}"
|
|
|
|
name: jjb-validate
|
2020-04-01 11:35:10 +00:00
|
|
|
spec:
|
2020-05-28 15:22:48 +00:00
|
|
|
ttlSecondsAfterFinished: 0
|
|
|
|
backoffLimit: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: jjb-validate
|
|
|
|
jjb/session: "${SESSION}"
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: jjb-validate
|
|
|
|
image: 172.30.254.79:5000/ceph-csi/jjb:latest
|
|
|
|
env:
|
|
|
|
- name: GIT_REPO
|
|
|
|
value: https://github.com/ceph/ceph-csi
|
|
|
|
- name: GIT_REF
|
|
|
|
value: ci/centos
|
|
|
|
restartPolicy: Never
|
|
|
|
parameters:
|
|
|
|
- name: SESSION
|
|
|
|
description: unique ID for the session to track the pod for the job
|
|
|
|
required: true
|