2023-06-04 17:28:17 +00:00
|
|
|
apiVersion: batch/v1
|
|
|
|
kind: Job
|
|
|
|
metadata:
|
2023-11-19 19:13:40 +00:00
|
|
|
name: ${NAMEPREFIX}
|
2023-06-04 17:28:17 +00:00
|
|
|
namespace: ${NAMESPACE}
|
|
|
|
labels:
|
2023-11-19 19:13:40 +00:00
|
|
|
name: ${NAMEPREFIX}
|
2023-11-06 13:09:51 +00:00
|
|
|
runid: ${RUNID}
|
2023-06-04 17:28:17 +00:00
|
|
|
spec:
|
2023-11-24 18:29:50 +00:00
|
|
|
ttlSecondsAfterFinished: 86400
|
2023-06-04 17:28:17 +00:00
|
|
|
backoffLimit: 0
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
name: ${NAMEPREFIX}
|
2023-09-19 14:53:15 +00:00
|
|
|
labels:
|
2023-11-06 13:09:51 +00:00
|
|
|
app: continuous-tests-runner
|
2023-11-19 19:13:40 +00:00
|
|
|
name: ${NAMEPREFIX}
|
2023-11-06 13:09:51 +00:00
|
|
|
runid: ${RUNID}
|
2023-06-04 17:28:17 +00:00
|
|
|
spec:
|
2023-11-06 13:09:51 +00:00
|
|
|
priorityClassName: system-node-critical
|
|
|
|
nodeSelector:
|
2023-11-13 20:37:00 +00:00
|
|
|
workload-type: "tests-runners"
|
2023-06-04 17:28:17 +00:00
|
|
|
containers:
|
|
|
|
- name: ${NAMEPREFIX}-runner
|
2023-08-16 11:46:17 +00:00
|
|
|
image: codexstorage/cs-codex-dist-tests:latest
|
|
|
|
imagePullPolicy: Always
|
2023-11-06 13:09:51 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
2023-11-13 20:37:00 +00:00
|
|
|
memory: "1Gi"
|
2023-06-04 17:28:17 +00:00
|
|
|
env:
|
|
|
|
- name: KUBECONFIG
|
2023-11-06 13:09:51 +00:00
|
|
|
value: "/opt/kubeconfig.yaml"
|
2023-06-04 17:28:17 +00:00
|
|
|
- name: LOGPATH
|
2023-11-13 10:50:32 +00:00
|
|
|
value: "/var/log/codex-continuous-tests/${DEPLOYMENT_NAMESPACE}"
|
2023-06-04 17:28:17 +00:00
|
|
|
- name: NAMESPACE
|
2023-11-06 13:09:51 +00:00
|
|
|
value: "${NAMESPACE}"
|
2023-06-04 17:28:17 +00:00
|
|
|
- name: BRANCH
|
2023-11-06 13:09:51 +00:00
|
|
|
value: "${BRANCH}"
|
2023-06-04 17:28:17 +00:00
|
|
|
- name: SOURCE
|
2023-11-06 13:09:51 +00:00
|
|
|
value: "${SOURCE}"
|
2023-07-21 07:03:10 +00:00
|
|
|
- name: RUNID
|
2023-11-06 13:09:51 +00:00
|
|
|
value: "${RUNID}"
|
2023-11-22 19:04:59 +00:00
|
|
|
- name: CODEXDOCKERIMAGE
|
|
|
|
value: "${CODEXDOCKERIMAGE}"
|
2023-07-21 07:03:10 +00:00
|
|
|
- name: TESTID
|
2023-09-11 12:36:36 +00:00
|
|
|
value: "${TESTID}"
|
2023-11-06 13:09:51 +00:00
|
|
|
- name: DEPLOYMENT_NAMESPACE
|
|
|
|
value: "${DEPLOYMENT_NAMESPACE}"
|
|
|
|
- name: TESTS_TYPE
|
|
|
|
value: "continuous-tests"
|
|
|
|
- name: TESTS_TARGET_DURATION
|
|
|
|
value: "${TESTS_TARGET_DURATION}"
|
|
|
|
- name: TESTS_FILTER
|
|
|
|
value: "${TESTS_FILTER}"
|
|
|
|
- name: TESTS_CLEANUP
|
|
|
|
value: "${TESTS_CLEANUP}"
|
2023-06-04 17:28:17 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: kubeconfig
|
|
|
|
mountPath: /opt/kubeconfig.yaml
|
|
|
|
subPath: kubeconfig.yaml
|
|
|
|
- name: logs
|
2023-11-06 13:09:51 +00:00
|
|
|
mountPath: /var/log/codex-continuous-tests
|
2023-06-04 17:28:17 +00:00
|
|
|
restartPolicy: Never
|
|
|
|
volumes:
|
|
|
|
- name: kubeconfig
|
|
|
|
secret:
|
2023-09-19 14:53:15 +00:00
|
|
|
secretName: codex-dist-tests-app-kubeconfig
|
2023-06-04 17:28:17 +00:00
|
|
|
- name: logs
|
|
|
|
hostPath:
|
2023-11-06 13:09:51 +00:00
|
|
|
path: /var/log/codex-continuous-tests
|