Skip to content

Commit

Permalink
update collectors for curated packages namespaces (#9044)
Browse files Browse the repository at this point in the history
  • Loading branch information
tatlat authored Dec 6, 2024
1 parent a862cd2 commit e97188b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
30 changes: 30 additions & 0 deletions pkg/diagnostics/collectors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
},
}
}

Expand Down

0 comments on commit e97188b

Please sign in to comment.