Skip to content

Commit

Permalink
Merge pull request #572 from jxs1211/pkg-utils-vpa
Browse files Browse the repository at this point in the history
pkg-utils-vpa
  • Loading branch information
qmhu committed Sep 29, 2022
2 parents 0205237 + 2415757 commit 143fb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/vpa.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func GetEVPAFromScaleTarget(context context.Context, kubeClient client.Client, n

for _, evpa := range evpaList.Items {
if evpa.Spec.TargetRef.Name == objRef.Name &&
evpa.Spec.TargetRef.Kind == objRef.APIVersion &&
evpa.Spec.TargetRef.Kind == objRef.Kind &&
evpa.Spec.TargetRef.APIVersion == objRef.APIVersion {
return &evpa, nil
}
Expand Down

0 comments on commit 143fb14

Please sign in to comment.