Dexter Yan
be26462c19
feat(cluster_resources): increase default client burst and qps ( #920 )
...
* feat(collect): add client burst and qps
2022-12-22 09:49:42 +13:00
Diamon Wiggins
a4c4b24056
Deduplication for Cluster Resources Collector ( #832 )
...
* add dedup for cluster resources collector
* restructure both collect.go in both pkg/supportbundle and pkg/preflight to be more similar for eventual refactor
2022-12-07 15:10:31 -04:00
Evans Mungai
fbbcf87405
feat(collectors): Store all pod logs in cluster-resources directory ( #821 )
...
* feat(collectors): Store all pod logs in cluster-resources directory
All pod logs collected by the logs collector will now be stored in
/cluster-resources/pods/logs/[namespace]/[pod]/[container].log. This
will provide consistency and allow sbctl to find the logs when we run
`kubectl logs <pod>`. To allow backwards compatibility, symlinks of the
log files will be created in the current expected locations.
Closes : #744
2022-11-22 07:10:34 +13:00
Diamon Wiggins
c34d80c300
Discover Redactors in Cluster ( #827 )
...
Adds the ability to search for support bundle specs and redactors, in both configmaps and secrets
2022-11-10 17:36:51 +13:00
Xav Paice
3513eeca19
Ensure clusterResources is added prior to other collectors ( #768 )
...
This change ensures that the clusterResources collector runs prior to any others
in order to not collect info on pods that collectors run during collection.
Additionally centralizes functions that are common to all collection to make future
maintenance simpler.
Fixes : #767
2022-11-01 12:16:01 +13:00
Diamon Wiggins
04c7a18da3
Fix Progress Callback for Support Bundle Collection ( #781 )
...
fix progress callback for support bundle and revert collector title changes
2022-10-14 12:29:59 -04:00
ada mancini
eb40b9422f
implement uri: field ( #702 )
2022-10-05 15:35:55 +13:00
Diamon Wiggins
c7b84ad1e5
Refactor in-clusters collectors to use struct per collector ( #670 )
...
refactor in-clusters collectors to use struct per collector
2022-10-03 13:53:05 -04:00
Diamon Wiggins
e53871b4dc
adding tests
2022-09-13 23:00:57 -04:00
Diamon Wiggins
ed34afc51b
adding back default collectors
2022-09-11 18:33:35 -04:00
Diamon Wiggins
d4e5c0dba4
discovery support bundle specs from secrets matching label selector
2022-09-11 18:28:24 -04:00
Dan Jones
d70ecf7e5f
Add a rough test for bundle concatenation
...
Signed-off-by: Dan Jones <danj@replicated.com >
2022-09-08 17:16:38 +01:00
Dan Jones
b5a56e5239
Remove redundant loops
...
Signed-off-by: Dan Jones <danj@replicated.com >
2022-09-07 09:14:09 +01:00
Dan Jones
b6f8ac211e
Format
...
Signed-off-by: Dan Jones <danj@replicated.com >
2022-09-05 15:54:54 +01:00
Dan Jones
63510fc89d
Moved ConcatSpec to supportbundle package and clean up dead code
...
Signed-off-by: Dan Jones <danj@replicated.com >
2022-09-05 14:12:29 +01:00
Xav Paice
f06201e050
Small typo fix in collect.go
2022-08-02 14:36:34 +12:00
Diamon Wiggins
114749d5b7
always attempt to generate a support bundle when host collectors exists
2022-07-30 18:57:24 -04:00
Pavan Sokke Nagaraj
912e76c97e
update go mod github.com/mholt/archiver/v3
2022-07-26 08:03:45 -04:00
Diamon Wiggins
a1533d5ec5
adding host analyzers to kind analyzer and supportbundle
2022-07-06 12:19:44 -04:00
Diamon Wiggins
cab3fc7f4e
Redact Host Collectors in Support Bundles ( #614 )
...
Add redactors for Host Collectors
2022-07-01 18:57:58 -04:00
Marc Campbell
5da84663b1
Support for oci:// retreival of specs
2022-06-03 12:40:15 -07:00
diamonwiggins
17fe3db79f
adding host collectors to support bundles
2022-05-11 22:50:03 +00:00
Salah Al Saleh
9d41d4a7be
Fix getting pod details for new support bundle formats ( #543 )
2022-03-01 15:55:47 -08:00
Craig O'Donnell
0a2ed01a46
improvement: added --output flag for preflight and support bundle ( #538 )
...
* improvement: added --output flag for preflight and support bundle
* improvement: added datetime to preflight default file name
2022-02-17 17:28:28 -05:00
Salah Aldeen Al Saleh
14463642b0
a function to get a pod details from the support bundle ( #476 )
...
* a function to get a pod details from the support bundle
2021-10-28 14:06:02 -07:00
Dimitri Koshkin
111396eb39
fix: pass redact flag when running support-bundle ( #406 )
...
Co-authored-by: Salah Aldeen Al Saleh <sg.alsaleh@gmail.com >
2021-10-20 10:47:27 -07:00
divolgin
0e8bedc281
Save collector data to disk directly
2021-09-29 00:15:02 +00:00
Salah Aldeen Al Saleh
465a533640
store analysis in the support bundle ( #417 )
...
* store analysis in the support bundle
2021-09-10 11:58:16 -07:00
emosbaugh
8dcfa9886d
Copy from host collector ( #391 )
...
* Copy from host collector
* namespace improvements
* better support for multiple nodes
2021-07-22 12:25:59 -07:00
emosbaugh
39350b5722
ConfigMap collector and secrets can be collected by selectors ( #384 )
...
* ConfigMap collector and secrets can be collected by selectors
* follow docs
* Pass context and kubernetes client to collectors
* collect tests
* analyze tests
* fix tests
* improvements
2021-07-08 16:30:26 -07:00
divolgin
c17be3fb73
Do insecure upload if user allows it
2021-05-14 18:21:56 +00:00
Dan Stough
0dd24c702c
fix: use temp directory for storing bundles
2021-05-04 20:29:21 +00:00
Dan Stough
b8622a65ad
chore(support-bundle): refactor out support bundle pkg
2021-05-04 14:41:54 +00:00