fix(kubernetes): gate HAMi HelmRelease on _namespace.etcd

Match the pattern used by every other tenant-cluster addon HelmRelease
(gpu-operator, cilium, fluxcd, ...): only render when the upstream etcd
namespace is ready, not just when the addon is enabled. Add values-ci.yaml
to the HAMi test suite so the new gate has the fixture it needs.

Signed-off-by: Arsolitt <arsolitt@gmail.com>
This commit is contained in:
Arsolitt 2026-04-29 11:13:42 +03:00
parent 9876acec2f
commit d5caffcc8d
No known key found for this signature in database
GPG key ID: 4D8302CE6A9247C4
2 changed files with 3 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{{- if .Values.addons.hami.enabled }}
{{- if and .Values.addons.hami.enabled .Values._namespace.etcd }}
{{- if not .Values.addons.gpuOperator.enabled }}
{{- fail "addons.hami requires addons.gpuOperator to be enabled" }}
{{- end }}

View file

@ -1,6 +1,8 @@
suite: HAMi HelmRelease tests
templates:
- templates/helmreleases/hami.yaml
values:
- values-ci.yaml
tests:
- it: should not render when hami is disabled
set: