From 9c7d55955b777ad201307cb946e0fc81cf9c4b99 Mon Sep 17 00:00:00 2001 From: Thomas Schuetz Date: Sat, 25 Mar 2023 15:57:48 +0100 Subject: [PATCH] fix: missing parent when explain is used Signed-off-by: Thomas Schuetz --- pkg/analyzer/podAnalyzer.go | 1 + pkg/analyzer/rsAnalyzer.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/analyzer/podAnalyzer.go b/pkg/analyzer/podAnalyzer.go index 64e17d6485..fabb1e854e 100644 --- a/pkg/analyzer/podAnalyzer.go +++ b/pkg/analyzer/podAnalyzer.go @@ -100,6 +100,7 @@ func AnalyzePod(ctx context.Context, client *kubernetes.Client, aiClient ai.IAI, continue } currentAnalysis.Details = string(output) + currentAnalysis.ParentObject = parent *analysisResults = append(*analysisResults, currentAnalysis) continue } diff --git a/pkg/analyzer/rsAnalyzer.go b/pkg/analyzer/rsAnalyzer.go index 12c30947e3..94e5bcea56 100644 --- a/pkg/analyzer/rsAnalyzer.go +++ b/pkg/analyzer/rsAnalyzer.go @@ -78,6 +78,7 @@ func AnalyzeReplicaSet(ctx context.Context, client *kubernetes.Client, aiClient continue } currentAnalysis.Details = string(output) + currentAnalysis.ParentObject = parent *analysisResults = append(*analysisResults, currentAnalysis) continue }