-
Notifications
You must be signed in to change notification settings - Fork 46
/
job.yaml
64 lines (64 loc) · 1.61 KB
/
job.yaml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
apiVersion: batch/v1
kind: Job
metadata:
labels:
app: jx-boot
jenkins-x.io/kind: jx-git-operator
spec:
backoffLimit: 4
completions: 1
parallelism: 1
ttlSecondsAfterFinished: 86400
template:
metadata:
labels:
app: jx-boot
jenkins-x.io/kind: jx-git-operator
spec:
initContainers:
- args:
- gitops
- git
- clone
command:
- jx
env:
- name: XDG_CONFIG_HOME
value: /workspace/xdg_config
envFrom:
- secretRef:
name: jx-boot-job-env-vars
optional: true
image: ghcr.io/jenkins-x/jx-boot:3.11.2
name: git-clone
volumeMounts:
- mountPath: /workspace
name: workspace-volume
workingDir: /workspace
containers:
- args:
- apply
command:
- make
env:
- name: XDG_CONFIG_HOME
value: /workspace/xdg_config
envFrom:
- secretRef:
name: jx-boot-job-env-vars
optional: true
image: ghcr.io/jenkins-x/jx-boot:3.11.2
imagePullPolicy: Always
name: job
volumeMounts:
- mountPath: /workspace
name: workspace-volume
workingDir: /workspace/source
dnsPolicy: ClusterFirst
restartPolicy: Never
schedulerName: default-scheduler
serviceAccountName: jx-boot-job
terminationGracePeriodSeconds: 30
volumes:
- name: workspace-volume
emptyDir: {}