cozystack/packages/system/cozystack-api/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
..
api-ingress.yaml refactor: replace Helm lookup with valuesFrom mechanism 2026-01-05 16:10:55 +01:00
apiservice.yaml [api,lineage] Ensure node-local traffic 2025-10-29 09:17:27 +03:00
auth-delegator.yaml Introduce Cozystack API (#460) 2024-11-04 17:33:34 +01:00
auth-reader.yaml Introduce Cozystack API (#460) 2024-11-04 17:33:34 +01:00
certmanager.yaml [api,lineage] Ensure node-local traffic 2025-10-29 09:17:27 +03:00
deployment.yaml [api,lineage] Ensure node-local traffic 2025-10-29 09:17:27 +03:00
hook.yaml [api] Delete previous instance when changing type 2025-11-03 17:22:38 +03:00
rbac-bind.yaml Introduce Cozystack API (#460) 2024-11-04 17:33:34 +01:00
rbac.yaml [api] Use shared informer cache 2025-10-27 16:21:23 +03:00
sa.yaml Introduce Cozystack API (#460) 2024-11-04 17:33:34 +01:00
service.yaml [api,lineage] Ensure node-local traffic 2025-10-29 09:17:27 +03:00
tenantnamespaces-rbac.yaml [cozystack-api] Implement TenantNamespace, TenantModules, TenantSecret and TenantSecretsTable resources 2025-09-24 18:27:54 +02:00