mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-30 14:56:59 +00:00
Healthchecks for several Policy types. Signed-off-by: Justin Kulikauskas <[email protected]>
16 lines
428 B
Lua
16 lines
428 B
Lua
hs = {}
|
|
if obj.status == nil or obj.status.compliant == nil then
|
|
hs.status = "Progressing"
|
|
hs.message = "Waiting for the status to be reported"
|
|
return hs
|
|
end
|
|
if obj.status.compliant == "Compliant" then
|
|
hs.status = "Healthy"
|
|
hs.message = "All certificates found comply with the policy"
|
|
return hs
|
|
else
|
|
hs.status = "Degraded"
|
|
hs.message = "At least once certificate does not comply with the policy"
|
|
return hs
|
|
end
|