From 790818690f74dab9b9d39b27747314ec882b47bb Mon Sep 17 00:00:00 2001 From: Nicolae Nicora Date: Tue, 17 Mar 2026 11:05:50 +0100 Subject: [PATCH 1/4] fix: add default tag name if was missed from configuration --- internal/healthcheck/check.go | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/internal/healthcheck/check.go b/internal/healthcheck/check.go index 6d7e247..b5ef431 100644 --- a/internal/healthcheck/check.go +++ b/internal/healthcheck/check.go @@ -19,16 +19,24 @@ func (ch *CachedResponses) process( ) { wg := sync.WaitGroup{} - service := &cfg.Cluster - if service.Enabled && len(service.Resources) > 0 { + cluster := &cfg.Cluster + if cluster.Enabled && len(cluster.Resources) > 0 { wg.Go(func() { - ch.processResources(ctx, service, verifyServiceResource, resultCollector) + if cluster.Tag == "" { + cluster.Tag = "cluster" + } + + ch.processResources(ctx, cluster, verifyServiceResource, resultCollector) }) } k8s := &cfg.Kubernetes if k8s.Enabled && len(k8s.Resources) > 0 { wg.Go(func() { + if k8s.Tag == "" { + k8s.Tag = "kubernetes" + } + ch.processResources(ctx, k8s, verifyK8SResource, resultCollector) }) } @@ -36,6 +44,10 @@ func (ch *CachedResponses) process( linkerd := &cfg.Linkerd if linkerd.Enabled { wg.Go(func() { + if linkerd.Tag == "" { + linkerd.Tag = "linkerd" + } + ch.processLinkerdResources(ctx, linkerd, resultCollector) }) } From a2df9b1921451cfe59ab91afca5309c022c3dd5e Mon Sep 17 00:00:00 2001 From: Nicolae Nicora Date: Tue, 17 Mar 2026 11:08:44 +0100 Subject: [PATCH 2/4] fix: add default tag name if was missed from configuration --- .coderabbit.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.coderabbit.yaml b/.coderabbit.yaml index 72d022d..7e1cc01 100644 --- a/.coderabbit.yaml +++ b/.coderabbit.yaml @@ -1,5 +1,4 @@ # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json -version: 2 language: "en-US" early_access: false From ad8b94fda7b030d710613990130e409e14925829 Mon Sep 17 00:00:00 2001 From: Nicolae Nicora Date: Tue, 17 Mar 2026 11:16:46 +0100 Subject: [PATCH 3/4] fix: add default tag name if was missed from configuration --- internal/healthcheck/check.go | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/internal/healthcheck/check.go b/internal/healthcheck/check.go index b5ef431..3776810 100644 --- a/internal/healthcheck/check.go +++ b/internal/healthcheck/check.go @@ -21,33 +21,30 @@ func (ch *CachedResponses) process( cluster := &cfg.Cluster if cluster.Enabled && len(cluster.Resources) > 0 { + if cluster.Tag == "" { + cluster.Tag = "cluster" + } wg.Go(func() { - if cluster.Tag == "" { - cluster.Tag = "cluster" - } - ch.processResources(ctx, cluster, verifyServiceResource, resultCollector) }) } k8s := &cfg.Kubernetes if k8s.Enabled && len(k8s.Resources) > 0 { + if k8s.Tag == "" { + k8s.Tag = "kubernetes" + } wg.Go(func() { - if k8s.Tag == "" { - k8s.Tag = "kubernetes" - } - ch.processResources(ctx, k8s, verifyK8SResource, resultCollector) }) } linkerd := &cfg.Linkerd if linkerd.Enabled { + if linkerd.Tag == "" { + linkerd.Tag = "linkerd" + } wg.Go(func() { - if linkerd.Tag == "" { - linkerd.Tag = "linkerd" - } - ch.processLinkerdResources(ctx, linkerd, resultCollector) }) } From 48cd576e128b715db4c34dcc17d08e65917c31ef Mon Sep 17 00:00:00 2001 From: Nicolae Nicora Date: Tue, 17 Mar 2026 11:45:49 +0100 Subject: [PATCH 4/4] fix: add default tag name if was missed from configuration --- internal/healthcheck/check.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/healthcheck/check.go b/internal/healthcheck/check.go index 3776810..8428901 100644 --- a/internal/healthcheck/check.go +++ b/internal/healthcheck/check.go @@ -24,6 +24,7 @@ func (ch *CachedResponses) process( if cluster.Tag == "" { cluster.Tag = "cluster" } + wg.Go(func() { ch.processResources(ctx, cluster, verifyServiceResource, resultCollector) }) @@ -34,6 +35,7 @@ func (ch *CachedResponses) process( if k8s.Tag == "" { k8s.Tag = "kubernetes" } + wg.Go(func() { ch.processResources(ctx, k8s, verifyK8SResource, resultCollector) }) @@ -44,6 +46,7 @@ func (ch *CachedResponses) process( if linkerd.Tag == "" { linkerd.Tag = "linkerd" } + wg.Go(func() { ch.processLinkerdResources(ctx, linkerd, resultCollector) })