troubleshoot icon indicating copy to clipboard operation
troubleshoot copied to clipboard

Add support for configmap and secret resources

Open tstephen-relx opened this issue 3 years ago • 1 comments

I have created support bundles containing these resources not included in cluster-resources collector following the documentation: https://troubleshoot.sh/docs/collect/configmap/ and https://troubleshoot.sh/docs/collect/secret/ but subsequently running the kubectl commands produces errors like these:

Error from server (NotFound): Unable to list "/v1, Resource=configmaps": the server could not find the requested resource (get configmaps)

I imagine this is because configmaps and secrets are stored in parallel folders. Could they not be read from there? Screenshot 2023-04-24 at 12 43 30

tstephen-relx avatar Apr 24 '23 12:04 tstephen-relx

Hi, thanks for the report!

Unfortunately, as you know, sbctl looks in the cluster-resources directory only.

We should fix that in Troubleshoot - I'll move this issue to the Troubleshoot project so that it can get assigned. The change I'd like to see is that we either have sbctl able to search multiple directories, or more likely we add secrets and configmaps to cluster-resources.

xavpaice avatar May 03 '23 08:05 xavpaice