Skip to content

Commit 5979c9c

Browse files
committed
SDCICD-1721 create dynamic e2e secrets as configmap
helping to boilerplate the template
1 parent 445fe2c commit 5979c9c

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

test/e2e/e2e-template.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ objects:
5656
- --skip-must-gather
5757
- --configs
5858
- ${OSDE2E_CONFIGS}
59+
envFrom:
60+
- configMapRef:
61+
name: route-monitor-operator-cm
5962
resources:
6063
requests:
6164
cpu: "300m"
@@ -93,3 +96,4 @@ objects:
9396
value: ${USE_EXISTING_CLUSTER}
9497
- name: CAD_PAGERDUTY_ROUTING_KEY
9598
value: ${CAD_PAGERDUTY_ROUTING_KEY}
99+

test/e2e/rmo_configmap.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: template.openshift.io/v1
2+
kind: Template
3+
metadata:
4+
name: template
5+
objects:
6+
- apiVersion: v1
7+
kind: ConfigMap
8+
metadata:
9+
name: route-monitor-operator-cm
10+
data:
11+
EXTERNAL_SECRET_OIDC_CLIENT_ID: ${EXTERNAL_SECRET_OIDC_CLIENT_ID}
12+
EXTERNAL_SECRET_OIDC_CLIENT_SECRET: ${EXTERNAL_SECRET_OIDC_CLIENT_SECRET}
13+
EXTERNAL_SECRET_OIDC_ISSUER_URL: ${EXTERNAL_SECRET_OIDC_ISSUER_URL}
14+
parameters:
15+
- name: EXTERNAL_SECRET_OIDC_CLIENT_ID
16+
required: true
17+
- name: EXTERNAL_SECRET_OIDC_CLIENT_SECRET
18+
required: true
19+
- name: EXTERNAL_SECRET_OIDC_ISSUER_URL
20+
required: true

0 commit comments

Comments
 (0)