Skip to content

Commit

Permalink
update collectors for curated packages namespaces (#9045)
Browse files Browse the repository at this point in the history
Co-authored-by: Tanvir Tatla <tatlat@amazon.com>
  • Loading branch information
eks-distro-pr-bot and tatlat authored Dec 6, 2024
1 parent 9185691 commit d5c53a1
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 d5c53a1

Please sign in to comment.