Skip to content

Commit c1dcc70

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

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

test/e2e/e2e-template.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ objects:
4444
template:
4545
spec:
4646
restartPolicy: Never
47+
volumes:
48+
- name: route-monitor-operator-sc
49+
secret:
50+
secretName: route-monitor-operator-sc
4751
containers:
4852
- name: osde2e
4953
image: quay.io/redhat-services-prod/osde2e-cicada-tenant/osde2e:latest
@@ -56,6 +60,10 @@ objects:
5660
- --skip-must-gather
5761
- --configs
5862
- ${OSDE2E_CONFIGS}
63+
volumeMounts:
64+
- name: route-monitor-operator-sc
65+
readOnly: true
66+
mountPath: "/etc/external-secrets"
5967
resources:
6068
requests:
6169
cpu: "300m"
@@ -93,3 +101,4 @@ objects:
93101
value: ${USE_EXISTING_CLUSTER}
94102
- name: CAD_PAGERDUTY_ROUTING_KEY
95103
value: ${CAD_PAGERDUTY_ROUTING_KEY}
104+

test/e2e/rmo_secret.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: Secret
8+
metadata:
9+
name: route-monitor-operator-sc
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)