cozystack/packages/apps/vm-instance/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
..
_helpers.tpl refactor: replace Helm lookup with valuesFrom mechanism 2026-01-05 16:10:55 +01:00
dashboard-resourcemap.yaml bugfix: vm and vmi add svc to dashboard 2025-07-08 10:02:34 +03:00
secret.yaml [virtual-machine] add comment about sshKeys logic 2025-07-09 10:37:39 +02:00
service.yaml [vm] Always expose VMs with a service 2025-12-19 14:51:09 +03:00
vm-update-hook.yaml [virtual-machine] Fix vm update hook (#1376) 2025-09-01 19:46:14 +02:00
vm.yaml [virtual-machine,vm-instance] Add nodeAffinity for Windows VMs based on scheduling config 2025-12-09 13:27:55 +01:00