Skip to content

Commit 73aabbf

Browse files
authored
Merge pull request #6001 from bcgov/4778-4
feat(4778): add sorry cypress deployment
2 parents 082917a + 90db860 commit 73aabbf

File tree

7 files changed

+128
-3
lines changed

7 files changed

+128
-3
lines changed

helm/tools/Chart.lock

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ dependencies:
1313
version: 5.4.0
1414
- name: mongodb
1515
repository: https://charts.bitnami.com/bitnami
16-
version: 16.5.21
17-
digest: sha256:2c55e40de2848ba487cc59ae031806f83891c3f374596c60683d05a4d2c39faf
18-
generated: "2025-06-25T14:25:24.52226848-07:00"
16+
version: 16.5.27
17+
- name: sorry-cypress
18+
repository: https://sorry-cypress.github.io/charts
19+
version: 1.20.0
20+
digest: sha256:cd234cada223ec3ee52f231e0b2c1c28e005d128f1664baf78b0e2fe92f1f962
21+
generated: "2025-07-07T11:19:52.815033938-07:00"

helm/tools/Chart.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ dependencies:
2727
version: '16.5.27' #8.0.4
2828
repository: https://charts.bitnami.com/bitnami
2929
condition: mongodb.enabled
30+
- name: sorry-cypress
31+
alias: sorrycypress
32+
version: '1.20.0' #2.5.11
33+
repository: https://sorry-cypress.github.io/charts
34+
condition: sorrycypress.enabled
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{{- if .Values.sorrycypress.enabled }}
2+
apiVersion: route.openshift.io/v1
3+
kind: Route
4+
metadata:
5+
name: {{ include "main.fullname" . }}-sorry-cypress-api
6+
annotations:
7+
haproxy.router.openshift.io/balance: roundrobin
8+
haproxy.router.openshift.io/disable_cookies: 'true'
9+
haproxy.router.openshift.io/timeout: 600s
10+
spec:
11+
{{- if .Values.sorrycypress.routes.api.host }}
12+
host: {{ .Values.sorrycypress.routes.api.host }}
13+
{{- end }}
14+
tls:
15+
insecureEdgeTerminationPolicy: Redirect
16+
termination: edge
17+
to:
18+
kind: Service
19+
name: sorry-cypress-api
20+
{{- end }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{{- if .Values.sorrycypress.enabled }}
2+
apiVersion: route.openshift.io/v1
3+
kind: Route
4+
metadata:
5+
name: {{ include "main.fullname" . }}-sorry-cypress-dashboard
6+
annotations:
7+
haproxy.router.openshift.io/balance: roundrobin
8+
haproxy.router.openshift.io/disable_cookies: 'true'
9+
haproxy.router.openshift.io/timeout: 600s
10+
spec:
11+
{{- if .Values.sorrycypress.routes.dashboard.host }}
12+
host: {{ .Values.sorrycypress.routes.dashboard.host }}
13+
{{- end }}
14+
tls:
15+
insecureEdgeTerminationPolicy: Redirect
16+
termination: edge
17+
to:
18+
kind: Service
19+
name: sorry-cypress-dashboard
20+
{{- end }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{{- if .Values.sorrycypress.enabled }}
2+
apiVersion: route.openshift.io/v1
3+
kind: Route
4+
metadata:
5+
name: {{ include "main.fullname" . }}-sorry-cypress-director
6+
annotations:
7+
haproxy.router.openshift.io/balance: roundrobin
8+
haproxy.router.openshift.io/disable_cookies: 'true'
9+
haproxy.router.openshift.io/timeout: 600s
10+
spec:
11+
{{- if .Values.sorrycypress.routes.director.host }}
12+
host: {{ .Values.sorrycypress.routes.director.host }}
13+
{{- end }}
14+
tls:
15+
insecureEdgeTerminationPolicy: Redirect
16+
termination: edge
17+
to:
18+
kind: Service
19+
name: sorry-cypress-director
20+
{{- end }}

helm/tools/values-101ed4-tools.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,16 @@ minio:
2222

2323
mongodb:
2424
enabled: true
25+
26+
sorrycypress:
27+
enabled: true
28+
routes:
29+
api:
30+
host: tools-sorry-cypress-api.apps.silver.devops.gov.bc.ca
31+
dashboard:
32+
host: tools-sorry-cypress.apps.silver.devops.gov.bc.ca
33+
director:
34+
host: tools-sorry-cypress-director.apps.silver.devops.gov.bc.ca
35+
dashboard:
36+
environmentVariables:
37+
graphQlSchemaUrl: https://tools-sorry-cypress-api.apps.silver.devops.gov.bc.ca

helm/tools/values.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,3 +389,47 @@ mongodb:
389389
enabled: false
390390
containerSecurityContext:
391391
enabled: false
392+
393+
sorrycypress:
394+
enabled: false
395+
396+
fullnameOverride: sorry-cypress
397+
398+
routes:
399+
api:
400+
host:
401+
dashboard:
402+
host:
403+
director:
404+
host:
405+
406+
mongodb:
407+
mongoSecretConnectionString:
408+
enableSecret: false
409+
enableCustomSecret: true
410+
secretName: tools-mongodb # pragma: allowlist secret
411+
secretKey: sorry-cypress-connection-string # pragma: allowlist secret
412+
413+
internal_db:
414+
enabled: false
415+
416+
external_db:
417+
enabled: true
418+
419+
api:
420+
ingress:
421+
enabled: false
422+
dashboard:
423+
ingress:
424+
enabled: false
425+
environmentVariables:
426+
graphQlClientCredentials: ""
427+
graphQlSchemaUrl: http://sorry-cypress-api:4000
428+
ciUrl: ""
429+
basePath: "/"
430+
director:
431+
ingress:
432+
enabled: false
433+
extraEnv:
434+
- name: PM2_HOME
435+
value: /tmp/.pm2

0 commit comments

Comments
 (0)