cs-codex-dist-tests/docker/continuous-tests-job.yaml

71 lines
1.9 KiB
YAML
Raw Normal View History

apiVersion: batch/v1
kind: Job
metadata:
2023-11-19 19:13:40 +00:00
name: ${NAMEPREFIX}
namespace: ${NAMESPACE}
labels:
2023-11-19 19:13:40 +00:00
name: ${NAMEPREFIX}
runid: ${RUNID}
spec:
ttlSecondsAfterFinished: 86400
backoffLimit: 0
template:
metadata:
name: ${NAMEPREFIX}
labels:
app: continuous-tests-runner
2023-11-19 19:13:40 +00:00
name: ${NAMEPREFIX}
runid: ${RUNID}
spec:
priorityClassName: system-node-critical
nodeSelector:
workload-type: "tests-runners-ci"
containers:
- name: ${NAMEPREFIX}-runner
image: codexstorage/cs-codex-dist-tests:latest
imagePullPolicy: Always
resources:
requests:
memory: "1Gi"
env:
- name: KUBECONFIG
value: "/opt/kubeconfig.yaml"
- name: LOGPATH
value: "/var/log/codex-continuous-tests/${DEPLOYMENT_NAMESPACE}"
- name: NAMESPACE
value: "${NAMESPACE}"
- name: BRANCH
value: "${BRANCH}"
- name: SOURCE
value: "${SOURCE}"
2023-07-21 07:03:10 +00:00
- name: RUNID
value: "${RUNID}"
- name: CODEXDOCKERIMAGE
value: "${CODEXDOCKERIMAGE}"
2023-07-21 07:03:10 +00:00
- name: TESTID
value: "${TESTID}"
- 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}"
volumeMounts:
- name: kubeconfig
mountPath: /opt/kubeconfig.yaml
subPath: kubeconfig.yaml
- name: logs
mountPath: /var/log/codex-continuous-tests
restartPolicy: Never
volumes:
- name: kubeconfig
secret:
secretName: codex-dist-tests-app-kubeconfig
- name: logs
hostPath:
path: /var/log/codex-continuous-tests