Skip to content

Commit 5d89599

Browse files
authored
Merge pull request #22 from bcgov/test
Promote test to main
2 parents 671c5e2 + c253d2f commit 5d89599

File tree

19 files changed

+266
-0
lines changed

19 files changed

+266
-0
lines changed

validator/backend/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { serve } from "@hono/node-server";
22
import { Hono } from "hono";
3+
import { cors } from "hono/cors";
34

45
import { api } from "./routes/confusable.mjs";
56

@@ -10,6 +11,7 @@ app.get("/", (c) => {
1011
});
1112

1213
// Mount Confusable API and OpenAPI docs at /api/v1/
14+
app.use("/api/*", cors());
1315
app.route("/api/v1", api);
1416

1517
const port = process.env?.PORT ? parseInt(process.env.PORT) : 3000;
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
namespace: f343b4-prod
6+
name: validator-backend
7+
annotations:
8+
image.openshift.io/triggers: >-
9+
[{"from":{"kind":"ImageStreamTag","name":"validator-backend:prod","namespace":"f343b4-tools"},"fieldPath":"spec.template.spec.containers[?(@.name==\"container\")].image","pause":"false"}]
10+
spec:
11+
selector:
12+
matchLabels:
13+
app: validator-backend
14+
replicas: 3
15+
template:
16+
metadata:
17+
labels:
18+
app: validator-backend
19+
spec:
20+
containers:
21+
- name: container
22+
image: >-
23+
image-registry.openshift-image-registry.svc:5000/f343b4-tools/validator-backend@sha256:3eace9fa150703d2e74a03dccb22831e0ec0d31e5ad0b81d2c8e45049bb5eb23
24+
ports:
25+
- containerPort: 8080
26+
protocol: TCP
27+
env: []
28+
imagePullSecrets: []
29+
strategy:
30+
type: RollingUpdate
31+
rollingUpdate:
32+
maxSurge: 2
33+
maxUnavailable: 2
34+
paused: false
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
kind: Route
3+
apiVersion: route.openshift.io/v1
4+
metadata:
5+
name: validator-backend
6+
namespace: f343b4-prod
7+
labels: {}
8+
spec:
9+
to:
10+
kind: Service
11+
name: validator-backend
12+
tls:
13+
termination: edge
14+
insecureEdgeTerminationPolicy: Redirect
15+
destinationCACertificate: ""
16+
path: /
17+
port:
18+
targetPort: 3000
19+
alternateBackends: []
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: validator-backend
6+
namespace: f343b4-prod
7+
spec:
8+
selector:
9+
app: validator-backend
10+
ports:
11+
- protocol: TCP
12+
port: 8080
13+
targetPort: 3000
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
namespace: f343b4-test
6+
name: validator-backend
7+
annotations:
8+
image.openshift.io/triggers: >-
9+
[{"from":{"kind":"ImageStreamTag","name":"validator-backend:test","namespace":"f343b4-tools"},"fieldPath":"spec.template.spec.containers[?(@.name==\"container\")].image","pause":"false"}]
10+
spec:
11+
selector:
12+
matchLabels:
13+
app: validator-backend
14+
replicas: 2
15+
template:
16+
metadata:
17+
labels:
18+
app: validator-backend
19+
spec:
20+
containers:
21+
- name: container
22+
image: >-
23+
image-registry.openshift-image-registry.svc:5000/f343b4-tools/validator-backend@sha256:6f3a71b07c3c54f5611314c1b3ea752795ca4cfa849dacd02209dbed6868b30f
24+
ports:
25+
- containerPort: 8080
26+
protocol: TCP
27+
env: []
28+
imagePullSecrets: []
29+
strategy:
30+
type: RollingUpdate
31+
rollingUpdate:
32+
maxSurge: 50%
33+
maxUnavailable: 50%
34+
paused: false
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
kind: Route
3+
apiVersion: route.openshift.io/v1
4+
metadata:
5+
name: validator-backend
6+
namespace: f343b4-test
7+
labels: {}
8+
spec:
9+
to:
10+
kind: Service
11+
name: validator-backend
12+
tls:
13+
termination: edge
14+
insecureEdgeTerminationPolicy: Redirect
15+
destinationCACertificate: ""
16+
path: /
17+
port:
18+
targetPort: 3000
19+
alternateBackends: []
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: validator-backend
6+
namespace: f343b4-test
7+
spec:
8+
selector:
9+
app: validator-backend
10+
ports:
11+
- protocol: TCP
12+
port: 8080
13+
targetPort: 3000

0 commit comments

Comments
 (0)