Skip to content

Commit 3af455d

Browse files
committedFeb 6, 2023
Create job to update Prow's ClusterfuzzLite image twice a month
1 parent ded8609 commit 3af455d

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed
 

‎config/jobs/kubernetes/test-infra/test-infra-periodics.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ periodics:
6565
spec:
6666
serviceAccountName: fuzz-test
6767
containers:
68-
#TODO(mpherman) : Change to versioned once stable
6968
- image: gcr.io/k8s-testimages/clusterfuzzlite:v20230201-4b504e83f1
7069
command:
7170
- runner.sh

‎config/jobs/kubernetes/test-infra/test-infra-trusted.yaml

+22-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ postsubmits:
5353
annotations:
5454
testgrid-dashboards: "sig-testing-images"
5555
testgrid-tab-name: "clusterfuzzlite-push"
56-
description: builds and pushes the clusterfuzzlite image
56+
description: builds and pushes the clusterfuzzlite image on change
5757
decorate: true
5858
branches:
5959
- ^master$
@@ -806,6 +806,27 @@ periodics:
806806
testgrid-tab-name: rotate-legacy-default-build-sa-json-key
807807
testgrid-alert-email: kubernetes-sig-testing-alerts@googlegroups.com, k8s-infra-oncall@google.com
808808
description: Rotate legacy build cluster service account json key.
809+
# This job keeps the Prow Clusterfuzzlite image up to date.
810+
- cron: "30 1 1,15 * *" # At 01:30 on day-of-month 1 and 15.
811+
name: update-clusterfuzz-lite
812+
cluster: test-infra-trusted
813+
decorate: true
814+
spec:
815+
serviceAccountName: deployer # TODO(fejta): should be pusher
816+
containers:
817+
- image: gcr.io/k8s-staging-test-infra/image-builder:v20230111-cd1b3caf9c
818+
command:
819+
- /run.sh
820+
args:
821+
- --scratch-bucket=gs://k8s-testimages-scratch
822+
- --project=k8s-testimages
823+
- --build-dir=.
824+
- experiment/clusterfuzzlite/'
825+
annotations:
826+
testgrid-dashboards: "sig-testing-images"
827+
testgrid-tab-name: "clusterfuzzlite-update"
828+
description: builds and pushes the clusterfuzzlite image regularly
829+
809830

810831
# This job is used as a heartbeat health check of the Prow instance's ability to run jobs.
811832
# Alerts expect it to run every 5 mins and will fire after 20 mins without a successful run.

‎experiment/clusterfuzzlite/Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414

1515
FROM gcr.io/k8s-staging-test-infra/bootstrap:v20210913-fc7c4e84f6
1616

17-
#TODO(mpherman) : Change to versioned once stable
18-
FROM gcr.io/oss-fuzz-base/cifuzz-base@sha256:de5eb4b2937831723cffd31d684b50442bc50f55b4a4019be83231f20270b2ba
19-
COPY --from=gcr.io/oss-fuzz-base/cifuzz-base /opt/oss-fuzz /opt/
17+
FROM gcr.io/oss-fuzz-base/cifuzz-base:latest
18+
COPY --from=gcr.io/oss-fuzz-base/cifuzz-base:latest /opt/oss-fuzz /opt/
2019

2120
#
2221
# BEGIN: DOCKER IN DOCKER SETUP

0 commit comments

Comments
 (0)
Please sign in to comment.