Files
erp/chart/values-sandbox.yaml
Gabriel Radureau 102a205ff8 feat(backup): enable the daily backup CronJob on prod (Vault creds wired)
tools#5 granted the erp prod Vault policy read on kvv2/data/longhorn/gcs-backup
(applied + verified: 1 changed, 0 destroyed). So the CronJob's VaultStaticSecret
can now resolve the GCS creds.

- backup.enabled: true (prod), vaultS3Path: longhorn/gcs-backup.
- sandbox overlay keeps backup.enabled: false (reproducible; its env policy wasn't
  granted the read).

ArgoCD will deploy the CronJob + ConfigMap + VaultStaticSecret in the erp namespace.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-30 17:41:39 +02:00

47 lines
1.7 KiB
YAML

# Sandbox overlay — to be combined with values.yaml:
# helm install erp-sandbox chart/ -f chart/values.yaml -f chart/values-sandbox.yaml \
# --namespace erp-sandbox --create-namespace
#
# Activates Phase D of the multi-env evolution (cf. PR thread). Prerequisites:
# - factory/postgres/iac/terraform.tfvars: erp has envs = ["prod", "sandbox"]
# - tools/hashicorp-vault/iac/modules/app_roles: env parameter applied
# - arcodange-org/erp/iac/main.tf: for_each over local.envs (Phase D commit)
# - ArgoCD: Application "erp-sandbox" registered (Phase E)
#
# Derived names follow the elision rule: env=sandbox → suffix "-sandbox".
env: sandbox
instance: erp-sandbox
host: erp-sandbox.arcodange.lab
db:
name: erp-sandbox
ownerRole: erp_sandbox_role
vault:
k8sRole: erp-sandbox
dynamicPath: creds/erp-sandbox
staticPath: erp-sandbox/config
# Ingress annotations + hosts — override to point at the sandbox FQDN
ingress:
enabled: true
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
traefik.ingress.kubernetes.io/router.tls.certresolver: letsencrypt
traefik.ingress.kubernetes.io/router.tls.domains.0.main: arcodange.lab
traefik.ingress.kubernetes.io/router.tls.domains.0.sans: erp-sandbox.arcodange.lab
traefik.ingress.kubernetes.io/router.middlewares: localIp@file
hosts:
- host: erp-sandbox.arcodange.lab
paths:
- path: /
pathType: Prefix
# The sandbox is reproducible (iso-prod refresh), so it needs no offsite backup —
# and its env=sandbox Vault policy wasn't granted read on the GCS creds path
# (only prod was, tools#5). Keep the CronJob off here.
backup:
enabled: false