Skip to content

Commit 41c9933

Browse files
committed
syz-cluster: use unique names for migrate jobs
Make k8s generate unique names for migrate jobs to facilitate their run by CI/CD pipelines. Also set job expiration time.
1 parent 0919b50 commit 41c9933

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

syz-cluster/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ $ kubectl create namespace argo
2424
$ make k8s-config-argo | kubectl apply -f -
2525
$ make k8s-config-argo-wait
2626
$ make k8s-config-dev | kubectl apply -f -
27+
$ make migrate-job.yaml | kubectl create -f -
2728
```
2829
5. (Optional) Pre-fetch the kernel git repository:
2930
```

syz-cluster/db-mgmt/migrate-job.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
apiVersion: batch/v1
55
kind: Job
66
metadata:
7-
name: db-migrate-job
7+
generateName: db-migrate-job-
88
spec:
9+
ttlSecondsAfterFinished: 86400
910
template:
1011
spec:
1112
serviceAccountName: gke-db-admin-ksa

0 commit comments

Comments
 (0)