Evans Mungai
6eb9c7096f
feat: Add partition type info to block device collector ( #1063 )
2023-03-30 12:29:43 +01:00
Chase Hainey
e9fac00516
feat: Add mssql collector and analyser ( #990 )
...
* Adds MSSQL collector based on Postgres collector
* Adds tests for MSSQL based on the tests for Postgres
* Adds analyzer
* Adds MS SQL Server example
* Assures MS SQL tests pass
* Aligns naming and adds to API
* Corrects names that weren't updated
* Updates text on sample
* Corrects typo
* Makes troubleshoot aware of mssql
* Uses Hashicorp version library for SQL Server versions
* Resyncs generated file
* Cleaning up the workspace.
* Updates schemas per PR feedback
* Unit Tests.
* fix: address runtime error of nil pointer when concatenating preflight specs (#998 )
fix: address runtime error of nil pointer when concatenating preflight spec with hostpreflight spec in preflight run.go
* chore: chore: update binaries used to build manifests and k8s (#997 )
- client-gen version from v0.22.0 to v0.26.1
- controller-gen version from v0.7.0 to v0.11.2
- k8s pacth from 1.26.0 to 1.26.1
* Deduplication for In-Cluster Collectors (#972 )
* adding dedup for in cluster collectors
* add tests
* return collector as is whenever marshalling to json fails
---------
Co-authored-by: Evans Mungai <evans@replicated.com >
* refactor: keep support bundle concat logic to be consistent with Preflight concat (#1002 )
* refactor: keep support bundle concat logic to be consistent with Preflight
* test: add tests for support bundle spec concat function
* chore: Refactor in cluster analysers (#999 )
Have all in-cluster analysers implement the same interface. This
will help with the implementation of code that requires making
calls to all analysers
Fixes #995
* feat: Record summary of execution times of support bundle operations (collect/redact/analyse) (#935 )
When running a support bundle, we want to know how long each operation
(collect, redact, analyze) takes. This commit adds a new trace exporter
that records the start and end times of each operation, and then prints
a summary of the execution. The summary is also stored in the support
bundle.
Related to #923
* chore(deps): bump sigs.k8s.io/controller-runtime from 0.14.2 to 0.14.4 (#1006 )
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime ) from 0.14.2 to 0.14.4.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases )
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/master/RELEASE.md )
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.14.2...v0.14.4 )
---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump github.com/shirou/gopsutil/v3 from 3.22.12 to 3.23.1 (#1007 )
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil ) from 3.22.12 to 3.23.1.
- [Release notes](https://github.com/shirou/gopsutil/releases )
- [Commits](https://github.com/shirou/gopsutil/compare/v3.22.12...v3.23.1 )
---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore: Don't hardcode /bin/bash (#1011 )
Bash is not always installed in /bin/bash. Mitigate that by relying on
bash being in PATH.
* chore: Don't print which error in Makefile (#1012 )
The which binary is used to detect if client-gen is installed, and if
it's not, the Makefile will install it. The initial detection prints
an error if it's not found. This is misleading, as it is actually an
expected situation.
* chore: remove unused code (#1013 )
Remove code snippets that are not used across the codebase.
* remove PR label enforcement workflow (#1015 )
* chore(deps): bump go.opentelemetry.io/otel/sdk from 1.11.2 to 1.13.0 (#1020 )
Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go ) from 1.11.2 to 1.13.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.11.2...v1.13.0 )
---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump golang.org/x/text from 0.6.0 to 0.7.0 (#1017 )
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.6.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump github.com/jackc/pgx/v5 from 5.2.0 to 5.3.0 (#1018 )
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx ) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/jackc/pgx/releases )
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jackc/pgx/compare/v5.2.0...v5.3.0 )
---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump github.com/hashicorp/go-getter from 1.6.2 to 1.7.0 (#1019 )
Bumps [github.com/hashicorp/go-getter](https://github.com/hashicorp/go-getter ) from 1.6.2 to 1.7.0.
- [Release notes](https://github.com/hashicorp/go-getter/releases )
- [Changelog](https://github.com/hashicorp/go-getter/blob/main/.goreleaser.yml )
- [Commits](https://github.com/hashicorp/go-getter/compare/v1.6.2...v1.7.0 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-getter
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat(support-bundle): print progress in debug non-interactive mode (#1010 )
Currently, there's no debug logs whatsoever when running a command like
troubleshoot --debug --interactive=false
Tackle this by printing similar log statements as presented in
interactive mode to the debug logger. Refactor the code a bit so there's
no need for a dedicated finished channel and to exit the goroutines
properly.
Co-authored-by: Evans Mungai <evans@replicated.com >
* chore(deps): bump github.com/containerd/containerd from 1.6.12 to 1.6.18 (#1021 )
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd ) from 1.6.12 to 1.6.18.
- [Release notes](https://github.com/containerd/containerd/releases )
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md )
- [Commits](https://github.com/containerd/containerd/compare/v1.6.12...v1.6.18 )
---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump golang.org/x/net from 0.6.0 to 0.7.0 (#1025 )
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.6.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump github.com/containers/image/v5 from 5.24.0 to 5.24.1 (#1026 )
Bumps [github.com/containers/image/v5](https://github.com/containers/image ) from 5.24.0 to 5.24.1.
- [Release notes](https://github.com/containers/image/releases )
- [Commits](https://github.com/containers/image/compare/v5.24.0...v5.24.1 )
---
updated-dependencies:
- dependency-name: github.com/containers/image/v5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update README to add link for the docs (#1022 )
Co-authored-by: Evans Mungai <evans@replicated.com >
* feat: use klog as the default logging library (#1008 )
* chore(deps): bump github.com/shirou/gopsutil/v3 from 3.23.1 to 3.23.2 (#1043 )
Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil ) from 3.23.1 to 3.23.2.
- [Release notes](https://github.com/shirou/gopsutil/releases )
- [Commits](https://github.com/shirou/gopsutil/compare/v3.23.1...v3.23.2 )
---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump go.opentelemetry.io/otel from 1.13.0 to 1.14.0 (#1040 )
Bumps [go.opentelemetry.io/otel](https://github.com/open-telemetry/opentelemetry-go ) from 1.13.0 to 1.14.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.13.0...v1.14.0 )
---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump github.com/containers/image/v5 from 5.24.1 to 5.24.2 (#1038 )
Bumps [github.com/containers/image/v5](https://github.com/containers/image ) from 5.24.1 to 5.24.2.
- [Release notes](https://github.com/containers/image/releases )
- [Commits](https://github.com/containers/image/compare/v5.24.1...v5.24.2 )
---
updated-dependencies:
- dependency-name: github.com/containers/image/v5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: support for rhel 9 variants (rhel, centos, ol, rocky) (#1045 )
* fix: Use namespace from the collector spec for Ceph (#1042 )
use namespace from the collector spec for ceph
* chore(deps): bump go.opentelemetry.io/otel/sdk from 1.13.0 to 1.14.0 (#1039 )
Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go ) from 1.13.0 to 1.14.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.13.0...v1.14.0 )
---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Collector/Analyzer - Subnet Available (#1004 )
* Adding a new Subnet Available Collector and Analyzer, used to check if a subnet is available for use on a K8s node.
* chore(deps): bump k8s.io/apimachinery from 0.26.1 to 0.26.2 (#1050 )
Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery ) from 0.26.1 to 0.26.2.
- [Release notes](https://github.com/kubernetes/apimachinery/releases )
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.26.1...v0.26.2 )
---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump sigs.k8s.io/controller-runtime from 0.14.4 to 0.14.5 (#1048 )
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime ) from 0.14.4 to 0.14.5.
- [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.14.4...v0.14.5 )
---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* dont run tests on draft PRs (#966 )
Co-authored-by: Xav Paice <xavpaice@users.noreply.github.com >
* chore(deps): bump k8s.io/klog/v2 from 2.90.0 to 2.90.1 (#1052 )
Bumps [k8s.io/klog/v2](https://github.com/kubernetes/klog ) from 2.90.0 to 2.90.1.
- [Release notes](https://github.com/kubernetes/klog/releases )
- [Changelog](https://github.com/kubernetes/klog/blob/main/RELEASE.md )
- [Commits](https://github.com/kubernetes/klog/compare/v2.90.0...v2.90.1 )
---
updated-dependencies:
- dependency-name: k8s.io/klog/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump k8s.io/cli-runtime from 0.26.1 to 0.26.2 (#1049 )
Bumps [k8s.io/cli-runtime](https://github.com/kubernetes/cli-runtime ) from 0.26.1 to 0.26.2.
- [Release notes](https://github.com/kubernetes/cli-runtime/releases )
- [Commits](https://github.com/kubernetes/cli-runtime/compare/v0.26.1...v0.26.2 )
---
updated-dependencies:
- dependency-name: k8s.io/cli-runtime
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump k8s.io/apiextensions-apiserver from 0.26.1 to 0.26.2 (#1051 )
* chore(deps): bump k8s.io/apiextensions-apiserver from 0.26.1 to 0.26.2
Bumps [k8s.io/apiextensions-apiserver](https://github.com/kubernetes/apiextensions-apiserver ) from 0.26.1 to 0.26.2.
- [Release notes](https://github.com/kubernetes/apiextensions-apiserver/releases )
- [Commits](https://github.com/kubernetes/apiextensions-apiserver/compare/v0.26.1...v0.26.2 )
---
updated-dependencies:
- dependency-name: k8s.io/apiextensions-apiserver
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* chore(deps): bump k8s.io/klog/v2 from 2.90.0 to 2.90.1 (#1052 )
Bumps [k8s.io/klog/v2](https://github.com/kubernetes/klog ) from 2.90.0 to 2.90.1.
- [Release notes](https://github.com/kubernetes/klog/releases )
- [Changelog](https://github.com/kubernetes/klog/blob/main/RELEASE.md )
- [Commits](https://github.com/kubernetes/klog/compare/v2.90.0...v2.90.1 )
---
updated-dependencies:
- dependency-name: k8s.io/klog/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump k8s.io/cli-runtime from 0.26.1 to 0.26.2 (#1049 )
Bumps [k8s.io/cli-runtime](https://github.com/kubernetes/cli-runtime ) from 0.26.1 to 0.26.2.
- [Release notes](https://github.com/kubernetes/cli-runtime/releases )
- [Commits](https://github.com/kubernetes/cli-runtime/compare/v0.26.1...v0.26.2 )
---
updated-dependencies:
- dependency-name: k8s.io/cli-runtime
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump k8s.io/apiextensions-apiserver from 0.26.1 to 0.26.2
Bumps [k8s.io/apiextensions-apiserver](https://github.com/kubernetes/apiextensions-apiserver ) from 0.26.1 to 0.26.2.
- [Release notes](https://github.com/kubernetes/apiextensions-apiserver/releases )
- [Commits](https://github.com/kubernetes/apiextensions-apiserver/compare/v0.26.1...v0.26.2 )
---
updated-dependencies:
- dependency-name: k8s.io/apiextensions-apiserver
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update go.sum
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Evans Mungai <evans@replicated.com >
* Adds MSSQL collector based on Postgres collector
* Missed a merge conflict.
* More merge conflicts fixed.
* Ran go mod tidy.
* Fixed the function name return.
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: Chuck D'Antonio <chuck@crdant.io >
Co-authored-by: yunju.lly <yunju.lly@infracreate.com >
Co-authored-by: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com >
Co-authored-by: Diamon Wiggins <38189728+diamonwiggins@users.noreply.github.com >
Co-authored-by: Evans Mungai <evans@replicated.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Wieczorek <twz123@users.noreply.github.com >
Co-authored-by: Nick Meyer <nickm@replicated.com >
Co-authored-by: Ethan Mosbaugh <ethan@replicated.com >
Co-authored-by: Nathan Sullivan <nathans@replicated.com >
Co-authored-by: ada mancini <adamancini@users.noreply.github.com >
Co-authored-by: Xav Paice <xavpaice@users.noreply.github.com >
2023-03-27 16:06:27 +01:00
Evans Mungai
d17e5d9a6d
fix: Fix longhorn collector linting error ( #1065 )
2023-03-23 14:55:36 +00:00
Nathan Sullivan
f3db02a200
Collector/Analyzer - Subnet Available ( #1004 )
...
* Adding a new Subnet Available Collector and Analyzer, used to check if a subnet is available for use on a K8s node.
2023-03-10 12:52:21 +10:00
Diamon Wiggins
617ddf11d9
fix: Use namespace from the collector spec for Ceph ( #1042 )
...
use namespace from the collector spec for ceph
2023-03-08 11:33:27 -04:00
Ethan Mosbaugh
3419a9b888
feat: support for rhel 9 variants (rhel, centos, ol, rocky) ( #1045 )
2023-03-08 06:29:16 -08:00
Evans Mungai
546ffde14b
feat: use klog as the default logging library ( #1008 )
2023-02-24 18:24:51 +00:00
Tom Wieczorek
e85e91e784
chore: remove unused code ( #1013 )
...
Remove code snippets that are not used across the codebase.
2023-02-10 17:27:50 +00:00
Evans Mungai
100f9a13b6
feat: Record summary of execution times of support bundle operations (collect/redact/analyse) ( #935 )
...
When running a support bundle, we want to know how long each operation
(collect, redact, analyze) takes. This commit adds a new trace exporter
that records the start and end times of each operation, and then prints
a summary of the execution. The summary is also stored in the support
bundle.
Related to #923
2023-02-07 09:50:21 +00:00
Diamon Wiggins
4fca6aff98
Deduplication for In-Cluster Collectors ( #972 )
...
* adding dedup for in cluster collectors
* add tests
* return collector as is whenever marshalling to json fails
---------
Co-authored-by: Evans Mungai <evans@replicated.com >
2023-02-01 14:14:43 -05:00
Diamon Wiggins
2fcdc77cd3
Standardize Cluster Resources Collector File Paths ( #971 )
...
* using const for cluster resources k8s objects to standardize directories and files
2023-01-25 13:34:15 -05:00
Ethan Mosbaugh
ad1a56251f
feat(hostpreflights): udp port status ( #981 )
...
* feat(hostpreflights): udp port status
* fix(hostpreflights): tcpPortStatus -> udpPortStatus
2023-01-24 16:38:54 -05:00
Evans Mungai
c8d9864235
Upgrade dependencies ( #959 )
...
* Upgrade docker distribution module
* Upgrade github.com/blang/semver dependency
* Upgrade github.com/godbus/dbus dependency
2023-01-13 10:32:39 +00:00
Dexter Yan
962e2c7d7e
feat(support-bundle): optimize the error log of ceph and longhorn when kURL add-on were not enabled ( #943 )
2023-01-10 09:37:42 +13:00
Evans Mungai
70af0ff3d0
fix: Collect logs from all pods specified in logs collector spec ( #952 )
...
Fixes : #945
2023-01-09 12:04:01 -04:00
Edgar Lanting
199efca2ea
Added note in to clarify purpose of MaxBytes in cluster_resources.go ( #946 )
2023-01-09 10:00:12 +13:00
Edgar Lanting
a442ac8fc4
BREAKING: (Feature) maximum pod log size limit
...
introduces a new option to limit the size of a pod log when added to the bundle. This will make sure the support bundle will not grow to an unacceptable size and thus might contain information that is too old.
The maximum size of a pod log in a bundle is set by default to 5MB, and can be changed if we decide upon the need.
BREAKING CHANGE: any logs that are collected by the logs collector are now limited by default to 5MB unless a different size limit is specified. Folks expecting log files larger than that to be collected without truncation will need to adjust their support bundle specs.
Fixes : #878
2023-01-05 16:23:43 +13:00
Evans Mungai
a523551da9
feat(redactors): Run redactors on an existing support bundle ( #887 )
...
* feat(redactors): Run redactors on an existing support bundle
Add redact subcommand to support-bundle to allow running redactors on an
existing bundle to creating a new redacted bundle.
The command will be launched like so
support-bundle redact <redactor urls> --bundle support-bundle.tar.gz
Fixes : #705
2023-01-03 18:05:15 +00:00
Xav Paice
df43c9fc21
If no pods are selected for log collector, do not wait for timeout ( #932 )
...
Fixes : #931
2022-12-29 11:17:54 +13:00
Evans Mungai
ebeed77287
chore: Upgrade gopsutil to v3 ( #927 )
...
* Add host collector tests related to gopsutil upgrade
* Upgrade gopsutil to v3
2022-12-24 13:42:13 +13:00
David Rohnow
421cccf919
Add timeout context log collector ( #914 )
2022-12-22 10:23:37 +13:00
Evans Mungai
cd1511a8fb
fix(collectors): store unhealthy pod logs correctly ( #909 )
...
The symlinking logs feature led to a regression where symlinks of
unhealthy pods were overwritting logs in the support bundle. This
fix allows the cluster resources collector to instruct the logs
collector not to symlink logs, which in turn ensures logs are not
overwritten.
Fixes : #908
2022-12-14 14:47:20 -04: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
8c31e61367
fix(collectors): Fix logs collection in longhorn collector ( #886 )
...
* fix(collectors): Fix logs collection in longhorn collector
* Small typo
* Run go fmt on added changes
2022-12-02 12:51:07 -05:00
Evans Mungai
2a61a8686a
feat(collectors): Add TLS parameters to the postgres collector ( #875 )
...
For a postgres collector spec targeting a server configured to accept
(m)TLS connections we need to pass in the necessary parameters in order
to successfully connect to the server. Both preflight and support bundle
specs use this collector.
This change allows us to pass in the necessary TLS parameters via inlined
TLS configuration or via a secret reference.
Fixes #747
2022-11-30 15:52:08 +13:00
Evans Mungai
bfb77ad601
feat(collectors): Add TLS parameters to the redis collector ( #870 )
...
feat(collectors): Add mTLS parameters to the redis collector
For a redis collector spec targeting a redis server configured to accept
(m)TLS connections we need to pass in the necessary TLS parameters in order
to successfully connect to the server. Both preflight and support bundle
specs use this collector.
This change allows us to pass in the necessary TLS parameters via inlined
TLS configuration or via a secret reference.
Fixes #746
2022-11-29 17:47:52 +00:00
Chuck D'Antonio
c4c66633e5
Includes virtual memory parameters in Sysctl ( #874 )
...
TL;DR
-----
Updates Sysctl collector and analyzer for virtual memory parameters
Details
-------
Adds supoort for virtual memory parameters to the Sysctl collector and
analyzers. I uncovered this writing a pre-flight for a Helm chart that
includes ECK as a subchart. Since ECK requires a specific minimum value
for `vm.max_map_count` I wanted to use the Sysctl analyzer to check for
the expected value, but wasn't able to because of the limited values it
collected. I also learned that Sonarqube expects the same parameter to
be increased, so it seemed like a general enough requirement to add it
in.
The code updates the collector to collect values under `/proc/sys/vm`
and adds tests to the analyzer to based on the ECK requirements. Making
the tests pass required adding operators to the when expression, since
the existing code only allowed for `=`, `==`, and `===`. The when
expression now supports `>`, `<`, `>=`, and `<=`.
All tests pass.
2022-11-29 12:32:59 -05: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
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
Edgar Lanting
34817b67d0
Update cluster_resources.go ( #804 )
...
Due to deprecation of the API at `policy/v1beta1` for `PodDisruptionBudgets` and `batch/v1beta1` for `CronJobs`, updated cluster_resources.go to accommodate using either apiVersion v1 & v1beta1
2022-10-28 14:56:57 +13:00
Diamon Wiggins
e2ac7bf715
fix ceph title ( #799 )
2022-10-24 12:35:35 -05:00
Ahmed Mousa
764f0ac8b6
'added collection of roles, cluster roles and their respective bindings' ( #779 )
...
Co-authored-by: Edgar Lanting <edgarlanting@users.noreply.github.com >
2022-10-17 11:02:07 -05: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
Diamon Wiggins
48beb303be
export context field from collector structs ( #771 )
2022-10-11 14:54:54 -04:00
danj-replicated
e80235f0a8
Collect resourcequotas ( #729 )
...
Signed-off-by: Dan Jones <danj@replicated.com >
Signed-off-by: Dan Jones <danj@replicated.com >
2022-10-05 12:58:54 +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
Xav Paice
92382e600f
run make fmt across repo
2022-09-08 15:10:53 +12:00
Edgar Lanting
f6bffb6982
Merge pull request #594 from replicatedhq/divolgin/sc-50371/support-bundle-takes-a-long-time-to-collect
...
Check if user has access to namespace resources before collecting
2022-08-29 11:57:56 +02:00
xavpaice
a463403bde
Merge pull request #649 from replicatedhq/danj-collect-networkpolicies
...
Collect networkPolicies
2022-08-11 14:58:51 +12:00
divolgin
75bc9d576c
Check if user has access to namespace resources before collecting
2022-08-10 19:40:18 -07:00
Chris Sanders
330263aae8
Merge pull request #645 from replicatedhq/el-cluster_resources_typo-20220805
...
Update cluster_resources.go - typo
2022-08-09 11:36:14 -05:00
Dmitriy Ivolgin
052a8656ba
Merge pull request #643 from YoyoTT/yue-fix-log
...
Fix the saving log process
2022-08-09 07:36:01 -07:00
Dan Jones
ed0d252f39
Rename output directory to be consistent with others
...
Signed-off-by: Dan Jones <danj@replicated.com >
2022-08-09 14:38:32 +01:00
Edgar Lanting
56126fb602
Update cluster_resources.go - Add more readability
...
Made some small changes to improve readability by using `PodDisruptionBudgets` instead of `pdb`.
2022-08-09 12:35:04 +02:00
Dan Jones
f58080b604
Collect networkPolicies
...
Signed-off-by: Dan Jones <danj@replicated.com >
2022-08-09 11:20:38 +01:00
Edgar Lanting
67cc83fa9a
Update cluster_resources.go - Shortcut 44743
...
When troubleshooting an issue we want to see and check the `PodDisruptionBudget` for any application. As we currently do not have that 'standard' output in our support bundle, this PR serves as an implementation of providing one with an overview of `PodDisruptionBudget` on a per-namespace basis.
After creating a support bundle, the output can be reviewed by checking out `../cluster-resources/pdb/*.json`
2022-08-05 15:39:47 +02:00
Edgar Lanting
a91ef9edfe
Update cluster_resources.go - typo
...
Fix a typo: `exprted` -> `exported`
2022-08-05 13:53:50 +02:00
Yue Tan
007609565a
Fix saving logs
2022-08-02 16:29:35 -07:00
xavpaice
6fe887df62
Merge pull request #638 from replicatedhq/xav/go_modules/periph.io/x/periph-3.7.2
...
Bump periph.io/x/periph from 3.6.8+incompatible to 3.7.2
2022-07-27 07:28:08 +12:00
dependabot[bot]
057be29943
Bump periph.io/x/periph from 3.6.8+incompatible to 3.7.2
...
- [Release notes](https://github.com/google/periph/releases )
updated-dependencies:
- dependency-name: periph.io/x/periph
dependency-type: direct:production
update-type: version-update:semver-minor
Module periph.io/x/periph has moved from 3.6.8 to re-arrange locations
in 3.7.2. This reworks to take advantage of the new format.
2022-07-26 18:33:22 +12:00