-
Notifications
You must be signed in to change notification settings - Fork 406
/
test-ui-acceptance.yaml
48 lines (48 loc) · 1.38 KB
/
test-ui-acceptance.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
apiVersion: v1
kind: Pod
metadata:
name: "test-{{ template "fullname" . }}-ui-acceptance"
annotations:
"helm.sh/hook": test-success
labels:
"helm-chart-test": "true"
spec:
hostNetwork: true
containers:
- name: "test-{{ template "fullname" . }}-ui-acceptance"
image: {{ .Values.global.containerRegistry.path }}/ui-tests:35238a98
imagePullPolicy: IfNotPresent
resources:
requests:
memory: {{ .Values.test.acceptance.ui.requests.memory }}
cpu: {{ .Values.test.acceptance.ui.requests.cpu }}
limits:
memory: {{ .Values.test.acceptance.ui.limits.memory }}
cpu: {{ .Values.test.acceptance.ui.limits.cpu }}
env:
- name: DOMAIN
value: {{ .Values.global.domainName }}
- name: LOGIN
valueFrom:
secretKeyRef:
name: admin-user
key: email
- name: PASSWORD
valueFrom:
secretKeyRef:
name: admin-user
key: password
- name: DEX_CONFIG
value: /etc/dex/cfg/config.yaml
volumeMounts:
- name: dex-config
mountPath: /etc/dex/cfg
# Needed for detecting if static user is disabled
volumes:
- name: dex-config
configMap:
name: dex-config
items:
- key: config.yaml
path: config.yaml
restartPolicy: Never