cozystack/internal/controller
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
..
dashboard [dashboard] Fix CustomFormsOverride schema to nest properties under spec.properties 2025-12-08 23:27:24 +01:00
kubeovnplunger [kubeovn] Implement the KubeOVN plunger 2025-09-11 02:11:58 +03:00
cozystackresource_controller.go Fix review comments 2025-12-23 19:54:58 +01:00
cozystackresourcedefinition_helmreconciler.go refactor: replace Helm lookup with valuesFrom mechanism 2026-01-05 16:10:55 +01:00
suite_test.go Move project from aenix-io to cozystack repository 2025-03-10 21:16:58 +01:00
workload_controller.go [cozystack-controller] Refactor errors 2025-07-21 18:46:48 +02:00
workload_controller_test.go [cozystack-controller] Fix deleting workloads 2025-07-21 17:56:18 +02:00
workloadmonitor_controller.go [cozystack-controller] Refactor errors 2025-07-21 18:46:48 +02:00