divolgin
e18d273205
Fix build
2021-12-17 23:00:21 +00:00
dependabot[bot]
3d97d8e5a6
Bump k8s.io/apimachinery from 0.22.4 to 0.23.0
...
Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery ) from 0.22.4 to 0.23.0.
- [Release notes](https://github.com/kubernetes/apimachinery/releases )
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.22.4...v0.23.0 )
---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-17 23:00:21 +00:00
Salah Aldeen Al Saleh
d1f341b8ed
host system packages collector/analyzer ( #506 )
...
* host system packages collector/analyzer
2021-12-10 12:05:21 -08:00
dependabot[bot]
bed930fa7c
Bump sigs.k8s.io/controller-runtime from 0.7.0 to 0.10.3
...
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime ) from 0.7.0 to 0.10.3.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases )
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.7.0...v0.10.3 )
---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-01 18:43:11 +00:00
Ethan Mosbaugh
08b746d021
Merge pull request #503 from replicatedhq/dependabot/go_modules/k8s.io/apiextensions-apiserver-0.22.4
...
Bump k8s.io/apiextensions-apiserver from 0.22.2 to 0.22.4
2021-12-01 10:26:50 -08:00
Ethan Mosbaugh
f9b55e2bff
Merge pull request #504 from replicatedhq/dependabot/go_modules/github.com/shirou/gopsutil-3.21.11incompatible
...
Bump github.com/shirou/gopsutil from 3.21.10+incompatible to 3.21.11+incompatible
2021-12-01 10:26:37 -08:00
dependabot[bot]
40eea877ad
Bump github.com/google/gofuzz from 1.1.0 to 1.2.0
...
Bumps [github.com/google/gofuzz](https://github.com/google/gofuzz ) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/google/gofuzz/releases )
- [Commits](https://github.com/google/gofuzz/compare/v1.1.0...v1.2.0 )
---
updated-dependencies:
- dependency-name: github.com/google/gofuzz
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-01 17:58:15 +00:00
dependabot[bot]
9e2dac4d55
Bump github.com/shirou/gopsutil
...
Bumps [github.com/shirou/gopsutil](https://github.com/shirou/gopsutil ) from 3.21.10+incompatible to 3.21.11+incompatible.
- [Release notes](https://github.com/shirou/gopsutil/releases )
- [Commits](https://github.com/shirou/gopsutil/compare/v3.21.10...v3.21.11 )
---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-01 17:58:10 +00:00
dependabot[bot]
5c4825f4d4
Bump k8s.io/apiextensions-apiserver from 0.22.2 to 0.22.4
...
Bumps [k8s.io/apiextensions-apiserver](https://github.com/kubernetes/apiextensions-apiserver ) from 0.22.2 to 0.22.4.
- [Release notes](https://github.com/kubernetes/apiextensions-apiserver/releases )
- [Commits](https://github.com/kubernetes/apiextensions-apiserver/compare/v0.22.2...v0.22.4 )
---
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 >
2021-12-01 17:58:01 +00:00
dependabot[bot]
7582e58220
Bump github.com/go-redis/redis/v7 from 7.2.0 to 7.4.1
...
Bumps [github.com/go-redis/redis/v7](https://github.com/go-redis/redis ) from 7.2.0 to 7.4.1.
- [Release notes](https://github.com/go-redis/redis/releases )
- [Changelog](https://github.com/go-redis/redis/blob/master/CHANGELOG.md )
- [Commits](https://github.com/go-redis/redis/compare/v7.2.0...v7.4.1 )
---
updated-dependencies:
- dependency-name: github.com/go-redis/redis/v7
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-01 15:23:26 +00:00
Ethan Mosbaugh
c18453711e
Merge pull request #497 from replicatedhq/dependabot/go_modules/k8s.io/cli-runtime-0.22.4
...
Bump k8s.io/cli-runtime from 0.21.5 to 0.22.4
2021-12-01 06:49:20 -08:00
Ethan Mosbaugh
9603ccdc56
Merge pull request #499 from replicatedhq/dependabot/go_modules/github.com/spf13/viper-1.9.0
...
Bump github.com/spf13/viper from 1.8.1 to 1.9.0
2021-12-01 06:49:01 -08:00
Ethan Mosbaugh
891ee93cb1
Merge pull request #500 from replicatedhq/dependabot/go_modules/github.com/lib/pq-1.10.4
...
Bump github.com/lib/pq from 1.3.0 to 1.10.4
2021-12-01 06:48:47 -08:00
dependabot[bot]
9b9824bef5
Bump github.com/go-sql-driver/mysql from 1.5.0 to 1.6.0
...
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql ) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/go-sql-driver/mysql/releases )
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md )
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.5.0...v1.6.0 )
---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-01 01:01:27 +00:00
dependabot[bot]
60ef14a751
Bump github.com/lib/pq from 1.3.0 to 1.10.4
...
Bumps [github.com/lib/pq](https://github.com/lib/pq ) from 1.3.0 to 1.10.4.
- [Release notes](https://github.com/lib/pq/releases )
- [Commits](https://github.com/lib/pq/compare/v1.3.0...v1.10.4 )
---
updated-dependencies:
- dependency-name: github.com/lib/pq
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-01 01:01:14 +00:00
dependabot[bot]
3980a7b903
Bump github.com/spf13/viper from 1.8.1 to 1.9.0
...
Bumps [github.com/spf13/viper](https://github.com/spf13/viper ) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/spf13/viper/releases )
- [Commits](https://github.com/spf13/viper/compare/v1.8.1...v1.9.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/viper
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-01 01:00:57 +00:00
dependabot[bot]
655fa9b4a0
Bump k8s.io/cli-runtime from 0.21.5 to 0.22.4
...
Bumps [k8s.io/cli-runtime](https://github.com/kubernetes/cli-runtime ) from 0.21.5 to 0.22.4.
- [Release notes](https://github.com/kubernetes/cli-runtime/releases )
- [Commits](https://github.com/kubernetes/cli-runtime/compare/v0.21.5...v0.22.4 )
---
updated-dependencies:
- dependency-name: k8s.io/cli-runtime
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-01 00:59:45 +00:00
Ethan Mosbaugh
177f2da16d
Update github.com/containers/image/v5
2021-11-30 23:37:25 +00:00
Ethan Mosbaugh
d774ad1f5a
Merge pull request #493 from replicatedhq/dependabot/go_modules/k8s.io/apiserver-0.22.4
...
Bump k8s.io/apiserver from 0.22.2 to 0.22.4
2021-11-30 15:10:50 -08:00
Ethan Mosbaugh
9c5ae1f64e
Merge pull request #494 from replicatedhq/dependabot/go_modules/github.com/segmentio/ksuid-1.0.4
...
Bump github.com/segmentio/ksuid from 1.0.3 to 1.0.4
2021-11-30 15:10:24 -08:00
dependabot[bot]
60ec620ba9
Bump github.com/fatih/color from 1.12.0 to 1.13.0
...
Bumps [github.com/fatih/color](https://github.com/fatih/color ) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/fatih/color/releases )
- [Commits](https://github.com/fatih/color/compare/v1.12.0...v1.13.0 )
---
updated-dependencies:
- dependency-name: github.com/fatih/color
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-30 22:10:22 +00:00
dependabot[bot]
0c422aefbd
Bump github.com/segmentio/ksuid from 1.0.3 to 1.0.4
...
Bumps [github.com/segmentio/ksuid](https://github.com/segmentio/ksuid ) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/segmentio/ksuid/releases )
- [Commits](https://github.com/segmentio/ksuid/compare/v1.0.3...v1.0.4 )
---
updated-dependencies:
- dependency-name: github.com/segmentio/ksuid
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-30 22:10:13 +00:00
dependabot[bot]
c2ac654e08
Bump k8s.io/apiserver from 0.22.2 to 0.22.4
...
Bumps [k8s.io/apiserver](https://github.com/kubernetes/apiserver ) from 0.22.2 to 0.22.4.
- [Release notes](https://github.com/kubernetes/apiserver/releases )
- [Commits](https://github.com/kubernetes/apiserver/compare/v0.22.2...v0.22.4 )
---
updated-dependencies:
- dependency-name: k8s.io/apiserver
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-30 22:10:05 +00:00
Ethan Mosbaugh
59d50e7679
Fix go mod
2021-11-30 21:26:24 +00:00
Marc Campbell
75a56d09b2
Windows/Arm64
2021-11-12 19:38:24 +00:00
Marc Campbell
4a72e7d2a5
Bump go version
2021-11-12 19:03:35 +00:00
Marc Campbell
2c53fb4da6
Bump go-ole
2021-11-12 18:02:08 +00:00
Marc Campbell
913963a809
Bump go-ole dep
2021-11-12 18:00:11 +00: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
Andrew Reed
7b36e6a1f8
Copy in longhorn client ( #454 )
2021-10-22 15:24:07 -05:00
Rishabh Bohra
cf03503216
feat: Collect custom resources ( #447 )
...
* feat: Collect custom resources
Co-authored-by: Martin Hrabovcin<mhrabovcin@users.noreply.github.com >
Co-authored-by: Andrew Reed <andrew@replicated.com >
2021-10-21 16:49:59 -05:00
Jalaja Ganapathy
372454651e
collector/analyzer for host operating system ( #443 )
...
* collector/analyzer for host operating system
* address cr comments
* cleanup
* fix invoking the analyzer
code cleanup
* fix cr comments
* add corner case unit-test
* fix kernel version parsing
* address review comments
* add default case
* parse using regex
* added more testcases and fixed the bug found in cr
* few small things
2021-10-12 14:42:23 -07:00
Simon Croome
977fc438ea
Remote host collectors ( #392 )
...
* Add collect command and remote host collectors
Adds the ability to run a host collector on a set of remote k8s nodes.
Target nodes can be filtered using the --selector flag, with the same
syntax as kubectl. Existing flags for --collector-image,
--collector-pullpolicy and --request-timeout are used. To run on a
specified node, --selector="kubernetes.io/hostname=kind-worker2" could
be used.
The collect command is used by the remote collector to output the
results using a "raw" format, which uses the filename as the key, and
the value the output as a escaped json string. When run manually it
defaults to fully decoded json. The existing block devices,
ipv4interfaces and services host collectors don't decode properly - the
fix is to convert their slice output to a map (fix not included as
unsure what depends on the existing format).
The collect command is also useful for troubleshooting preflight issues.
Examples are included to show remote collector usage.
```
bin/collect --collector-image=croomes/troubleshoot:latest examples/collect/remote/memory.yaml --namespace test
{
"kind-control-plane": {
"system/memory.json": {
"total": 1304207360
}
},
"kind-worker": {
"system/memory.json": {
"total": 1695780864
}
},
"kind-worker2": {
"system/memory.json": {
"total": 1726353408
}
}
}
```
The preflight command has been updated to run remote collectors. To run
a host collector remotely it must be specified in the spec as a
`remoteCollector`:
```
apiVersion: troubleshoot.sh/v1beta2
kind: HostPreflight
metadata:
name: memory
spec:
remoteCollectors:
- memory:
collectorName: memory
analyzers:
- memory:
outcomes:
- fail:
when: "< 8Gi"
message: At least 8Gi of memory is required
- warn:
when: "< 32Gi"
message: At least 32Gi of memory is recommended
- pass:
message: The system has as sufficient memory
```
Results for each node are analyzed separately, with the node name
appended to the title:
```
bin/preflight --interactive=false --collector-image=croomes/troubleshoot:latest examples/preflight/remote/memory.yaml --format=json
{memory running 0 1}
{memory completed 1 1}
{
"fail": [
{
"title": "Amount of Memory (kind-worker2)",
"message": "At least 8Gi of memory is required"
},
{
"title": "Amount of Memory (kind-worker)",
"message": "At least 8Gi of memory is required"
},
{
"title": "Amount of Memory (kind-control-plane)",
"message": "At least 8Gi of memory is required"
}
]
}
```
Also added a host collector to allow preflight checks of required kernel
modules, which is the main driver for this change.
2021-10-06 09:03:53 -05:00
Jalaja Ganapathy
a0b3b3f7dc
add an unique id to each host preflights ( #431 )
...
* add an unique id to each host preflights
* auto generated files
* updated schemas for the new field id
* keeping it consistent with the rest of the spec
2021-09-24 13:29:14 -07:00
Salah Aldeen Al Saleh
1bdd3db8c5
update schemas ( #428 )
...
* update schemas
* update controller-gen
2021-09-23 11:03:19 -07:00
John Murphy
e0f6cab5b3
Fix removes control characters from non interactive preflight runs ( #394 )
2021-07-23 09:46:36 -05:00
Andrew Reed
776934af2b
Use updated longhorn-manager fork
2021-06-22 20:20:41 +00:00
Andrew Reed
646f7a6991
Longhorn collector for all CRDs
...
Also implement a single analyzer as a proof of concept. More analyzers
can be added using the collected CRDs.
2021-05-26 23:37:15 +00:00
divolgin
7a0c6e5383
use containers package instead of go-containerregistry
2021-04-11 21:39:44 +00:00
divolgin
fe414af556
Docker registry collector/analyzer
2021-04-09 16:17:15 +00:00
Andrew Reed
9984fe2caa
Get time info from timedated
2021-02-10 20:01:15 +00:00
Andrew Reed
86bc366ec3
Fix build for darwin amd64
2021-02-08 22:47:06 +00:00
Andrew Reed
10a34c2e58
Host preflight ( #311 )
...
* Add HostPreflight v1beta2
* Work on TCP Load Balancer
* Host disk usage collector and analyzer
* Host memory analyzer
* TCP port status
* TCP load balancer
* Review changes
Co-authored-by: Marc Campbell <marc.e.campbell@gmail.com >
2021-02-08 16:09:01 -05:00
Marc Campbell
c7fdec0291
Removing Scopeagent
2021-01-28 18:22:48 +00:00
emosbaugh
2bf19eaddf
Ceph collectors and analyzers ( #295 )
...
* Ceph collectors and analyzers
* updating based on prior pr
* fixes
* fixes
2020-11-13 09:12:42 -08:00
divolgin
5a1321da02
Collector and analyzer for RRD data
2020-11-10 17:19:17 +00:00
divolgin
6e86cdc803
Allow preflight spec to be loaded from a secret
2020-10-01 01:37:37 +00:00
Andrew Lavery
0126fb7d7a
Merge remote-tracking branch 'origin/master' into laverya/allow-analyzing-all-files-in-dir
2020-09-08 14:27:26 -04:00
GraysonNull
0e667e9685
scrolling on analyzers table
2020-08-11 15:16:23 +00:00
Marc Campbell
65f957db81
Refactor to support K8s 1.18
2020-06-12 09:28:49 -07:00