From 097b7ea4e264b6785a9be3dbabff77da7a1f6bfd Mon Sep 17 00:00:00 2001 From: Andrew Gizas Date: Wed, 24 Apr 2024 09:48:42 +0300 Subject: [PATCH 1/3] Update libbeat/autodiscover/providers/kubernetes/node.go Co-authored-by: Denis --- libbeat/autodiscover/providers/kubernetes/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbeat/autodiscover/providers/kubernetes/node.go b/libbeat/autodiscover/providers/kubernetes/node.go index 8dbd4bac2803..4747c751cbfc 100644 --- a/libbeat/autodiscover/providers/kubernetes/node.go +++ b/libbeat/autodiscover/providers/kubernetes/node.go @@ -154,7 +154,7 @@ func (n *node) GenerateHints(event bus.Event) bus.Event { } hints, incorrecthints := utils.GenerateHints(annotations, "", n.config.Prefix, true, AllSupportedHints) - //We check whether the provided annotation follows the supported format and vocabulary. The check happens for annotations that have prefix co.elastic + // We check whether the provided annotation follows the supported format and vocabulary. The check happens for annotations that have prefix co.elastic for _, value := range incorrecthints { n.logger.Debugf("provided hint: %s/%s is not in the supported list", n.config.Prefix, value) } From 08f3c608153d450153e0767668529e566e19f393 Mon Sep 17 00:00:00 2001 From: Andrew Gizas Date: Wed, 24 Apr 2024 09:48:52 +0300 Subject: [PATCH 2/3] Update libbeat/autodiscover/providers/kubernetes/pod.go Co-authored-by: Denis --- libbeat/autodiscover/providers/kubernetes/pod.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbeat/autodiscover/providers/kubernetes/pod.go b/libbeat/autodiscover/providers/kubernetes/pod.go index b102c9991c04..73241f6fda45 100644 --- a/libbeat/autodiscover/providers/kubernetes/pod.go +++ b/libbeat/autodiscover/providers/kubernetes/pod.go @@ -247,7 +247,7 @@ func (p *pod) GenerateHints(event bus.Event) bus.Event { // Generate hints based on the cumulative of both namespace and pod annotations. hints, incorrecthints := utils.GenerateHints(annotations, cname, p.config.Prefix, true, AllSupportedHints) - //We check whether the provided annotation follows the supported format and vocabulary. The check happens for annotations that have prefix co.elastic + // We check whether the provided annotation follows the supported format and vocabulary. The check happens for annotations that have prefix co.elastic for _, value := range incorrecthints { p.logger.Debugf("provided hint: %s/%s is not in the supported list", p.config.Prefix, value) } From bf441cf048ef482f5473a91de0026a717a485820 Mon Sep 17 00:00:00 2001 From: Andrew Gizas Date: Wed, 24 Apr 2024 09:49:03 +0300 Subject: [PATCH 3/3] Update libbeat/autodiscover/providers/kubernetes/service.go Co-authored-by: Denis --- libbeat/autodiscover/providers/kubernetes/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbeat/autodiscover/providers/kubernetes/service.go b/libbeat/autodiscover/providers/kubernetes/service.go index 7b14e061b174..da7300c0c7f3 100644 --- a/libbeat/autodiscover/providers/kubernetes/service.go +++ b/libbeat/autodiscover/providers/kubernetes/service.go @@ -156,7 +156,7 @@ func (s *service) GenerateHints(event bus.Event) bus.Event { } hints, incorrecthints := utils.GenerateHints(annotations, "", s.config.Prefix, true, AllSupportedHints) - //We check whether the provided annotation follows the supported format and vocabulary. The check happens for annotations that have prefix co.elastic + // We check whether the provided annotation follows the supported format and vocabulary. The check happens for annotations that have prefix co.elastic for _, value := range incorrecthints { s.logger.Debugf("provided hint: %s/%s is not in the supported list", s.config.Prefix, value) }