1
0
Fork 0
llvm-premerge-checks/kubernetes/cron/buildkite.yaml

63 lines
2 KiB
YAML
Raw Normal View History

2021-05-20 17:29:27 +02:00
# Copyright 2021 Google LLC
#
# Licensed under the the Apache License v2.0 with LLVM Exceptions (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://llvm.org/LICENSE.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
2023-09-04 18:19:39 +02:00
apiVersion: batch/v1
2021-05-20 17:29:27 +02:00
kind: CronJob
metadata:
name: buildkite-stats
2021-05-20 17:29:27 +02:00
namespace: buildkite
spec:
schedule: "0 * * * *"
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 24
failedJobsHistoryLimit: 3
jobTemplate:
spec:
template:
spec:
containers:
- name: collect-buildkite-stats
image: gcr.io/llvm-premerge-checks/stats:latest
2023-09-04 18:21:09 +02:00
args: ["/root/llvm-premerge-checks/scripts/metrics/connect_db.sh download_buildkite_builds_pg.sh"]
2021-05-20 17:29:27 +02:00
env:
- name: BUILDKITE_AGENT_TOKEN
valueFrom:
secretKeyRef:
name: buildkite-agent-token
key: token
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: CONDUIT_TOKEN
valueFrom:
secretKeyRef:
name: conduit-api-token
key: token
- name: BUILDKITE_API_TOKEN
valueFrom:
secretKeyRef:
name: buildkite-api-token
key: token
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: db-stats
key: password
- name: SCRIPTS_REFSPEC
2021-05-31 15:59:27 +02:00
value: "main"
2021-05-20 17:29:27 +02:00
restartPolicy: Never
nodeSelector:
2023-09-04 18:19:39 +02:00
cloud.google.com/gke-nodepool: default-pool