Skip to content

Commit

Permalink
Adding support for STMS domains (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
BcGovBrian authored Apr 12, 2024
1 parent 29662ca commit c2944e0
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 80 deletions.
4 changes: 2 additions & 2 deletions devops/kustomize/base/app/config-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ metadata:
labels:
name: dashboard
part-of: hsb
version: 1.0.0
version: 1.0.1
component: app
managed-by: kustomize
created-by: jeremy.foster
data:
NEXTAUTH_URL: https://dev-hsb.apps.emerald.devops.gov.bc.ca/
NEXTAUTH_URL: https://dev.dashboard.stms.gov.bc.ca/
API_URL: http://api:8080
60 changes: 30 additions & 30 deletions devops/kustomize/base/app/route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,33 +28,33 @@ spec:
kind: Service
name: dashboard
weight: 100
# ---
# kind: Route
# apiVersion: route.openshift.io/v1
# metadata:
# name: dashboard-tls
# namespace: default
# annotations:
# description: Route for dashboard application.
# labels:
# name: dashboard
# part-of: hsb
# version: 1.0.0
# component: app
# managed-by: kustomize
# created-by: jeremy.foster
# spec:
# host: hsb.gov.bc.ca
# path: ""
# port:
# targetPort: 8080-tcp
# tls:
# insecureEdgeTerminationPolicy: Redirect
# termination: edge
# # caCertificate: ""
# # certificate: ""
# # key: ""
# to:
# kind: Service
# name: dashboard
# weight: 100
---
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: dashboard-stms
namespace: default
annotations:
description: TLS Route for dashboard application.
labels:
name: dashboard-stms
part-of: hsb
version: 1.0.1
component: app
managed-by: kustomize
created-by: brian.price
spec:
host: dev.dashboard.stms.gov.bc.ca
path: ""
port:
targetPort: 8080-tcp
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
# caCertificate: ""
# certificate: ""
# key: ""
to:
kind: Service
name: dashboard
weight: 100
16 changes: 8 additions & 8 deletions devops/kustomize/overlays/dev/app/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ patches:
patch: |-
- op: replace
path: /data/NEXTAUTH_URL
value: https://dev-hsb.apps.emerald.devops.gov.bc.ca
value: https://dev.dashboard.stms.gov.bc.ca
- target:
kind: Route
Expand All @@ -53,13 +53,13 @@ patches:
- op: replace
path: /spec/host
value: dev-hsb.apps.emerald.devops.gov.bc.ca
# - target:
# kind: Route
# name: dashboard-tls
# patch: |-
# - op: replace
# path: /spec/host
# value: hsb.gov.bc.ca
- target:
kind: Route
name: dashboard-stms
patch: |-
- op: replace
path: /spec/host
value: dev.dashboard.stms.gov.bc.ca
- target:
kind: DeploymentConfig
Expand Down
16 changes: 8 additions & 8 deletions devops/kustomize/overlays/dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ patches:
patch: |-
- op: replace
path: /data/NEXTAUTH_URL
value: https://dev-hsb.apps.emerald.devops.gov.bc.ca
value: https://dev.dashboard.stms.gov.bc.ca
- target:
kind: Route
Expand All @@ -82,13 +82,13 @@ patches:
- op: replace
path: /spec/host
value: dev-hsb.apps.emerald.devops.gov.bc.ca
# - target:
# kind: Route
# name: dashboard-tls
# patch: |-
# - op: replace
# path: /spec/host
# value: hsb.gov.bc.ca
- target:
kind: Route
name: dashboard-stms
patch: |-
- op: replace
path: /spec/host
value: dev.dashboard.stms.gov.bc.ca
- target:
kind: DeploymentConfig
Expand Down
16 changes: 8 additions & 8 deletions devops/kustomize/overlays/prod/app/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ patches:
patch: |-
- op: replace
path: /data/NEXTAUTH_URL
value: https://hsb.apps.emerald.devops.gov.bc.ca
value: https://dashboard.stms.gov.bc.ca
- target:
kind: Route
Expand All @@ -53,13 +53,13 @@ patches:
- op: replace
path: /spec/host
value: hsb.apps.emerald.devops.gov.bc.ca
# - target:
# kind: Route
# name: dashboard-tls
# patch: |-
# - op: replace
# path: /spec/host
# value: hsb.gov.bc.ca
- target:
kind: Route
name: dashboard-stms
patch: |-
- op: replace
path: /spec/host
value: dashboard.stms.gov.bc.ca
- target:
kind: DeploymentConfig
Expand Down
16 changes: 8 additions & 8 deletions devops/kustomize/overlays/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ patches:
patch: |-
- op: replace
path: /data/NEXTAUTH_URL
value: https://hsb.apps.emerald.devops.gov.bc.ca
value: https://dashboard.stms.gov.bc.ca
- target:
kind: Route
Expand All @@ -82,13 +82,13 @@ patches:
- op: replace
path: /spec/host
value: hsb.apps.emerald.devops.gov.bc.ca
# - target:
# kind: Route
# name: dashboard-tls
# patch: |-
# - op: replace
# path: /spec/host
# value: hsb.gov.bc.ca
- target:
kind: Route
name: dashboard-stms
patch: |-
- op: replace
path: /spec/host
value: dashboard.stms.gov.bc.ca
- target:
kind: DeploymentConfig
Expand Down
16 changes: 8 additions & 8 deletions devops/kustomize/overlays/test/app/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ patches:
patch: |-
- op: replace
path: /data/NEXTAUTH_URL
value: https://test-hsb.apps.emerald.devops.gov.bc.ca
value: https://test.dashboard.stms.gov.bc.ca
- target:
kind: Route
Expand All @@ -53,13 +53,13 @@ patches:
- op: replace
path: /spec/host
value: test-hsb.apps.emerald.devops.gov.bc.ca
# - target:
# kind: Route
# name: dashboard-tls
# patch: |-
# - op: replace
# path: /spec/host
# value: hsb.gov.bc.ca
- target:
kind: Route
name: dashboard-stms
patch: |-
- op: replace
path: /spec/host
value: test.dashboard.stms.gov.bc.ca
- target:
kind: DeploymentConfig
Expand Down
16 changes: 8 additions & 8 deletions devops/kustomize/overlays/test/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ patches:
patch: |-
- op: replace
path: /data/NEXTAUTH_URL
value: https://test-hsb.apps.emerald.devops.gov.bc.ca
value: https://test.dashboard.stms.gov.bc.ca
- target:
kind: Route
Expand All @@ -82,13 +82,13 @@ patches:
- op: replace
path: /spec/host
value: test-hsb.apps.emerald.devops.gov.bc.ca
# - target:
# kind: Route
# name: dashboard-tls
# patch: |-
# - op: replace
# path: /spec/host
# value: hsb.gov.bc.ca
- target:
kind: Route
name: dashboard-stms
patch: |-
- op: replace
path: /spec/host
value: test.dashboard.stms.gov.bc.ca
- target:
kind: DeploymentConfig
Expand Down

0 comments on commit c2944e0

Please sign in to comment.