-
Notifications
You must be signed in to change notification settings - Fork 94
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
feat: sonobuoy collector #1469
feat: sonobuoy collector #1469
Conversation
04c592d
to
eb7bde4
Compare
ec := make(chan error, 1) | ||
|
||
restClient := client.CoreV1().RESTClient() | ||
req := restClient.Post(). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Could you log the command being run? When testing this I couldn't get results so wanted to test using kubectl
. Grabbing the parameters from logs would be nice
Some high level logs like "results were collected", "could not collect anything... "...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
Collecting support bundle ⠙ sonobuoyI0215 06:46:55.370095 50799 sonobuoy_results.go:132] Sonobuoy collector runing command: kubectl exec -n sonobuoy sonobuoy -c kube-sonobuoy -- /sonobuoy splat /tmp/sonobuoy
Collecting support bundle ⠼ sonobuoyI0215 06:46:56.623800 50799 sonobuoy_results.go:99] Sonobuoy collector found file: 202402151442_sonobuoy_ca07019f-7be9-4c54-9449-e1611c7cc5a8.tar.gz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. I'm not able to collect any results using k exec -n sonobuoy -it sonobuoy -c kube-sonobuoy -- /sonobuoy splat /tmp/sonobuoy
or when running support-bundle
. I'm probably missing something here. How can I test this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment to remove approve.
You will first have to run sonobuoy in your cluster
|
a7a9995
to
7e6bc39
Compare
Description, Motivation and Context
Retrieve sonobuoy results from the cluster and store them in the bundle. An analyzer would be beneficial as a follow up.
replicatedhq/troubleshoot.sh#547
Checklist
Does this PR introduce a breaking change?