Skip to content

Copy collector does not copy folders #1748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jdewinne opened this issue Mar 3, 2025 · 0 comments
Open

Copy collector does not copy folders #1748

jdewinne opened this issue Mar 3, 2025 · 0 comments

Comments

@jdewinne
Copy link
Member

jdewinne commented Mar 3, 2025

Bug Description
When using the copy collector, it doesn't copy folders
Example:
Create a k8s cluster (for example using CMX with replicated cluster create --distribution k3s) and deploy netshoot in the default namespace. Make sure the label for app is specified.
Exec into the netshoot container and create the folder /tmp/test and also some subfolders and files.
Execute the following spec using kubectl support-bundle

apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
metadata:
  name: sample
spec:
  collectors:
  #Copies htdocs folder
    - copy:
        selector:
          - app=netshoot
        namespace: default
        containerPath: /tmp/test

Expected Behavior

The resulting support bundle should contain the corresponding files/folders.

Steps To Reproduce
See description

Additional Context

Include the following information.

  • Troubleshoot version: 0.117.0
  • k8s: k3s
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

No branches or pull requests

1 participant