Skip to content

Commit

Permalink
Updated the hpa
Browse files Browse the repository at this point in the history
Signed-off-by: naveenthangaraj03 <[email protected]>
  • Loading branch information
naveenthangaraj03 committed Jul 19, 2024
1 parent 01c2c8f commit 0414ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/analyzer/hpa.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (HpaAnalyzer) Analyze(a common.Analyzer) ([]common.Result, error) {
"analyzer_name": kind,
})

list, err := a.Client.GetClient().AutoscalingV2().HorizontalPodAutoscalers(a.Namespace).List(a.Context, metav1.ListOptions{})
list, err := a.Client.GetClient().AutoscalingV2().HorizontalPodAutoscalers(a.Namespace).List(a.Context, metav1.ListOptions{LabelSelector: a.LabelSelector})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 0414ceb

Please sign in to comment.