diff options
author | Milivoje Legenovic <m.legenovic@gmail.com> | 2021-08-03 13:48:07 +0200 |
---|---|---|
committer | Milivoje Legenovic <m.legenovic@gmail.com> | 2021-08-03 15:38:04 +0200 |
commit | a210a2292053e53fe1c90941cf20123aa9c163a9 (patch) | |
tree | 7f6e23d6bcaa993dfa910af4f7082c81a9351c86 /pkg/api/handlers/compat/containers_restart.go | |
parent | e93661f5e765d84893e2ad5a488682c0a67412d0 (diff) | |
download | podman-a210a2292053e53fe1c90941cf20123aa9c163a9.tar.gz podman-a210a2292053e53fe1c90941cf20123aa9c163a9.tar.bz2 podman-a210a2292053e53fe1c90941cf20123aa9c163a9.zip |
Compat API: Fix healthcheck status and healthcheck config
Fixes:
- Do not show healthcheck status if not available or if container
status is "created" (Docker behaviour)
- Show healthcheck configuration if present (Config.Healthcheck)
Tests:
- Ensure State.Health is not present if container status is "created"
- Ensure Config.Healthcheck is present and values correct
- Ensure State.Health is present if container started
Signed-off-by: Milivoje Legenovic <m.legenovic@gmail.com>
Diffstat (limited to 'pkg/api/handlers/compat/containers_restart.go')
0 files changed, 0 insertions, 0 deletions