replicatedhq / troubleshoot

Preflight Checks and Support Bundles Framework for Kubernetes Applications
https://troubleshoot.sh
Apache License 2.0
543 stars 93 forks source link

feat(analyzer): make sure ReplicaSetStatus has valid result #1538

Closed DexterYan closed 5 months ago

DexterYan commented 5 months ago

Description, Motivation and Context

According user, we have another issue

  • Listing releases
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x3 pc=0x2ca2d13]

goroutine 1484 [running]:
github.com/replicatedhq/troubleshoot/pkg/analyze.(*AnalyzeReplicaSetStatus).Analyze(0xc001454ec0, 0x7323368?, 0xc001a1b2f0?)
    /var/cache/melange/gomodcache/github.com/replicatedhq/troubleshoot@v0.88.0/pkg/analyze/replicaset_status.go:50 +0x53

Checklist

Does this PR introduce a breaking change?