Repository navigation
Expand file tree
/
Copy pathdigest.example.yaml
More file actions
59 lines (59 loc) · 2.6 KB
/
Copy pathdigest.example.yaml
File metadata and controls
59 lines (59 loc) · 2.6 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# The Helm charts in deploy/helm/ are the maintained way to deploy; these plain
# manifests are kept as a reference for clusters without Helm.
#
# Example CronJob for the weekly digest: every Monday morning, one Slack post
# with each environment's latest runs of acceptance, pathfinder and
# performance over the past week, each against the run before, and the flags.
#
# It only reads from the Information Radiator, so it's quick and light.
# The image tag and secret names are placeholders.
apiVersion: batch/v1
kind: CronJob
metadata:
name: test-harness-weekly-digest
spec:
schedule: "52 8 * * 1" # Monday, 08:52
timeZone: "America/New_York" # requires Kubernetes >= 1.27
concurrencyPolicy: Forbid
jobTemplate:
spec:
backoffLimit: 1
activeDeadlineSeconds: 600
template:
spec:
restartPolicy: Never
containers:
- name: digest
image: ghcr.io/translatorsri/testharness:latest
imagePullPolicy: IfNotPresent
command: ["test-harness-radiator", "digest"]
env:
- name: SLACK_WEBHOOK_URL
valueFrom:
secretKeyRef: {name: test-harness-secrets, key: slack-webhook-url}
- name: SLACK_TOKEN
valueFrom:
secretKeyRef: {name: test-harness-secrets, key: slack-token}
- name: SLACK_CHANNEL
valueFrom:
secretKeyRef: {name: test-harness-secrets, key: slack-channel}
# Optional: a channel of the new radiator's own, alongside
# Zebrunner (see the README's "A Slack channel for the new
# radiator"). The token defaults to slack-token.
- name: RADIATOR_SLACK_WEBHOOK_URL
valueFrom:
secretKeyRef: {name: test-harness-secrets, key: radiator-slack-webhook-url, optional: true}
- name: RADIATOR_SLACK_CHANNEL
valueFrom:
secretKeyRef: {name: test-harness-secrets, key: radiator-slack-channel, optional: true}
- name: RADIATOR_URL
valueFrom:
secretKeyRef: {name: test-harness-secrets, key: radiator-url}
- name: RADIATOR_TOKEN
valueFrom:
secretKeyRef: {name: test-harness-secrets, key: radiator-token}
- name: RADIATOR_PUBLIC_URL
value: https://radiator.example.org
resources:
requests: {cpu: "100m", memory: "128Mi"}
limits: {memory: "256Mi"}