Skip to content

Commit

Permalink
fix: missing parent when explain is used
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Schuetz <thomas.schuetz@t-sc.eu>
  • Loading branch information
thschue committed Mar 25, 2023
1 parent b29c6e4 commit 9c7d559
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/analyzer/podAnalyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 1 addition & 0 deletions pkg/analyzer/rsAnalyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9c7d559

Please sign in to comment.