mirror of
https://github.com/helm/chart-testing.git
synced 2026-02-05 09:45:14 +01:00
Fix readiness check (#57)
Readiness check should happen before tests are executed. Otherwise the fails if there are tests and test pods match the label selectors that identify pods. Since test pods have status Completed, they cause the readiness check to fail. Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
This commit is contained in:
@@ -68,11 +68,11 @@ func (h Helm) InstallWithValues(chart string, valuesFile string, namespace strin
|
||||
return err
|
||||
}
|
||||
|
||||
if err := h.exec.RunProcess("helm", "test", release, h.extraArgs); err != nil {
|
||||
if err := h.kubectl.WaitForDeployments(namespace); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return h.kubectl.WaitForDeployments(namespace)
|
||||
return h.exec.RunProcess("helm", "test", release, h.extraArgs)
|
||||
}
|
||||
|
||||
func (h Helm) DeleteRelease(release string) {
|
||||
|
||||
Reference in New Issue
Block a user