Skip to content

Commit

Permalink
parse other container variables in static container
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Kauffman <[email protected]>
  • Loading branch information
speedyguy17 authored and mstemm committed Oct 12, 2022
1 parent ff5aca4 commit a6efb4a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions userspace/libsinsp/container_engine/static_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ limitations under the License.
#include "sinsp.h"

#include "container_engine/static_container.h"
#include <iostream>

using namespace libsinsp::container_engine;

Expand All @@ -33,6 +34,19 @@ static_container::static_container(container_cache_interface& cache,
m_static_container_info->m_name = name;
m_static_container_info->m_image = image;

// we don't care about these, so make dummies to
// dump them on the floor
std::string hostname;
std::string port;
sinsp_utils::split_container_image(m_static_container_info->m_image,
hostname,
port,
m_static_container_info->m_imagerepo,
m_static_container_info->m_imagetag,
m_static_container_info->m_imagedigest,
false);


cache.add_container(m_static_container_info, nullptr);
}

Expand Down

0 comments on commit a6efb4a

Please sign in to comment.