feat: provision k8s namespace and secrets during customer setup
Some checks failed
Build & Release / build (push) Has been cancelled

- k8s.ts: add createNamespace, deleteNamespace, createSecret, createDockerRegistrySecret
- customers.ts: create namespace + DOCR pull secret + app secrets (DATABASE_URL, JWT_SECRET, REDIS_URL) before pushing ArgoCD chart
- customers.ts: delete namespace on deprovision, search name field too
- git.ts: use DOCR OCI chart URL and helm parameters for customer ArgoCD apps
- Add 'namespace' and 'secrets' steps to provisioning step tracker
This commit is contained in:
Ryan Moon
2026-04-03 18:54:11 -05:00
parent cadf0bb191
commit 19135b0520
3 changed files with 102 additions and 31 deletions

View File

@@ -54,16 +54,14 @@ metadata:
namespace: argocd
spec:
project: default
sources:
- repoURL: git.lunarfront.tech/ryan/lunarfront-app
chart: lunarfront
targetRevision: "${appVersion}"
helm:
valueFiles:
- $values/customers/${slug}.yaml
- repoURL: ssh://git@git-ssh.lunarfront.tech/ryan/lunarfront-charts.git
targetRevision: main
ref: values
source:
repoURL: registry.digitalocean.com/lunarfront
chart: lunarfront
targetRevision: "${appVersion}"
helm:
parameters:
- name: ingress.host
value: ${slug}.lunarfront.app
destination:
server: https://kubernetes.default.svc
namespace: customer-${slug}