Skip to content

Commit

Permalink
update(k8smeta): remove a wrong log
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Terzolo <[email protected]>
  • Loading branch information
Andreagit97 committed Dec 18, 2023
1 parent 21eaf33 commit d2811e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/k8smeta/src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -953,12 +953,12 @@ bool my_plugin::extract(const falcosecurity::extract_fields_input& in)
return extract_labels_from_meta(pod_layout.meta, req);
case K8S_POD_IP:
{
// The pod ip is not always there, for example during pod
// initialization we could receive an initial pod without the ip and
// then in a second moment, we will receive an update on that pod.
if(!pod_layout.status.contains(
nlohmann::json::json_pointer(POD_IP_PATH)))
{
SPDLOG_ERROR("The pod status doesn't contain the '{}' field. "
"Resource status:\n{}\n",
POD_IP_PATH, pod_layout.status.dump());
return false;
}
std::string pod_ip;
Expand Down

0 comments on commit d2811e4

Please sign in to comment.