From e97188b8232463c8490282842ef9950f973614f8 Mon Sep 17 00:00:00 2001 From: Tanvir Tatla Date: Thu, 5 Dec 2024 17:12:29 -0800 Subject: [PATCH] update collectors for curated packages namespaces (#9044) --- pkg/constants/constants.go | 4 ++++ pkg/diagnostics/collectors.go | 30 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/pkg/constants/constants.go b/pkg/constants/constants.go index d71726d4ea7e..2d0c71934780 100644 --- a/pkg/constants/constants.go +++ b/pkg/constants/constants.go @@ -25,6 +25,10 @@ const ( KubeNodeLeaseNamespace = "kube-node-lease" KubePublicNamespace = "kube-public" KubeSystemNamespace = "kube-system" + AdotPrometheusNamespace = "observability" + MetallbNamespace = "metallb-system" + EmissaryNamespace = "emissary-system" + HarborNamespace = "harbor" LocalPathStorageNamespace = "local-path-storage" EtcdAdmBootstrapProviderName = "bootstrap-etcdadm-bootstrap" EtcdadmControllerProviderName = "bootstrap-etcdadm-controller" diff --git a/pkg/diagnostics/collectors.go b/pkg/diagnostics/collectors.go index 1be6e37d410a..d8a81b3fe07f 100644 --- a/pkg/diagnostics/collectors.go +++ b/pkg/diagnostics/collectors.go @@ -293,6 +293,36 @@ func (c *EKSACollectorFactory) packagesLogCollectors() []*Collect { Name: logpath(constants.EksaPackagesName), }, }, + { + Logs: &logs{ + Namespace: constants.AdotPrometheusNamespace, + Name: logpath(constants.AdotPrometheusNamespace), + }, + }, + { + Logs: &logs{ + Namespace: constants.MetallbNamespace, + Name: logpath(constants.MetallbNamespace), + }, + }, + { + Logs: &logs{ + Namespace: constants.EmissaryNamespace, + Name: logpath(constants.EmissaryNamespace), + }, + }, + { + Logs: &logs{ + Namespace: constants.CertManagerNamespace, + Name: logpath(constants.CertManagerNamespace), + }, + }, + { + Logs: &logs{ + Namespace: constants.HarborNamespace, + Name: logpath(constants.HarborNamespace), + }, + }, } }