blob: 8249e9c774e59b5465b540801b3d0c310038250e (
plain)
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
|
# Copyright 2025 syzkaller project authors. All rights reserved.
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
apiVersion: batch/v1
kind: CronJob
metadata:
name: kernel-repo-update
spec:
schedule: "0 */6 * * *" # Update every 6 hours
jobTemplate:
spec:
template:
spec:
restartPolicy: Never
volumes:
- name: git-repo
persistentVolumeClaim:
claimName: base-kernel-repo-pv-claim
containers:
- name: git-updater-debug-job
image: alpine/git:latest
imagePullPolicy: IfNotPresent
volumeMounts:
- name: git-repo
mountPath: /repo.git
resources:
requests:
cpu: 4
memory: 8G
limits:
cpu: 8
memory: 16G
command: # TODO: request the trees via the controller's API.
- "/bin/sh"
- "-c"
- |
cd /repo.git
if [ ! -d "refs" ]; then
git init --bare
fi
if ! git config --get remote.torvalds.url > /dev/null; then
git remote add torvalds git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
fi
git fetch torvalds --tags
git tag -f torvalds-head torvalds/master
|