mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-23 16:38:52 +00:00
chore(userspace/falco): remove Mesos support
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
parent
5c0cd6a170
commit
88b9537618
@ -147,7 +147,7 @@ public:
|
|||||||
// of all output expressions. You can also choose to replace
|
// of all output expressions. You can also choose to replace
|
||||||
// %container.info with the extra information or add it to the
|
// %container.info with the extra information or add it to the
|
||||||
// end of the expression. This is used in open source falco to
|
// end of the expression. This is used in open source falco to
|
||||||
// add k8s/mesos/container information to outputs when
|
// add k8s/container information to outputs when
|
||||||
// available.
|
// available.
|
||||||
//
|
//
|
||||||
void set_extra(std::string &extra, bool replace_container_info);
|
void set_extra(std::string &extra, bool replace_container_info);
|
||||||
|
@ -64,27 +64,6 @@ falco::app::run_result falco::app::actions::init_clients(falco::app::state& s)
|
|||||||
}
|
}
|
||||||
inspector->init_k8s_client(k8s_api_ptr, k8s_api_cert_ptr, k8s_node_name_ptr, s.options.verbose);
|
inspector->init_k8s_client(k8s_api_ptr, k8s_api_cert_ptr, k8s_node_name_ptr, s.options.verbose);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// DEPRECATED!
|
|
||||||
// Run mesos, if required
|
|
||||||
// todo(leogr): remove in Falco 0,.35
|
|
||||||
//
|
|
||||||
if(!s.options.mesos_api.empty())
|
|
||||||
{
|
|
||||||
// Differs from init_k8s_client in that it
|
|
||||||
// passes a pointer but the inspector does
|
|
||||||
// *not* own it and does not use it after
|
|
||||||
// init_mesos_client() returns.
|
|
||||||
falco_logger::log(LOG_WARNING, "Mesos support has been DEPRECATED and will be removed in the next version!\n");
|
|
||||||
inspector->init_mesos_client(&(s.options.mesos_api), s.options.verbose);
|
|
||||||
}
|
|
||||||
else if(char* mesos_api_env = getenv("FALCO_MESOS_API"))
|
|
||||||
{
|
|
||||||
falco_logger::log(LOG_WARNING, "Mesos support has been DEPRECATED and will be removed in the next version!\n");
|
|
||||||
std::string mesos_api_copy = mesos_api_env;
|
|
||||||
inspector->init_mesos_client(&mesos_api_copy, s.options.verbose);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return run_result::ok();
|
return run_result::ok();
|
||||||
|
@ -63,7 +63,6 @@ public:
|
|||||||
std::string print_plugin_info;
|
std::string print_plugin_info;
|
||||||
bool list_syscall_events;
|
bool list_syscall_events;
|
||||||
bool markdown;
|
bool markdown;
|
||||||
std::string mesos_api;
|
|
||||||
int duration_to_tot;
|
int duration_to_tot;
|
||||||
bool names_only;
|
bool names_only;
|
||||||
std::vector<std::string> cmdline_config_options;
|
std::vector<std::string> cmdline_config_options;
|
||||||
|
Loading…
Reference in New Issue
Block a user