Fix healthcheck

see #8
This commit is contained in:
2022-04-01 17:39:41 +02:00
parent f8dcd2026b
commit a87391e726
3 changed files with 79 additions and 4 deletions

View File

@@ -607,10 +607,14 @@ func prepareProbes(name string, s *compose.Service, container *helm.Container) {
Command: c,
}
}
} else if s.HealthCheck.Test[0] == "CMD" {
} else if s.HealthCheck.Test[0] == "CMD" || s.HealthCheck.Test[0] == "CMD-SHELL" {
probe.Exec = &helm.Exec{
Command: s.HealthCheck.Test[1:],
}
} else {
probe.Exec = &helm.Exec{
Command: s.HealthCheck.Test,
}
}
container.LivenessProbe = probe
}