forked from red-hat-data-services/ods-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathods-ci_pod.yaml
60 lines (59 loc) · 1.8 KB
/
ods-ci_pod.yaml
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
60
# PVC for storing the test-output artifacts created during a test run
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ods-ci
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: Pod
metadata:
labels:
deployment: ods-ci
name: ods-ci
namespace: ods-ci
spec:
securityContext:
# This is required to make the test-output volume Writable
fsGroup: 0
serviceAccountName: rhods-test-runner
containers:
- resources:
limits:
cpu: 2
memory: 2G
requests:
cpu: 1
memory:
800M
image: quay.io/modh/ods-ci:latest
imagePullPolicy: Always
name: ods-ci-testrun
env:
# Use this environment variable to pass args to the ods-ci run script in the container
- name: RUN_SCRIPT_ARGS
value: "--test-variables-file /tmp/ods-ci-test-variables/test-variables.yml --skip-oclogin true --set-urls-variables true --include Smoke"
- name: ROBOT_EXTRA_ARGS
# value: INSERT ROBOT FRAMEWORK ARGS OR LEAVE EMPTY. e.g., -i Smoke. Write inside the quotes
value: "-L DEBUG --dryrun"
volumeMounts:
# Mount the test-variables to prevent leaking secure info for the cluster you test against
- name: ods-ci-test-variables
mountPath: /tmp/ods-ci-test-variables
- mountPath: /tmp/ods-ci/ods_ci/test-output
name: ods-ci-test-output
restartPolicy: Never
volumes:
- name: ods-ci-test-variables
secret:
# Specify Secret that has the necessary test-variables.yml
secretName: ods-ci-test-variables
# Persistent Volume where we will store the test-output for this pod
- name: ods-ci-test-output
persistentVolumeClaim:
claimName: ods-ci