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

Update template project name/references #1

Merged
merged 1 commit into from
Sep 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ workflows:
# env: "preprod"
# context:
# - hmpps-common-vars
# - hmpps-template-typescript-preprod
# - hmpps-audit-poc-ui-preprod
# requires:
# - request-preprod-approval
# - request-prod-approval:
Expand All @@ -191,7 +191,7 @@ workflows:
# slack_channel_name: << pipeline.parameters.releases-slack-channel >>
# context:
# - hmpps-common-vars
# - hmpps-template-typescript-prod
# - hmpps-audit-poc-ui-prod
# requires:
# - request-prod-approval

Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/rename_template_project_pr.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
appVersion: '1.0'
description: A Helm chart for Kubernetes
name: hmpps-template-typescript
name: hmpps-audit-poc-ui
version: 0.2.0
dependencies:
- name: generic-service
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
generic-service:
nameOverride: hmpps-template-typescript
nameOverride: hmpps-audit-poc-ui

replicaCount: 4

image:
repository: quay.io/hmpps/hmpps-template-typescript
repository: quay.io/hmpps/hmpps-audit-poc-ui
tag: app_version # override at deployment time
port: 3000

ingress:
enabled: true
host: app-hostname.local # override per environment
tlsSecretName: hmpps-template-typescript-cert
tlsSecretName: hmpps-audit-poc-ui-cert
path: /

livenessProbe:
Expand All @@ -35,7 +35,7 @@ generic-service:
# [name of environment variable as seen by app]: [key of kubernetes secret to load]

namespace_secrets:
hmpps-template-typescript:
hmpps-audit-poc-ui:
APPINSIGHTS_INSTRUMENTATIONKEY: "APPINSIGHTS_INSTRUMENTATIONKEY"
API_CLIENT_ID: "API_CLIENT_ID"
API_CLIENT_SECRET: "API_CLIENT_SECRET"
Expand All @@ -55,4 +55,4 @@ generic-service:
cloudplatform-live1-3: "35.177.252.54/32"

generic-prometheus-alerts:
targetApplication: hmpps-template-typescript
targetApplication: hmpps-audit-poc-ui
6 changes: 3 additions & 3 deletions helm_deploy/values-dev.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
# Per environment values which override defaults in hmpps-template-typescript/values.yaml
# Per environment values which override defaults in hmpps-audit-poc-ui/values.yaml

generic-service:
replicaCount: 2

ingress:
host: hmpps-template-typescript-dev.hmpps.service.justice.gov.uk
host: hmpps-audit-poc-ui-dev.hmpps.service.justice.gov.uk

env:
INGRESS_URL: "https://hmpps-template-typescript-dev.hmpps.service.justice.gov.uk"
INGRESS_URL: "https://hmpps-audit-poc-ui-dev.hmpps.service.justice.gov.uk"
HMPPS_AUTH_URL: "https://sign-in-dev.hmpps.service.justice.gov.uk/auth"
TOKEN_VERIFICATION_API_URL: "https://token-verification-api-dev.prison.service.justice.gov.uk"

Expand Down
2 changes: 1 addition & 1 deletion logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import bunyanFormat from 'bunyan-format'

const formatOut = bunyanFormat({ outputMode: 'short', color: true })

const logger = bunyan.createLogger({ name: 'HMPPS Typescript Template', stream: formatOut, level: 'debug' })
const logger = bunyan.createLogger({ name: 'Hmpps Audit Poc Ui', stream: formatOut, level: 'debug' })

export default logger
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "hmpps-template-typescript",
"name": "hmpps-audit-poc-ui",
"version": "0.0.1",
"description": "HMPPS Typescript Template",
"repository": "[email protected]:ministryofjustice/hmpps-template-typescript.git",
"description": "Hmpps Audit Poc Ui",
"repository": "[email protected]:ministryofjustice/hmpps-audit-poc-ui.git",
"license": "MIT",
"scripts": {
"prepare": "husky install",
Expand Down
46 changes: 0 additions & 46 deletions rename-project.bash

This file was deleted.

2 changes: 1 addition & 1 deletion server/utils/nunjucksSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function nunjucksSetup(app: express.Express, path: pathModule.Pla
app.set('view engine', 'njk')

app.locals.asset_path = '/assets/'
app.locals.applicationName = 'HMPPS Typescript Template'
app.locals.applicationName = 'Hmpps Audit Poc Ui'

// Cachebusting version string
if (production) {
Expand Down