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
|
2020-07-24 12:38:57 +00:00
|
|
|
image: image-registry.openshift-image-registry.svc:5000/ceph-csi/jjb:latest
|
2020-05-28 15:22:48 +00:00
|
|
|
env:
|
|
|
|
- name: GIT_REPO
|
2020-11-01 11:31:05 +00:00
|
|
|
value: "${GIT_REPO}"
|
2020-05-28 15:22:48 +00:00
|
|
|
- name: GIT_REF
|
2020-09-22 09:07:16 +00:00
|
|
|
value: "${GIT_REF}"
|
2020-05-28 15:22:48 +00:00
|
|
|
restartPolicy: Never
|
|
|
|
parameters:
|
|
|
|
- name: SESSION
|
|
|
|
description: unique ID for the session to track the pod for the job
|
|
|
|
required: true
|
2020-09-22 09:07:16 +00:00
|
|
|
- name: GIT_REF
|
|
|
|
description: the git branch or other ref to checkout and validate
|
|
|
|
value: ci/centos
|
|
|
|
required: false
|
2020-11-01 11:31:05 +00:00
|
|
|
- name: GIT_REPO
|
|
|
|
description: the git repo or other fork to checkout and validate
|
|
|
|
value: https://github.com/ceph/ceph-csi
|
|
|
|
required: false
|