Skip to content

Commit 9c7d559

Browse files
committed
fix: missing parent when explain is used
Signed-off-by: Thomas Schuetz <[email protected]>
1 parent b29c6e4 commit 9c7d559

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/analyzer/podAnalyzer.go

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ func AnalyzePod(ctx context.Context, client *kubernetes.Client, aiClient ai.IAI,
100100
continue
101101
}
102102
currentAnalysis.Details = string(output)
103+
currentAnalysis.ParentObject = parent
103104
*analysisResults = append(*analysisResults, currentAnalysis)
104105
continue
105106
}

pkg/analyzer/rsAnalyzer.go

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ func AnalyzeReplicaSet(ctx context.Context, client *kubernetes.Client, aiClient
7878
continue
7979
}
8080
currentAnalysis.Details = string(output)
81+
currentAnalysis.ParentObject = parent
8182
*analysisResults = append(*analysisResults, currentAnalysis)
8283
continue
8384
}

0 commit comments

Comments
 (0)