2023-06-04 17:28:17 +00:00
|
|
|
apiVersion: batch/v1
|
|
|
|
kind: Job
|
|
|
|
metadata:
|
|
|
|
name: ${NAMEPREFIX}-${RUNID}
|
|
|
|
namespace: ${NAMESPACE}
|
|
|
|
labels:
|
|
|
|
name: ${NAMEPREFIX}-${RUNID}
|
|
|
|
run-id: ${RUNID}
|
|
|
|
spec:
|
|
|
|
backoffLimit: 0
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
name: ${NAMEPREFIX}
|
2023-09-19 14:53:15 +00:00
|
|
|
labels:
|
|
|
|
app: dist-tests-runner
|
|
|
|
name: ${NAMEPREFIX}-${RUNID}
|
|
|
|
run-id: ${RUNID}
|
2023-06-04 17:28:17 +00:00
|
|
|
spec:
|
2023-11-13 20:37:00 +00:00
|
|
|
priorityClassName: system-node-critical
|
|
|
|
nodeSelector:
|
2023-11-27 17:22:28 +00:00
|
|
|
workload-type: "tests-runners-ci"
|
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-13 20:37:00 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
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-06 13:09:51 +00:00
|
|
|
value: "/var/log/codex-dist-tests"
|
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-07-21 07:03:10 +00:00
|
|
|
- name: TESTID
|
2023-09-11 12:36:36 +00:00
|
|
|
value: "${TESTID}"
|
2023-06-04 17:28:17 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: kubeconfig
|
|
|
|
mountPath: /opt/kubeconfig.yaml
|
|
|
|
subPath: kubeconfig.yaml
|
|
|
|
- name: logs
|
2023-09-19 14:53:15 +00:00
|
|
|
mountPath: /var/log/codex-dist-tests
|
|
|
|
args: ${COMMAND}
|
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-09-19 14:53:15 +00:00
|
|
|
path: /var/log/codex-dist-tests
|