pt-k8s-debug-collector should not attempt collecting PXC information when running against PSMDB

Description

As stated in the summary, the tool should avoid trying to get PXC-related information when it knows it runs against PSMDB operator.

$ ~/bin/pt-k8s-debug-collector --namespace sktest-psmdb-prod --cluster sktest-psmdb-prod --resource psmdb 2021/02/10 11:33:29 Start collecting cluster data 2021/02/10 11:33:55 Error: get resource perconaxtradbbackups in namespace sktest-psmdb-prod: error: exit status 1, stderr: error: the server doesn't have a resource type "perconaxtradbbackups" , stdout: 2021/02/10 11:33:56 Error: get resource perconaxtradbclusterbackups in namespace sktest-psmdb-prod: error: exit status 1, stderr: error: the server doesn't have a resource type "perconaxtradbclusterbackups" , stdout: 2021/02/10 11:33:57 Error: get resource perconaxtradbclusterrestores in namespace sktest-psmdb-prod: error: exit status 1, stderr: error: the server doesn't have a resource type "perconaxtradbclusterrestores" , stdout: 2021/02/10 11:33:58 Error: get resource perconaxtradbclusters in namespace sktest-psmdb-prod: error: exit status 1, stderr: error: the server doesn't have a resource type "perconaxtradbclusters" , stdout: 2021/02/10 11:34:03 Done

When executed without arguments against context where there's no PXC, the errors are repeated multiple times for each namespace.

Environment

None

Smart Checklist

Activity

Show:
Done

Details

Assignee

Reporter

Priority

Affects versions

Fix versions

Story Points

Smart Checklist

Created February 10, 2021 at 11:51 AM
Updated February 29, 2024 at 8:54 PM
Resolved January 30, 2023 at 12:51 PM

Flag notifications