Skip to content

Commit bc645a8

Browse files
leogrpoiana
authored andcommitted
docs(plugins/container): deprecation message for old k8s fields
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
1 parent 5dd873d commit bc645a8

File tree

1 file changed

+20
-31
lines changed

1 file changed

+20
-31
lines changed

plugins/container/src/caps/extract/extract.cpp

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -445,65 +445,54 @@ std::vector<falcosecurity::field_info> my_plugin::get_fields()
445445
"not be available yet."},
446446
{ft::FTYPE_STRING, "k8s.rc.name",
447447
"[Deprecated] Replication Controller Name",
448-
"Kubernetes replication controller name."},
448+
"Deprecated. Use `k8smeta` plugin instead."},
449449
{ft::FTYPE_STRING, "k8s.rc.id",
450450
"[Deprecated] Replication Controller ID",
451-
"Kubernetes replication controller id."},
451+
"Deprecated. Use `k8smeta` plugin instead."},
452452
{ft::FTYPE_STRING, "k8s.rc.label",
453453
"[Deprecated] Replication Controller Label",
454-
"Kubernetes replication controller label. E.g. "
455-
"'k8s.rc.label.foo'.",
454+
"Deprecated. Use `k8smeta` plugin instead.",
456455
req_key_arg},
457456
{ft::FTYPE_STRING, "k8s.rc.labels",
458457
"[Deprecated] Replication Controller Labels",
459-
"Kubernetes replication controller comma-separated key/value "
460-
"labels. E.g. "
461-
"'foo1:bar1,foo2:bar2'."},
458+
"Deprecated. Use `k8smeta` plugin instead."},
462459
{ft::FTYPE_STRING, "k8s.svc.name", "[Deprecated] Service Name",
463-
"Kubernetes service name (can return more than one value, "
464-
"concatenated)."},
460+
"Deprecated. Use `k8smeta` plugin instead."},
465461
{ft::FTYPE_STRING, "k8s.svc.id", "[Deprecated] Service ID",
466-
"Kubernetes service id (can return more than one value, "
467-
"concatenated)."},
462+
"Deprecated. Use `k8smeta` plugin instead."},
468463
{ft::FTYPE_STRING, "k8s.svc.label", "[Deprecated] Service Label",
469-
"Kubernetes service label. E.g. 'k8s.svc.label.foo' (can return "
470-
"more than one value, "
471-
"concatenated).",
464+
"Deprecated. Use `k8smeta` plugin instead.",
472465
req_key_arg},
473466
{ft::FTYPE_STRING, "k8s.svc.labels", "[Deprecated] Service Labels",
474-
"Kubernetes service comma-separated key/value labels. E.g. "
475-
"'foo1:bar1,foo2:bar2'."},
467+
"Deprecated. Use `k8smeta` plugin instead."},
476468
{ft::FTYPE_STRING, "k8s.ns.id", "[Deprecated] Namespace ID",
477-
"Kubernetes namespace id."},
469+
"Deprecated. Use `k8smeta` plugin instead."},
478470
{ft::FTYPE_STRING, "k8s.ns.label", "[Deprecated] Namespace Label",
479-
"Kubernetes namespace label. E.g. 'k8s.ns.label.foo'.",
471+
"Deprecated. Use `k8smeta` plugin instead.",
480472
req_key_arg},
481473
{ft::FTYPE_STRING, "k8s.ns.labels", "[Deprecated] Namespace Labels",
482-
"Kubernetes namespace comma-separated key/value labels. E.g. "
483-
"'foo1:bar1,foo2:bar2'."},
474+
"Deprecated. Use `k8smeta` plugin instead."},
484475
{ft::FTYPE_STRING, "k8s.rs.name", "[Deprecated] Replica Set Name",
485-
"Kubernetes replica set name."},
476+
"Deprecated. Use `k8smeta` plugin instead."},
486477
{ft::FTYPE_STRING, "k8s.rs.id", "[Deprecated] Replica Set ID",
487-
"Kubernetes replica set id."},
478+
"Deprecated. Use `k8smeta` plugin instead."},
488479
{ft::FTYPE_STRING, "k8s.rs.label", "[Deprecated] Replica Set Label",
489-
"Kubernetes replica set label. E.g. 'k8s.rs.label.foo'.",
480+
"Deprecated. Use `k8smeta` plugin instead.",
490481
req_key_arg},
491482
{ft::FTYPE_STRING, "k8s.rs.labels",
492483
"[Deprecated] Replica Set Labels",
493-
"Kubernetes replica set comma-separated key/value labels. E.g. "
494-
"'foo1:bar1,foo2:bar2'."},
484+
"Deprecated. Use `k8smeta` plugin instead."},
495485
{ft::FTYPE_STRING, "k8s.deployment.name",
496-
"[Deprecated] Deployment Name", "Kubernetes deployment name."},
486+
"[Deprecated] Deployment Name", "Deprecated. Use `k8smeta` plugin instead."},
497487
{ft::FTYPE_STRING, "k8s.deployment.id",
498-
"[Deprecated] Deployment ID", "Kubernetes deployment id."},
488+
"[Deprecated] Deployment ID", "Deprecated. Use `k8smeta` plugin instead."},
499489
{ft::FTYPE_STRING, "k8s.deployment.label",
500490
"[Deprecated] Deployment Label",
501-
"Kubernetes deployment label. E.g. 'k8s.rs.label.foo'.",
491+
"Deprecated. Use `k8smeta` plugin instead.",
502492
req_key_arg},
503493
{ft::FTYPE_STRING, "k8s.deployment.labels",
504494
"[Deprecated] Deployment Labels",
505-
"Kubernetes deployment comma-separated key/value labels. E.g. "
506-
"'foo1:bar1,foo2:bar2'."},
495+
"Deprecated. Use `k8smeta` plugin instead."},
507496
};
508497
const int fields_size = sizeof(fields) / sizeof(fields[0]);
509498
static_assert(fields_size == TYPE_CONTAINER_FIELD_MAX,
@@ -1013,4 +1002,4 @@ bool my_plugin::extract(const falcosecurity::extract_fields_input &in)
10131002
return true;
10141003
}
10151004

1016-
FALCOSECURITY_PLUGIN_FIELD_EXTRACTION(my_plugin);
1005+
FALCOSECURITY_PLUGIN_FIELD_EXTRACTION(my_plugin);

0 commit comments

Comments
 (0)