Skip to content

Commit

Permalink
fix: hpaAnalyzer analysis result is using wrong parent
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Augustin <dom.augustin@gmx.at>
  • Loading branch information
yeahservice committed Apr 2, 2023
1 parent 071ee56 commit 1190fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/analyzer/hpaAnalyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func AnalyzeHpa(ctx context.Context, config *AnalysisConfiguration, client *kube
Error: value.FailureDetails,
}

parent, _ := util.GetParent(client, value.Ingress.ObjectMeta)
parent, _ := util.GetParent(client, value.HorizontalPodAutoscalers.ObjectMeta)
currentAnalysis.ParentObject = parent
*analysisResults = append(*analysisResults, currentAnalysis)
}
Expand Down

0 comments on commit 1190fe6

Please sign in to comment.