move api secrets from configmap to .env-backed k8s Secret

This commit is contained in:
2026-06-03 10:32:33 -03:00
parent 2dad62f7e7
commit bd34c8c5ce
5 changed files with 35 additions and 19 deletions

View File

@@ -21,3 +21,15 @@ configMapGenerator:
- Caddyfile
options:
disableNameSuffixHash: true
# API key Secret built from .env at the repo root. .env is gitignored; only
# .env.example is committed. The path is relative to this kustomization.yaml
# (ctrl/k8s/base/) — `../../../.env` resolves to the repo root.
# disableNameSuffixHash keeps the Secret name stable so api.yaml's secretRef
# doesn't break on every rebuild.
secretGenerator:
- name: nvi-secrets
envs:
- ../../../.env
options:
disableNameSuffixHash: true