Skip to content

Conversation

@cbuto
Copy link

@cbuto cbuto commented Oct 28, 2025

Description, Motivation and Context

This PR updates the cluster resources collector to use the proper output path for replicasets.

While collecting a support-bundle from a cluster with restricted permissions, I came across this error:

Error: failed to run collect and analyze process: create bundle file: failed to stat file: lstat /var/folders/j8/9dmckpr53fsgt2ttnjvc8x1h0000gn/T/supportbundle3684131245/support-bundle-2025-10-28T14_47_51/cluster-resources/statefulsets-errors.json/default.json: not a directory
Error: failed to run collect and analyze process: create bundle file: failed to stat file: lstat /var/folders/j8/9dmckpr53fsgt2ttnjvc8x1h0000gn/T/supportbundle3684131245/support-bundle-2025-10-28T14_47_51/cluster-resources/statefulsets-errors.json/default.json: not a directory

I only ran into it because of permissions issues with collecting statefulsets, so the statefulsets-errors.json file was created.

After building a binary from this branch, I was able to collect a bundle successfully.

Checklist

  • New and existing tests pass locally with introduced changes.
  • Tests for the changes have been added (for bug fixes / features)
  • The commit message(s) are informative and highlight any breaking changes
  • Any documentation required has been added/updated. For changes to https://troubleshoot.sh/ create a PR here

Does this PR introduce a breaking change?

  • Yes
  • No

@cbuto
Copy link
Author

cbuto commented Oct 29, 2025

cc @NoaheCampbell @bennyyang11 (just grabbed from recent committers 😄)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant