cozystack/packages/apps/postgres/templates
Andrei Kvapil 2e61810547
refactor: replace Helm lookup with valuesFrom mechanism
Replace Helm lookup functions with FluxCD valuesFrom mechanism for
reading cluster and namespace configuration.

Changes:
- Create Secret cozystack-values in each namespace with values.yaml key
  containing _cluster and _namespace configuration as nested YAML
- Configure HelmReleases to read from this Secret via valuesFrom
  (valuesKey defaults to values.yaml, so it can be omitted)
- Update cozy-lib helpers to access config via .Values._cluster
- Add default values for required _cluster keys to ensure all fields exist
- Update Go code (cozystack-api and helm reconciler) to use new format

This eliminates the need for Helm lookup functions while maintaining
the same configuration interface for charts.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-01-05 16:10:55 +01:00
..
.gitkeep Preapare release v0.0.1 2024-02-08 12:04:32 +01:00
_postgresjobs.tpl add rq for pg 2025-06-11 22:48:09 +03:00
_resources.tpl Don't overcommit memory or throttle CPU 2025-05-12 15:59:28 +03:00
_versions.tpl [postgres] Add version management system with automated version updates 2025-12-01 23:56:55 +01:00
backup-secret.yaml [postgres] add backup and restore 2025-06-23 15:38:34 +02:00
backup.yaml wrap cron in quotes to avoid yaml issues 2025-06-23 17:59:05 +03:00
dashboard-resourcemap.yaml bugfix fix pg LB frontend 2025-07-16 11:56:45 +03:00
db.yaml refactor: replace Helm lookup with valuesFrom mechanism 2026-01-05 16:10:55 +01:00
external-svc.yaml [platform] Autodetect RobotLB 2025-07-24 18:55:30 +03:00
init-job.yaml [postgres] Add version management system with automated version updates 2025-12-01 23:56:55 +01:00
init-script.yaml [controller,api] Refactor tenant resource label 2025-10-01 13:24:40 +03:00
regsecret.yaml Preapare release v0.0.1 2024-02-08 12:04:32 +01:00