From 1f80134ed7d3b294e3edfa0476a2f9efd9e4fbaf Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Mon, 18 Dec 2023 15:35:52 +0100 Subject: [PATCH] update(k8smeta): remove a wrong log Signed-off-by: Andrea Terzolo --- plugins/k8smeta/src/plugin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/k8smeta/src/plugin.cpp b/plugins/k8smeta/src/plugin.cpp index 33f3196b..ca0a377c 100644 --- a/plugins/k8smeta/src/plugin.cpp +++ b/plugins/k8smeta/src/plugin.cpp @@ -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;