Skip to content

Commit

Permalink
Adding recipes-frontend config, adding deployment to demo for backend…
Browse files Browse the repository at this point in the history
… and frontend components to test shared infra
  • Loading branch information
MartyFox committed Jan 7, 2025
1 parent 5b67030 commit a8bbb4a
Show file tree
Hide file tree
Showing 13 changed files with 107 additions and 3 deletions.
4 changes: 4 additions & 0 deletions apps/cnp/demo/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
- ../../recipes-frontend/recipes-frontend.yaml
- ../../recipes-backend/recipes-backend.yaml
namespace: cnp
patches:
- path: ../../plum-frontend/demo.yaml
- path: ../../plum-recipe-backend/demo.yaml
- path: ../../plum-recipe-receiver/demo.yaml
- path: ../../serviceaccount/demo.yaml
- path: ../../recipes-frontend/sbox.yaml
- path: ../../recipes-backend/sbox.yaml
2 changes: 1 addition & 1 deletion apps/cnp/recipes-backend/aat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ spec:
ingressHost: recipes-backend-aat.service.core-compute-aat.internal
testsConfig:
environment:
TEST_URL: http://recipse-backend-java
TEST_URL: http://recipes-backend-java
SLACK_CHANNEL: "platops-build-notices"
SLACK_NOTIFY_SUCCESS: "false"
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,14 @@ spec:
values:
java:
image: hmctspublic.azurecr.io/recipes/backend:prod-27f0bf4-20241217163623 # {"$imagepolicy": "flux-system:recipes-backend"}
keyVaults:
"recipeskv":
secrets:
- name: recipes-backend-POSTGRES-DATABASE-CFT
alias: POSTGRES_DATABASE
- name: recipes-backend-POSTGRES-HOST
alias: POSTGRES_HOST
- name: recipes-backend-POSTGRES-USER
alias: POSTGRES_USER
- name: recipes-backend-POSTGRES-PASS
alias: POSTGRES_PASSWORD
9 changes: 9 additions & 0 deletions apps/cnp/recipes-frontend/aat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: recipes-frontend
spec:
values:
nodejs:
ingressHost: recipes.aat.platform.hmcts.net
9 changes: 9 additions & 0 deletions apps/cnp/recipes-frontend/demo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: recipes-frontend
spec:
values:
nodejs:
ingressHost: recipes.demo.platform.hmcts.net
7 changes: 7 additions & 0 deletions apps/cnp/recipes-frontend/image-policy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImagePolicy
metadata:
name: recipes-frontend
spec:
imageRepositoryRef:
name: recipes-frontend
6 changes: 6 additions & 0 deletions apps/cnp/recipes-frontend/image-repo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImageRepository
metadata:
name: recipes-frontend
spec:
image: hmctspublic.azurecr.io/recipes/frontend
9 changes: 9 additions & 0 deletions apps/cnp/recipes-frontend/ithc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: recipes-frontend
spec:
values:
nodejs:
ingressHost: recipes.ithc.platform.hmcts.net
10 changes: 10 additions & 0 deletions apps/cnp/recipes-frontend/perftest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: recipes-frontend
spec:
values:
nodejs:
replicas: 4
ingressHost: recipes.perftest.platform.hmcts.net
9 changes: 9 additions & 0 deletions apps/cnp/recipes-frontend/prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: recipes-frontend
spec:
values:
nodejs:
ingressHost: recipes.platform.hmcts.net
21 changes: 21 additions & 0 deletions apps/cnp/recipes-frontend/recipes-frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: recipes-frontend
spec:
releaseName: recipes-frontend
chart:
spec:
chart: ./stable/recipes-frontend
sourceRef:
kind: GitRepository
name: hmcts-charts
namespace: flux-system
interval: 1m
values:
nodejs:
image: hmctspublic.azurecr.io/recipes/frontend:prod-80e4f49-20250107102118 # {"$imagepolicy": "flux-system:recipes-frontend"}
useWorkloadIdentity: true
workloadClientID: ${WORKLOAD_IDENTITY_ID}
environment:
RECIPE_BACKEND_URL: http://recipes-backend-java
11 changes: 11 additions & 0 deletions apps/cnp/recipes-frontend/sbox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: recipes-frontend
spec:
values:
nodejs:
ingressHost: recipes.sandbox.platform.hmcts.net
replicas: 2
autoscaling:
minReplicas: 1
2 changes: 0 additions & 2 deletions apps/cnp/sbox/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: Kustomization
resources:
- ../../base
- ../../plum-batch/plum-batch.yaml
- ../../recipes-backend/recipe-backend.yaml
- test-ingress-redirect.yaml
- descheduler-cronjob.yaml
- descheduler-helmrepo.yaml
Expand All @@ -15,4 +14,3 @@ patches:
- path: ../../plum-batch/sbox.yaml
- path: ../../serviceaccount/sbox.yaml
- path: namespace.yaml
- path: ../../recipes-backend/sbox.yaml

0 comments on commit a8bbb4a

Please sign in to comment.