Add mini environment support
Some checks failed
Node.js CI / build (push) Has been cancelled
OTA Portal Deploy / build-dev (push) Has been cancelled
OTA Portal Deploy / deploy-dev (push) Has been cancelled
OTA Portal Deploy / build-preprod (push) Has been cancelled
OTA Portal Deploy / deploy-preprod (push) Has been cancelled
OTA Portal Deploy / build-cec-prd (push) Has been cancelled
OTA Portal Deploy / deploy-cec-prd (push) Has been cancelled
OTA Portal Deploy / build-cec-euprd (push) Has been cancelled
OTA Portal Deploy / deploy-cec-euprd (push) Has been cancelled
Blackduck Rapid scan / blackduck (push) Has been cancelled

This commit is contained in:
Chris Rai
2026-01-13 21:22:01 -05:00
parent 283eb1de25
commit 33da34151d
4 changed files with 43 additions and 2 deletions

23
.env.mini Normal file
View File

@@ -0,0 +1,23 @@
REACT_APP_AUTH_CALLBACK_URL=https://ota-admin.mini.cloud.fiskerinc.com
REACT_APP_AUTH_SERVICE_URL=https://dev-gw.cloud.fiskerinc.com/compute_auth
REACT_APP_CERT_SERVICE_URL=https://dev-gw.cloud.fiskerinc.com/certificate
REACT_APP_ENV=mini
REACT_APP_MAGNA_PROVIDER=Magna
REACT_APP_MAGNA_GROUP_ID=68273225-9da4-4fa7-aea5-38e16ec471fe
REACT_APP_OTA_SERVICE_URL=https://dev-gw.cloud.fiskerinc.com/ota_update
REACT_APP_SECURITY_DLL_URL=https://assets.fiskerdps.com/cloud-supplier/fisker_security_32.dll
REACT_APP_SECURITY_DLL_64_URL=https://assets.fiskerdps.com/cloud-supplier/fisker_security_64.dll
REACT_APP_SUPERSET_URL=https://dev-superset.cloud.fiskerinc.com
REACT_APP_ROLE_CREATE=efcc3025-e2d8-4212-8227-805c7be39d2c
REACT_APP_ROLE_READ_ONLY=a729bbd4-2038-4649-9127-16782bb1e701
REACT_APP_ROLE_DELETE=8f78dce7-f5f9-4033-a10c-c9c7408bfcfe
REACT_APP_ROLE_GENERATE_CERTIFICATE=746f34b0-9ba0-4b5d-8d84-0256a9c8e390
REACT_APP_ROLE_MANUFACTURE=3412e11a-a2d1-4355-be3e-ef9aa5065b69
REACT_APP_ROLE_SUPPLIER_APPROVER=a6c9805e-80b2-42b2-bfbb-9df52e5504d8
REACT_APP_ROLE_MANIFEST_MIGRATION=42798c8a-9fa7-4fb4-82c0-9582cabe364f
REACT_APP_ROLE_CAR_DIAGNOSTIC=2914e67f-fb85-4b78-b79d-656f4f37faa1
REACT_APP_ROLE_UPDATE_DEPLOY=3590ec3f-1c05-428b-81a4-40b00baf83de
REACT_APP_ECCKEY_ENV=stage,prod
REACT_APP_HOME_MAP_DEFAULT_LOCATION={"lat":37.0902,"lng":-95.7129,"zoom":4.5}
REACT_APP_ENABLE_DEBUGMASK=1
REACT_APP_SHOW_AFTERSALES_EU_CERT_BUTTON=1

View File

@@ -2,12 +2,12 @@ apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod cert-manager.io/cluster-issuer: {{ .Values.ingress.clusterIssuer | default "letsencrypt-prod" }}
labels: labels:
app: {{ .Chart.Name }} app: {{ .Chart.Name }}
name: {{ .Chart.Name }} name: {{ .Chart.Name }}
spec: spec:
ingressClassName: nginx ingressClassName: {{ .Values.ingress.className | default "nginx" }}
rules: rules:
- host: {{ .Values.ingress.hostname }} - host: {{ .Values.ingress.hostname }}
http: http:

17
k8s/values-mini.yaml Normal file
View File

@@ -0,0 +1,17 @@
ingress:
hostname: ota-admin.mini.cloud.fiskerinc.com
className: traefik
image:
registry: gitea.mini.cloud.fiskerinc.com
name: admin/ota-admin-portal
tag: latest
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
memory: 256Mi
replicas: 1

View File

@@ -54,6 +54,7 @@
"build:preprod": "env-cmd -f .env.prd react-scripts build", "build:preprod": "env-cmd -f .env.prd react-scripts build",
"build:cec-prd": "env-cmd -f .env.cec-prd react-scripts build", "build:cec-prd": "env-cmd -f .env.cec-prd react-scripts build",
"build:cec-euprd": "env-cmd -f .env.cec-euprd react-scripts build", "build:cec-euprd": "env-cmd -f .env.cec-euprd react-scripts build",
"build:mini": "env-cmd -f .env.mini react-scripts build",
"build:local": "env-cmd -f .env.local react-scripts build", "build:local": "env-cmd -f .env.local react-scripts build",
"test": "env-cmd -f .env.local react-scripts test --no-cache", "test": "env-cmd -f .env.local react-scripts test --no-cache",
"test:debug": "react-scripts --inspect-brk test --runInBand --no-cache", "test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",