Skip to content

Commit

Permalink
Save healthcheck/json objs in container_info
Browse files Browse the repository at this point in the history
  • Loading branch information
mstemm committed Feb 21, 2019
1 parent 816c19d commit a657c17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions userspace/libsinsp/container_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ void sinsp_container_info::parse_healthcheck(const Json::Value &healthcheck_obj)
{
if(!healthcheck_obj.isNull())
{
m_healthcheck_obj = healthcheck_obj;

const Json::Value &test_obj = healthcheck_obj["Test"];

if(!test_obj.isNull() && test_obj.isArray() && test_obj.size() >= 2)
Expand Down Expand Up @@ -114,6 +116,8 @@ void sinsp_container_info::parse_liveness_probe(const Json::Value &liveness_prob
{
if(!liveness_probe_obj.isNull())
{
m_liveness_probe_obj = liveness_probe_obj;

const Json::Value &exec_obj = liveness_probe_obj["exec"];

if(exec_obj.isNull())
Expand Down

0 comments on commit a657c17

Please sign in to comment.