Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding recipe-frontend/backend to demo to test shared infra deployment #35963

Merged
merged 6 commits into from
Jan 8, 2025
Merged
2 changes: 2 additions & 0 deletions apps/cnp/automation/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ resources:
- ../plum-recipe-backend/recipe-backend-test-image-repo.yaml
- ../plum-recipe-receiver/image-repo.yaml
- ../plum-recipe-receiver/image-policy.yaml
- ../recipes-frontend/image-repo.yaml
- ../recipes-frontend/image-policy.yaml
- ../recipes-backend/image-repo.yaml
- ../recipes-backend/image-policy.yaml
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
2 changes: 1 addition & 1 deletion apps/jenkins/jenkins/ptl-intsvc/jenkins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
name: all
- buildMonitor:
includeRegex: >-
^HMCTS.*\/(draft-store|rpe-pdf-service|service-auth-provider-app|spring-boot-template|cnp-plum-recipes-service|cnp-plum-frontend|cnp-plum-shared-infrastructure|recipes-backend|recipes-shared-infrastructure|camunda-.*)\/master
^HMCTS.*\/(draft-store|rpe-pdf-service|service-auth-provider-app|spring-boot-template|cnp-plum-recipes-service|cnp-plum-frontend|cnp-plum-shared-infrastructure|recipes-frontend|recipes-backend|recipes-shared-infrastructure|camunda-.*)\/master
name: Platform
recurse: true
title: Platform
Expand Down
Loading