Add the Prow job to run config-bootstrapper periodically
@@ -43,3 +43,51 @@ postsubmits:
- deploy
- deploy-build
- deploy-monitoring
+
+periodics:
+# Run config-bootstrapper Prow job every day to make sure the configmaps on the
+# Prow cluster are always consistent with configs files in the GitHub repo.
+# For more contexts, check https://github.com/knative/test-infra/issues/3220.
+# Scheduled to run at 12AM PST.
+- cron: "0 7 * * *"
+ name: ci-knative-test-infra-config-bootstrapper
+ agent: kubernetes
+ decorate: true
+ cluster: "prow-trusted"
+ extra_refs:
+ - org: knative
+ repo: test-infra
+ base_ref: main
+ path_alias: knative.dev/test-infra
+ annotations:
+ testgrid-dashboards: utilities
+ testgrid-tab-name: ci-knative-test-infra-config-bootstrapper
+ testgrid-alert-email: "serverless-engprod-sea@google.com"
+ testgrid-num-failures-to-alert: "1"
+ reporter_config:
+ slack:
+ channel: productivity
+ job_states_to_report:
+ - failure
+ report_template: '"The config-bootstrapper periodic job fails, check the log: <{{.Status.URL}}|View logs>"'
+ spec:
+ containers:
+ - image: gcr.io/k8s-prow/config-bootstrapper:v20220404-e2e605a820
+ imagePullPolicy: Always
+ command:
+ - config-bootstrapper
+ args:
+ - --config-path=prow/config.yaml
+ - --job-config-path=prow/jobs
+ - --plugin-config=prow/plugins.yaml
+ - --source-path=.
+ - --kubeconfig=/etc/prow-kubeconfig/kubeconfig.yaml
+ - --dry-run=false
+ volumeMounts:
+ - name: prow-kubeconfig
+ mountPath: /etc/prow-kubeconfig
+ readOnly: true
+ volumes:
+ - name: prow-kubeconfig
+ secret:
+ secretName: prow-kubeconfig
