Skip to content

Commit 99b0561

Browse files
authored
feat(admin console): save bundle of last run preflight in Admin Console (#4887)
* feat(admin console): save bundle after running preflights - Save preflight bundle in /tmp/last-preflight-result directory - Add collector to store the directory in support bundles Signed-off-by: Evans Mungai <evans@replicated.com> * Save troubleshoot version to preflight bundle Signed-off-by: Evans Mungai <evans@replicated.com> * Update troubleshoot dep in branch Signed-off-by: Evans Mungai <evans@replicated.com> * Update log messages and uncomment BundlePath variable Signed-off-by: Evans Mungai <evans@replicated.com> * Handle analysis when storing preflights to bundle in /tmp Signed-off-by: Evans Mungai <evans@replicated.com> * Log warning if skipping preflights Signed-off-by: Evans Mungai <evans@replicated.com> * Fix checking RBAC error condition Signed-off-by: Evans Mungai <evans@replicated.com> * Handle case where not preflight results are collected Signed-off-by: Evans Mungai <evans@replicated.com> * analyze.yaml has to be present in local preflight bundle Signed-off-by: Evans Mungai <evans@replicated.com> * Update troubleshoot Signed-off-by: Evans Mungai <evans@replicated.com> * Run go mod tidy Signed-off-by: Evans Mungai <evans@replicated.com> --------- Signed-off-by: Evans Mungai <evans@replicated.com>
1 parent 53c7dff commit 99b0561

File tree

7 files changed

+158
-55
lines changed

7 files changed

+158
-55
lines changed

go.mod

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ require (
5252
github.com/replicatedhq/embedded-cluster/kinds v1.14.0
5353
github.com/replicatedhq/kotskinds v0.0.0-20240718194123-1018dd404e95
5454
github.com/replicatedhq/kurlkinds v1.5.0
55-
github.com/replicatedhq/troubleshoot v0.99.0
55+
github.com/replicatedhq/troubleshoot v0.103.0
5656
github.com/replicatedhq/yaml/v3 v3.0.0-beta5-replicatedhq
5757
github.com/robfig/cron v1.2.0
5858
github.com/robfig/cron/v3 v3.0.1
@@ -65,10 +65,10 @@ require (
6565
github.com/spf13/viper v1.19.0
6666
github.com/stretchr/testify v1.9.0
6767
github.com/tj/go-spin v1.1.0
68-
github.com/vmware-tanzu/velero v1.14.0
68+
github.com/vmware-tanzu/velero v1.14.1
6969
go.uber.org/multierr v1.11.0
7070
go.uber.org/zap v1.27.0
71-
golang.org/x/crypto v0.26.0
71+
golang.org/x/crypto v0.27.0
7272
golang.org/x/oauth2 v0.22.0
7373
golang.org/x/sync v0.8.0
7474
google.golang.org/api v0.187.0
@@ -83,7 +83,7 @@ require (
8383
k8s.io/client-go v0.31.1
8484
k8s.io/cluster-bootstrap v0.31.1
8585
k8s.io/helm v2.17.0+incompatible
86-
k8s.io/kubelet v0.30.3
86+
k8s.io/kubelet v0.31.1
8787
k8s.io/metrics v0.31.1
8888
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8
8989
oras.land/oras-go/v2 v2.5.0
@@ -225,7 +225,7 @@ require (
225225
github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect
226226
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect
227227
github.com/hashicorp/errwrap v1.1.0 // indirect
228-
github.com/hashicorp/go-getter v1.7.5 // indirect
228+
github.com/hashicorp/go-getter v1.7.6 // indirect
229229
github.com/hashicorp/go-multierror v1.1.1 // indirect
230230
github.com/hashicorp/go-safetemp v1.0.0 // indirect
231231
github.com/hashicorp/go-version v1.7.0 // indirect
@@ -240,10 +240,10 @@ require (
240240
github.com/jackc/pgio v1.0.0 // indirect
241241
github.com/jackc/pgpassfile v1.0.0 // indirect
242242
github.com/jackc/pgproto3/v2 v2.3.3 // indirect
243-
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
243+
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
244244
github.com/jackc/pgtype v1.14.0 // indirect
245245
github.com/jackc/pgx/v4 v4.18.3 // indirect
246-
github.com/jackc/pgx/v5 v5.6.0 // indirect
246+
github.com/jackc/pgx/v5 v5.7.1 // indirect
247247
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
248248
github.com/jmespath/go-jmespath v0.4.0 // indirect
249249
github.com/jmoiron/sqlx v1.4.0 // indirect
@@ -349,7 +349,7 @@ require (
349349
go.opentelemetry.io/contrib/exporters/autoexport v0.46.1 // indirect
350350
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.53.0 // indirect
351351
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect
352-
go.opentelemetry.io/otel v1.28.0 // indirect
352+
go.opentelemetry.io/otel v1.30.0 // indirect
353353
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.44.0 // indirect
354354
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.44.0 // indirect
355355
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.28.0 // indirect
@@ -358,17 +358,17 @@ require (
358358
go.opentelemetry.io/otel/exporters/prometheus v0.44.0 // indirect
359359
go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v0.44.0 // indirect
360360
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.21.0 // indirect
361-
go.opentelemetry.io/otel/metric v1.28.0 // indirect
362-
go.opentelemetry.io/otel/sdk v1.28.0 // indirect
361+
go.opentelemetry.io/otel/metric v1.30.0 // indirect
362+
go.opentelemetry.io/otel/sdk v1.30.0 // indirect
363363
go.opentelemetry.io/otel/sdk/metric v1.27.0 // indirect
364-
go.opentelemetry.io/otel/trace v1.28.0 // indirect
364+
go.opentelemetry.io/otel/trace v1.30.0 // indirect
365365
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
366366
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
367367
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
368-
golang.org/x/mod v0.20.0 // indirect
369-
golang.org/x/net v0.28.0 // indirect
368+
golang.org/x/mod v0.21.0 // indirect
369+
golang.org/x/net v0.29.0 // indirect
370370
golang.org/x/sys v0.25.0 // indirect
371-
golang.org/x/term v0.23.0 // indirect
371+
golang.org/x/term v0.24.0 // indirect
372372
golang.org/x/text v0.18.0 // indirect
373373
golang.org/x/time v0.5.0 // indirect
374374
golang.org/x/tools v0.24.0 // indirect
@@ -380,9 +380,9 @@ require (
380380
gopkg.in/inf.v0 v0.9.1 // indirect
381381
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
382382
gopkg.in/warnings.v0 v0.1.2 // indirect
383-
k8s.io/apiextensions-apiserver v0.31.0 // indirect
384-
k8s.io/apiserver v0.31.0 // indirect
385-
k8s.io/component-base v0.31.0 // indirect
383+
k8s.io/apiextensions-apiserver v0.31.1 // indirect
384+
k8s.io/apiserver v0.31.1 // indirect
385+
k8s.io/component-base v0.31.1 // indirect
386386
k8s.io/klog/v2 v2.130.1 // indirect
387387
k8s.io/kube-openapi v0.0.0-20240709000822-3c01b740850f // indirect
388388
k8s.io/kubectl v0.31.0 // indirect
@@ -409,6 +409,7 @@ require (
409409
github.com/hashicorp/logutils v1.0.0 // indirect
410410
github.com/kopia/kopia v0.10.7 // indirect
411411
github.com/kubernetes-csi/external-snapshotter/client/v4 v4.2.0 // indirect
412+
github.com/miekg/dns v1.1.58 // indirect
412413
github.com/moby/docker-image-spec v1.3.1 // indirect
413414
github.com/shopspring/decimal v1.4.0 // indirect
414415
github.com/tchap/go-patricia/v2 v2.3.1 // indirect

0 commit comments

Comments
 (0)