Gerard Nguyen
47656a8e6f
feat: etcd collector ( #1589 )
...
* new schema for etcd collector
* add placeholder
* wip
* get supported distribution
* add exec implementation
* wait for etcd pod to be ready
* misc
* update k0s etcd certs path
* fix unit tests
* address code reviews
* update from code review
* add etcdctl version
2024-08-13 08:42:26 +10:00
Gerard Nguyen
60263caf78
feat: [sc-108732] Can't add annotations in pods executed with the runPod collector ( #1590 )
...
add new field annotations for run pod collector
2024-08-08 10:13:36 +10:00
Gerard Nguyen
a57171a918
feat: [sc-108689] troubleshoot: journald collector ( #1586 )
...
* add schema for Journald Host Collector
* implement journald host collector
* update host collector
* add --no-pager
2024-07-29 09:44:43 +10:00
Evans Mungai
01d5804977
feat: cgroups host collector ( #1581 )
...
Linux control groups host collector that detects whether the specified mountPoint is a cgroup filesystem and what version it is. The collector also collects information of the configured cgroup controllers.
Signed-off-by: Evans Mungai <evans@replicated.com >
2024-07-24 16:46:04 +01:00
Evans Mungai
1444c01725
feat: json compare host analyser ( #1582 )
...
* feat: json compore host analyser
Signed-off-by: Evans Mungai <evans@replicated.com >
* Add missing json compare host analyser file
Signed-off-by: Evans Mungai <evans@replicated.com >
* Generate schemas
Signed-off-by: Evans Mungai <evans@replicated.com >
* Fix failing tests
Signed-off-by: Evans Mungai <evans@replicated.com >
* Ensure json compare analyser always has a title
Signed-off-by: Evans Mungai <evans@replicated.com >
---------
Signed-off-by: Evans Mungai <evans@replicated.com >
2024-07-24 14:27:20 +01:00
Evans Mungai
0020c1129e
feat: Allow checking kernel versions only in host os analyzer ( #1585 )
...
* Allow checking kernel versions only in host os analyzer
Signed-off-by: Evans Mungai <evans@replicated.com >
* Minor fix in logic
Signed-off-by: Evans Mungai <evans@replicated.com >
* Fix formatting
Signed-off-by: Evans Mungai <evans@replicated.com >
---------
Signed-off-by: Evans Mungai <evans@replicated.com >
2024-07-24 07:04:59 +01:00
Gerard Nguyen
04e656a0a5
fix: [sc-106256] Add missing uri field to troubleshoot.sh types ( #1578 )
...
* new no-uri flag for preflight
* implement load additional spec from URIs
2024-07-19 08:23:55 +10:00
Gerard Nguyen
4e999d6bfb
fix: [sc-106256] Add missing uri field to troubleshoot.sh types ( #1574 )
...
add uri field for top level type
2024-07-15 13:07:04 +10:00
Gerard Nguyen
8173759e52
feat: [sc-106927] Allow kernelConfig analyser to check kernel capability is either built in or loaded for EC host preflights ( #1572 )
...
* allow multiple value in kernel config check
* update unit test
2024-07-09 09:45:42 +10:00
Gerard Nguyen
f5f02f5a80
fix: [sc-107456] exec collector is running in all pods matched the selector ( #1571 )
...
only exec in 1 pod
2024-07-08 09:31:29 +10:00
Gerard Nguyen
e882f44ae9
Gerard/sc 106216/b registry image collector ( #1570 )
...
* update registry auth with username and password
* add unit test
2024-07-03 08:06:37 +10:00
Gerard Nguyen
edfa01c5c4
feat: [sc-106625] http analyzer for in-cluster ( #1566 )
...
* http analzyer for in-cluster
* make check-schemas
2024-06-19 12:14:37 +10:00
Evans Mungai
ce155270c8
fix: Use correct cron job kind when discovering API versions ( #1554 )
...
* fix: Use correct cron job kind when discovering API versions
* Fix failing e2e test
2024-05-31 07:23:56 +01:00
Gerard Nguyen
80e5fac07c
feat: New host collector and analyzer for Kernel Configs ( #1546 )
...
* new struct and update schemas
* implement Collect function
* add kernel config to collector struct
* generate kernel config analyzer schema
* implement kernel config analyzer
* fail on no match in pass outcome
* run make check-schemas
* fix failed unit test
* update from code review
* add selectedConfigs field
* run make check-schemas
2024-05-27 09:55:39 +10:00
Dexter Yan
51c07b42c3
feat(analyzer): let cluster resource case insensitive to fix name inconsistent ( #1547 )
...
* feat(analyzer): let cluster resource case insensitive
2024-05-22 11:37:39 +12:00
Evans Mungai
78bbea18ac
feat: Prefer embedded-cluster over k0s when detecting distro ( #1544 )
...
* feat: Prefer embedded-cluster over k0s when detecting distro
* Implement check for embedded cluster detection
2024-05-15 09:26:03 +01:00
Gerard Nguyen
6b368f2221
feat: [sc-103754] Be able to detect search domain misconfiguration #1391 ( #1534 )
...
* new collector dns
* implement DNS collector
* add dns service and endpoints check
* add nil check on retrieve endpoints
2024-05-01 07:04:20 +10:00
Dexter Yan
cb5db1733a
feat(analyzer): make sure ReplicaSetStatus has valid result ( #1538 )
...
* feat(analyzer): make sure ReplicaSetStatus has valid result
---------
Co-authored-by: Gerard Nguyen <gerard@replicated.com >
2024-05-01 09:02:45 +12:00
Dexter Yan
f3bad5f409
fix(collector): fix helm collector with a nil error return to error list ( #1535 )
2024-04-29 12:19:34 +12:00
Evans Mungai
a374b0a3ab
feat: Detect EC as a distribution ( #1529 )
2024-04-25 17:18:52 +01:00
Evans Mungai
6aaba59ebd
feat: Detect k0s distribution in analyser ( #1527 )
2024-04-25 15:29:37 +01:00
Andrew Lavery
f18b5d754e
update k8s imports to v0.30.0 and address changed function signature ( #1528 )
...
* update k8s imports to v0.30.0 and address changed function signature
* update schemas
2024-04-24 23:05:37 +09:00
Evans Mungai
db871e6889
feat: node metrics analyser ( #1520 )
...
* feat: node metrics analyser
The analyser only checks PVC usage at the moment. More analysers
can be added on a need to have basis
* Add tests
* Fix flaky test by waiting for goldpinger pods to start
* Fix how outcomes get checked
* Fix catch all outcome condition
* Fix test
* feat: node metrics analyser
The analyser only checks PVC usage at the moment. More analysers
can be added on a need to have basis
* Add tests
* Fix flaky test by waiting for goldpinger pods to start
* Fix how outcomes get checked
* Fix catch all outcome condition
* Fix test
* Regenerate schemas
* Fix failing test
---------
Co-authored-by: Dexter Yan <yanshaocong@gmail.com >
2024-04-09 12:14:10 +01:00
Ethan Mosbaugh
6f7acec7b3
feat: distribution analyzer support for kind ( #1521 )
2024-04-07 09:24:42 +12:00
Evans Mungai
123d17ab4a
feat: node metrics collector ( #1516 )
...
* feat: node metrics collector
A collector to collect node metrics served by the API server as
per the documented API https://kubernetes.io/docs/reference/instrumentation/node-metrics/
* Update CRD schemas
* Add tests
* Remove clean from build target
* Update comments
* Commit missing tests
* Remove unnecessary log in tests
2024-04-02 14:59:55 +01:00
Evans Mungai
c9830de736
chore: Update CLI prompt to run command as root ( #1517 )
2024-03-28 19:13:33 +00:00
Evans Mungai
ca5ff88964
chore: Update code generator and controller tools ( #1515 )
2024-03-28 11:52:15 +00:00
Evans Mungai
e6aff48f1b
feat: Prompt for privileged user if host collectors present in spec ( #1513 )
...
* feat: Prompt for privileged user if host collectors present
* Prompt preflight checks that have host collectors
* Show cursor before prompting
2024-03-28 11:51:19 +00:00
Gerard Nguyen
76c52d2b93
New JSON field in HTTP request collector if any ( #1511 )
...
* add new raw_json field to http collector
* add unit test
2024-03-28 17:08:51 +11:00
Gerard Nguyen
6f839b389d
Quick fix to prevent panic on nil collector result ( #1508 )
...
* quick fix to prevent panic on nil collector result
* do not save pod details on error
2024-03-18 16:42:52 +11:00
Evans Mungai
15446996f9
fix: Parse v1beta1 troubleshoot specs when using loader API ( #1501 )
2024-03-13 11:39:29 +00:00
Gerard Nguyen
742e92f1ee
New Event Analyzer ( #1474 )
...
* add new Event analyzer
2024-03-07 08:31:45 +13:00
Gerard Nguyen
553d709043
fix panic in Velero analyzer when there's no Velero deployment found ( #1497 )
...
* fix panic in Velero analyzer when there's no Velero deployment found
* do not omit error in find files
2024-03-05 21:58:37 +11:00
Salah Al Saleh
8132936e3e
Fix automated PRs manager workflow ( #1489 )
...
* Fix automated PRs manager workflow
2024-02-26 14:30:21 -08:00
Ethan Mosbaugh
e24ca642aa
feat: sonobuoy collector ( #1469 )
2024-02-16 06:56:15 -08:00
Gerard Nguyen
772d867093
update correct K8S API group for batch and policy ( #1461 )
2024-02-09 08:17:55 +13:00
Gerard Nguyen
5daf6d6c89
Feat: new collector run-daemonset ( #1460 )
...
* feat: new collector run-daemonset
2024-02-09 08:16:32 +13:00
Xav Paice
8b491b5702
Downgrade Velero to v1.10 ( #1462 )
...
In order to be compatible with KOTS, downgrade Velero to 1.10.
This removes some features from the Velero collector, but unblocks KOTS from being able
to import Troubleshoot.
We should be wary of updating Velero in the future to prevent this recurring.
sc-98475
2024-02-09 08:13:26 +13:00
Evans Mungai
e2adfa3774
fix: Correct selector used to find installer specs when redacting ( #1456 )
2024-02-07 10:36:15 +00:00
Evans Mungai
2def517d39
chore: additional ceph collector commands ( #1450 )
...
* Collect text representations of the ceph data which are easier to read
* Collect ceph df command output
2024-02-06 10:04:25 +13:00
Xav Paice
fe6b1c7448
Add workaround for EKS version string ( #1449 )
...
* Add workaround for EKS version string
The EKS version string returned is not semver compliant. To work around this, we remove
the suffix for version strings that contain -eks-.
Fixes #1441
* Add parsing version test cases
* Rename function
---------
Co-authored-by: Evans Mungai <evans@replicated.com >
2024-02-06 10:04:01 +13:00
Gerard Nguyen
39b371991e
feat: add timeout to run host collector ( #1435 )
...
* feat: add timeout to run host collector
* return error on invalid timeout
* return -1 on context deadline exceeded
2024-01-31 12:46:01 +00:00
Diamon Wiggins
1447e18c56
feat: Allow templating of outcome messages for the JSON/YAML compare analyzers ( #1432 )
...
* feat: allow templating of the outcome message for the JSON and YAML Compare analyzers
* Update pkg/analyze/json_compare.go
Co-authored-by: Evans Mungai <evans@replicated.com >
2024-01-26 10:56:57 -05:00
Akash Shrivastava
361e12e691
feat: [ISSUE-1401]: Added helm get values option in Helm collector ( #1402 )
...
* feat: [ISSUE-1401]: Added helm get values option in Helm collector
Signed-off-by: Akash Shrivastava <akash.shrivastava@harness.io >
* Made changes in error handling
Signed-off-by: Akash Shrivastava <akash.shrivastava@harness.io >
* feat: [ISSUE-1401]: Added test cases and fixes
Signed-off-by: Akash Shrivastava <akash.shrivastava@harness.io >
* fixed test case
Signed-off-by: Akash Shrivastava <akash.shrivastava@harness.io >
---------
Signed-off-by: Akash Shrivastava <akash.shrivastava@harness.io >
2024-01-16 19:12:43 +00:00
Xav Paice
e542f4fd0a
bump k8s.io packages to v0.29.0 ( #1419 )
...
* bump k8s.io packages to v0.29.0
* update Go to 1.21
* update schemas
2024-01-08 17:24:41 +00:00
Evans Mungai
e4363a1e50
fix (supportbundle): Add default collectors when expected ( #1418 )
...
* fix (supportbundle): Add default collectors when expected
* Remove unnecessary change
* Add default collectors to a empty spec
* Add more tests
2024-01-08 11:32:04 +00:00
Andrew Lavery
4c77bcb7cc
Update containers/image, oras-go, and docker ( #1411 )
...
* chore(deps): bump github.com/containers/image/v5 from 5.25.0 to 5.29.0
Bumps [github.com/containers/image/v5](https://github.com/containers/image ) from 5.25.0 to 5.29.0.
- [Release notes](https://github.com/containers/image/releases )
- [Commits](https://github.com/containers/image/compare/v5.25.0...v5.29.0 )
---
updated-dependencies:
- dependency-name: github.com/containers/image/v5
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* regenerate files
* bump oras-go
* changes from 'make test'
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-28 13:31:05 -05:00
Evans Mungai
a86b5c4441
chore(preflight): Better error message when not results found ( #1397 )
...
code(preflight): Better error message when not results found
2023-12-20 16:10:47 +13:00
Evans Mungai
3012b870bd
fix: flaky e2e test ( #1400 )
2023-12-20 16:07:30 +13:00
Evans Mungai
53113c0170
feat: goldpinger collector and analyser ( #1398 )
...
* feat: goldpinger analyser
Analyser to generate a report from goldpinger results
* Add goldpinger testdata
* Goldpinger collector
* Improvements after running tests
* More minor updates after further testing
* Better error message if a container fails to start
* A few more updates
* Add goldpinger e2e test
* Update schemas
* Clean up help installs in e2e tests
* Add resource limits to goldpinger pods
* Some minor improvements
* Some more changes noted when writing docs
* Update schemas
* A few more updates when testing with kURL
* Log goldpinger tests
* Tests before exit code
2023-12-12 11:02:41 +00:00