Noah Campbell
d0584a4d4d
Updated yaml spec ( #1851 )
...
* v1beta3 spec can be read by preflight
* added test files for ease of testing
* updated v1beta3 guide doc and added tests
* fixed not removing tmp files from v1beta3 processing
* created v1beta2 to v1beta3 converter
2025-09-16 15:43:46 -05:00
Ethan Mosbaugh
6e62251904
chore(deps): bump the security group with 16 updates ( #1835 )
...
* chore(deps): bump the security group with 16 updates
Bumps the security group with 16 updates:
| Package | From | To |
| --- | --- | --- |
| [github.com/shirou/gopsutil/v4](https://github.com/shirou/gopsutil ) | `4.25.7` | `4.25.8` |
| [github.com/spf13/cobra](https://github.com/spf13/cobra ) | `1.9.1` | `1.10.1` |
| [github.com/spf13/pflag](https://github.com/spf13/pflag ) | `1.0.7` | `1.0.9` |
| [github.com/stretchr/testify](https://github.com/stretchr/testify ) | `1.11.0` | `1.11.1` |
| [go.opentelemetry.io/otel](https://github.com/open-telemetry/opentelemetry-go ) | `1.37.0` | `1.38.0` |
| [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go ) | `1.37.0` | `1.38.0` |
| [k8s.io/api](https://github.com/kubernetes/api ) | `0.33.4` | `0.34.0` |
| [k8s.io/apiextensions-apiserver](https://github.com/kubernetes/apiextensions-apiserver ) | `0.33.4` | `0.34.0` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery ) | `0.33.4` | `0.34.0` |
| [k8s.io/apiserver](https://github.com/kubernetes/apiserver ) | `0.33.4` | `0.34.0` |
| [k8s.io/cli-runtime](https://github.com/kubernetes/cli-runtime ) | `0.33.4` | `0.34.0` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go ) | `0.33.4` | `0.34.0` |
| [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime ) | `0.21.0` | `0.22.0` |
| [k8s.io/kubelet](https://github.com/kubernetes/kubelet ) | `0.33.4` | `0.34.0` |
| [k8s.io/metrics](https://github.com/kubernetes/metrics ) | `0.33.4` | `0.34.0` |
| [k8s.io/utils](https://github.com/kubernetes/utils ) | `0.0.0-20241104100929-3ea5e8cea738` | `0.0.0-20250604170112-4c0f3b243397` |
Updates `github.com/shirou/gopsutil/v4` from 4.25.7 to 4.25.8
- [Release notes](https://github.com/shirou/gopsutil/releases )
- [Commits](https://github.com/shirou/gopsutil/compare/v4.25.7...v4.25.8 )
Updates `github.com/spf13/cobra` from 1.9.1 to 1.10.1
- [Release notes](https://github.com/spf13/cobra/releases )
- [Commits](https://github.com/spf13/cobra/compare/v1.9.1...v1.10.1 )
Updates `github.com/spf13/pflag` from 1.0.7 to 1.0.9
- [Release notes](https://github.com/spf13/pflag/releases )
- [Commits](https://github.com/spf13/pflag/compare/v1.0.7...v1.0.9 )
Updates `github.com/stretchr/testify` from 1.11.0 to 1.11.1
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.11.0...v1.11.1 )
Updates `go.opentelemetry.io/otel` from 1.37.0 to 1.38.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.37.0...v1.38.0 )
Updates `go.opentelemetry.io/otel/sdk` from 1.37.0 to 1.38.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.37.0...v1.38.0 )
Updates `k8s.io/api` from 0.33.4 to 0.34.0
- [Commits](https://github.com/kubernetes/api/compare/v0.33.4...v0.34.0 )
Updates `k8s.io/apiextensions-apiserver` from 0.33.4 to 0.34.0
- [Release notes](https://github.com/kubernetes/apiextensions-apiserver/releases )
- [Commits](https://github.com/kubernetes/apiextensions-apiserver/compare/v0.33.4...v0.34.0 )
Updates `k8s.io/apimachinery` from 0.33.4 to 0.34.0
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.33.4...v0.34.0 )
Updates `k8s.io/apiserver` from 0.33.4 to 0.34.0
- [Commits](https://github.com/kubernetes/apiserver/compare/v0.33.4...v0.34.0 )
Updates `k8s.io/cli-runtime` from 0.33.4 to 0.34.0
- [Commits](https://github.com/kubernetes/cli-runtime/compare/v0.33.4...v0.34.0 )
Updates `k8s.io/client-go` from 0.33.4 to 0.34.0
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kubernetes/client-go/compare/v0.33.4...v0.34.0 )
Updates `sigs.k8s.io/controller-runtime` from 0.21.0 to 0.22.0
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases )
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md )
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.21.0...v0.22.0 )
Updates `k8s.io/kubelet` from 0.33.4 to 0.34.0
- [Commits](https://github.com/kubernetes/kubelet/compare/v0.33.4...v0.34.0 )
Updates `k8s.io/metrics` from 0.33.4 to 0.34.0
- [Commits](https://github.com/kubernetes/metrics/compare/v0.33.4...v0.34.0 )
Updates `k8s.io/utils` from 0.0.0-20241104100929-3ea5e8cea738 to 0.0.0-20250604170112-4c0f3b243397
- [Commits](https://github.com/kubernetes/utils/commits )
---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v4
dependency-version: 4.25.8
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: github.com/spf13/cobra
dependency-version: 1.10.1
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: github.com/spf13/pflag
dependency-version: 1.0.9
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: github.com/stretchr/testify
dependency-version: 1.11.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
- dependency-name: go.opentelemetry.io/otel
dependency-version: 1.38.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: go.opentelemetry.io/otel/sdk
dependency-version: 1.38.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: k8s.io/api
dependency-version: 0.34.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: k8s.io/apiextensions-apiserver
dependency-version: 0.34.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: k8s.io/apimachinery
dependency-version: 0.34.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: k8s.io/apiserver
dependency-version: 0.34.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: k8s.io/cli-runtime
dependency-version: 0.34.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: k8s.io/client-go
dependency-version: 0.34.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: sigs.k8s.io/controller-runtime
dependency-version: 0.22.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: k8s.io/kubelet
dependency-version: 0.34.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: k8s.io/metrics
dependency-version: 0.34.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: security
- dependency-name: k8s.io/utils
dependency-version: 0.0.0-20250604170112-4c0f3b243397
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: security
...
Signed-off-by: dependabot[bot] <support@github.com >
* f
* f
* f
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-08 09:32:56 -07:00
Evans Mungai
0113624352
chore(support-bundle): respect using load-cluster-specs=false ( #1634 )
...
* fix: Allow using load-cluster-specs=false
Signed-off-by: Evans Mungai <evans@replicated.com >
* Some more simplification
Signed-off-by: Evans Mungai <evans@replicated.com >
* Ensure error in loading specs is printed in CLI
Signed-off-by: Evans Mungai <evans@replicated.com >
* Run linter
Signed-off-by: Evans Mungai <evans@replicated.com >
* Fix failing tests
Signed-off-by: Evans Mungai <evans@replicated.com >
* Remove unnecessary test case rename
Signed-off-by: Evans Mungai <evans@replicated.com >
* Fix error wrapping
Signed-off-by: Evans Mungai <evans@replicated.com >
* Check if load-cluster-specs was provided in cli
Signed-off-by: Evans Mungai <evans@replicated.com >
* Better wording in comments
Signed-off-by: Evans Mungai <evans@replicated.com >
---------
Signed-off-by: Evans Mungai <evans@replicated.com >
2024-10-11 13:48:32 -04:00
Diamon Wiggins
8105fa00e9
Refactor Remote Host Collection ( #1633 )
...
* refactor remote collectors
* add remotecollect params struct
* remove commented checkrbac function
* removed unused function
* add temp comments
* refactor to not require RemoteCollect method per collector
* removed unneeded param
* removed unneeded param
* more refactor
* more refactor
* remove unneeded function
* remove debug print
* fix analyzer results
* move rbac to separate file
* be more specific with rbac function name
* fix imports
* fix node list file
* make k8s rest client config consistent with in cluster collection
* add ctx and otel tracing
* add test for allCollectedData
* move runHostCollectorsInPod to spec instead of metadata
* make generate
* fix broken references to supportbundle metadata
* add e2e tests
* update loader tests
* fix tests
* fix hostos remote collector spec
* update remoteHostCollectrs.yaml
---------
Co-authored-by: Dexter Yan <yanshaocong@gmail.com >
2024-10-09 18:38:49 +13:00
Dexter Yan
e97b9613a5
feat(support-bundle): add runHostCollectorsInPod in spec ( #1608 )
2024-09-20 11:57:58 -05:00
Evans Mungai
15446996f9
fix: Parse v1beta1 troubleshoot specs when using loader API ( #1501 )
2024-03-13 11:39:29 +00:00
Evans Mungai
e5e26eea14
fix(support-bundle): default in-cluster collectors in host support bundle ( #1394 )
...
* fix(support-bundle): default in-cluster collectors in host support bundle
Ensure cluster-resources and cluster-info collectors are present only
when a support bundle spec contains in-cluster collectors.
* Various improvements
* Improve error messages
* Util function appending elements to a nil slice that allows adding
specs to an empty slice of collectors/analysers/redactors
* Fix failing test
2023-11-27 18:33:02 +00:00
Evans Mungai
15a4802cd2
feat: Add dry run flag to print support bundle specs to std out ( #1337 )
...
* Add dry-run flag
* No traces on dry run
* More refactoring
* More updates to support bundle binary
* More refactoring changes
* Different approach of loading specs from URIs
* Self review
* More changes after review and testing
* fix how we parse oci image uri
* Remove unnecessary comment
* Add missing file
* Fix failing tests
* Better error check for no collectors
* Add default collectors when parsing support bundle specs
* Add missed test fixture
* Download specs with correct headers
* Fix typo
2023-10-10 18:43:32 +01:00
Evans Mungai
b9f4fc4390
feat: Dry run flag to print preflight specs to std out ( #1240 )
2023-09-12 14:42:10 +01:00
Evans Mungai
ff03bfa9cd
chore: make spec loaders internal APIs ( #1313 )
...
* chore: make specs an internal package
* Some minor improvements
* Use LoadClusterSpecs in support bundle implementation
* Remove change accidentally committed
* Use LoadFromCLIArgs in preflight CLI implementation
* Update comment
* Fix edge case where the label selector is an empty string
* Fix failing test
2023-08-30 14:02:30 +01:00
Evans Mungai
f3777bef69
feat: Add Strict flag to LoadSpecs API ( #1279 )
...
* feat: Add Strict flag to LoadSpecs API
Strict flag which can be used to toggle between true
(raising errors if a document is invalid)
and false (ignoring invalid documents, perhaps logging a warning).
* Granular error handling multidocs in secrets and configmaps
* Fix failing test
2023-07-21 10:08:16 +01:00
Evans Mungai
401dfe2c57
feat: add loader APIs to load specs from raw troubleshoot spec ( #1202 )
...
* feat: add loader APIs to load specs from a list of yaml docs
The change introduces a loader package that will contain loader
public APIs. The aim of these APIs will be to, given any source of
troubleshoot specs, the loaders will fetch the specs and parse out
all troubleshoot objects that can be extracted.
* Some refactoring
* Some more changes
* More changes caught when testing vendor portal
* Add tests and rename Troubleshoot kinds struct
* Additional test
* Handle ConfigMap and Secrets with multiple specs in them
* Fix failing test
* Revert multidoc split implementation
* Fix merge conflict
* Change LoadFromXXX functions to a single LoadSpecs function
2023-06-06 16:48:29 -04:00