From bdcf37c4c31f16d394082eb4dc555566ef62bcdb Mon Sep 17 00:00:00 2001 From: timwekkenbc Date: Tue, 12 Nov 2024 13:14:53 -0800 Subject: [PATCH] Rename app to use BRM instead of BRMS in order to be more consistent --- .github/workflows/build-and-deploy.yml | 2 +- README.md | 6 +++--- helm/Chart.yaml | 4 ++-- helm/templates/deployment.yaml | 18 ++++++++++++------ helm/templates/service.yaml | 6 +++--- 5 files changed, 21 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 9d7f526..d32600d 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -66,4 +66,4 @@ jobs: - name: Run Helm run: | - helm upgrade --install brms-frontend ./helm --set image.tag=${{ needs.build_image.outputs.image_tag }} \ No newline at end of file + helm upgrade --install brm-app ./helm --set image.tag=${{ needs.build_image.outputs.image_tag }} \ No newline at end of file diff --git a/README.md b/README.md index be1edfc..63ac23b 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# BRMS Simulator Frontend (POC) +# BRM (Business Rules Management) App -This is a tool for testing/simulating rules for SDPR's Business Rules Engine. It is a [Next.js](https://nextjs.org/) project that makes use of the [GoRules JDM Editor](https://github.com/gorules/jdm-editor). This project is currently just in the experimental POC phase. +This app is a tool for authoring and testing/simulating rules for SDPR's Business Rules Engine. It is a [Next.js](https://nextjs.org/) project that makes use of a custom fork of the [GoRules JDM Editor](https://github.com/gorules/jdm-editor) (located at https://github.com/bcgov/jdm-editor). You can read more about working with our custom JDM Editor fork [here](https://knowledge.social.gov.bc.ca/successor/bre/jdm-editor). ## Requirements -This project current depends on the API provided by the [brms-api](https://github.com/bcgov/brms-api) project. You'll have to set an environment variable of `NEXT_PUBLIC_SERVER_URL` pointing to the URL of that when it is up and running (like `http://localhost:3000`). +This project current depends on the API provided by the [brm-backend](https://github.com/bcgov/brm-backend) project. You'll have to set an environment variable of `NEXT_PUBLIC_SERVER_URL` pointing to the URL of that when it is up and running (like `http://localhost:3000`). ## Getting it running diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 3ae3ad5..f57c196 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v2 -name: brms-frontend -description: A Helm chart for deploying brms-frontend +name: brm-app +description: A Helm chart for deploying brm-app version: 0.1.0 diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 86ec91a..02fab7e 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -1,28 +1,34 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: brms-frontend + name: brm-app labels: - app.kubernetes.io/name: brms-frontend + app.kubernetes.io/name: brm-app spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: - app.kubernetes.io/name: brms-frontend + app.kubernetes.io/name: brm-app template: metadata: labels: - app.kubernetes.io/name: brms-frontend + app.kubernetes.io/name: brm-app annotations: helm.sh/release: "{{ .Release.Name }}" helm.sh/revision: "{{ .Release.Revision }}" spec: containers: - - name: brms-frontend + - name: brm-app image: '{{ .Values.image.tag }}' ports: - containerPort: 8080 - resources: {} + resources: + limits: + cpu: 150m + memory: 512Mi + requests: + cpu: 75m + memory: 350Mi terminationMessagePath: /dev/termination-log terminationMessagePolicy: File imagePullPolicy: Always diff --git a/helm/templates/service.yaml b/helm/templates/service.yaml index 48b4dd4..26f995b 100644 --- a/helm/templates/service.yaml +++ b/helm/templates/service.yaml @@ -1,12 +1,12 @@ apiVersion: v1 kind: Service metadata: - name: brms-frontend + name: brm-app labels: - app.kubernetes.io/name: brms-frontend + app.kubernetes.io/name: brm-app spec: selector: - app.kubernetes.io/name: brms-frontend + app.kubernetes.io/name: brm-app ports: - protocol: TCP port: 8080