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:
parent
9876acec2f
commit
d5caffcc8d
2 changed files with 3 additions and 1 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue