forked from red-hat-data-services/ods-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ods-ci_pod_oc_idp.yaml
59 lines (59 loc) · 1.75 KB
/
ods-ci_pod_oc_idp.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
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ods-ci
namespace: ods-ci
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: Pod
metadata:
labels:
deployment: ods-ci
name: ods-ci-no-ocm-smoke
namespace: ods-ci
spec:
securityContext:
# This is required to make the test-output volume Writable
fsGroup: 0
serviceAccountName: rhods-test-runner
containers:
# - image: quay.io/modh/ods-ci:116-mps
- image: quay.io/modh/ods-ci:latest
imagePullPolicy: Always
name: ods-ci-testrun
serviceAccountName: rhods-test-runner
env:
# Use this environment variable to pass args to the ods-ci run script in the container
- name: OC_HOST
value: "https://api.mycluster.abcd.domain.org:1234"
- name: SET_ENVIRONMENT
value: "1"
- name: USE_OCM_IDP
value: "0"
- name: RUN_SCRIPT_ARGS
value: "--skip-oclogin false --set-urls-variables true"
- name: ROBOT_EXTRA_ARGS
value: "-i Smoke --dryrun"
volumeMounts:
# Mount the test-variables to prevent leaking secure info for the cluster you test against
- mountPath: /tmp/ods-ci/test-output
name: ods-ci-test-output
- mountPath: /tmp/ods-ci/ods_ci/configs/templates/user_config.json
name: ods-ci-user-config
subPath: user_config.json
restartPolicy: Never
volumes:
# Persistent Volume where we will store the test-output for this pod
- name: ods-ci-test-output
persistentVolumeClaim:
claimName: ods-ci
- name: ods-ci-user-config
secret:
# Specify Secret that has the necessary test-variables.yml
secretName: ods-ci-user-config