big refactor

This commit is contained in:
2026-04-29 16:25:11 -05:00
parent 6c411ce2b6
commit 8265fb689a
156 changed files with 15845 additions and 50373 deletions

6
ops/chart/Chart.lock Normal file
View File

@@ -0,0 +1,6 @@
dependencies:
- name: common
repository: https://bjw-s-labs.github.io/helm-charts/
version: "4.6.2"
digest: sha256:35e8f4e5d15d878c246a04eb51de580291f31203fa10e9e4d2318f16026b2061
generated: "2026-04-14T12:23:59.76714437-05:00"

14
ops/chart/Chart.yaml Normal file
View File

@@ -0,0 +1,14 @@
apiVersion: v2
name: policy-ui
description: Policy UI - Nuxt.js application
type: application
version: 0.1.0
appVersion: "1.0.0"
keywords:
- nuxt
- vue
- frontend
dependencies:
- name: common
version: "4.6.2"
repository: https://bjw-s-labs.github.io/helm-charts/

View File

@@ -0,0 +1,4 @@
{{/*
Render all resources provided by the common library
*/}}
{{- include "bjw-s.common.loader.all" . -}}

72
ops/chart/values.yaml Normal file
View File

@@ -0,0 +1,72 @@
controllers:
main:
enabled: true
type: deployment
replicas: 1
containers:
main:
image:
repository: gitea.corredorconect.com/software-engineering/policy-ui
tag: "{{ $.Chart.AppVersion }}"
env:
- name: NODE_ENV
value: "production"
- name: PORT
value: "3000"
- name: HOST
value: "0.0.0.0"
- name: NUXT_TELEMETRY_DISABLED
value: "1"
# API endpoints (hardcoded to dev)
- name: NUXT_PUBLIC_CUSTOMER_API_BASE
value: "https://dev.api.corredorconect.com/customer/api/v1"
- name: NUXT_PUBLIC_POLICY_API_BASE
value: "https://dev.api.corredorconect.com/policy/api/v1"
- name: NUXT_PUBLIC_PROVIDERS_API_BASE
value: "https://dev.api.corredorconect.com/provider/api/v1"
- name: NUXT_PUBLIC_WORKLOAD_API_BASE
value: "https://dev.api.corredorconect.com/workload/api/v1"
- name: NUXT_PUBLIC_DOCUMENT_API_BASE
value: "https://dev.api.corredorconect.com/document/api/v1"
# Policy API token from secret
# - name: NUXT_PUBLIC_POLICY_API_TOKEN
# valueFrom:
# secretKeyRef:
# name: policy-ui-secrets
# key: policyApiToken
ports:
- name: http
containerPort: 3000
probes:
liveness:
enabled: true
custom: true
spec:
httpGet:
path: /
port: 3000
initialDelaySeconds: 30
periodSeconds: 10
readiness:
enabled: true
custom: true
spec:
httpGet:
path: /
port: 3000
initialDelaySeconds: 5
periodSeconds: 5
service:
main:
controller: main
type: ClusterIP
ports:
http:
port: 3000
protocol: HTTP
targetPort: http
ingress:
main:
enabled: false