Skip to content

Commit

Permalink
pkg-utils-vpa
Browse files Browse the repository at this point in the history
Signed-off-by: xian-jie.shen <327411586@qq.com>
  • Loading branch information
jxs1211 committed Sep 28, 2022
1 parent 0205237 commit 2415757
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 2415757

Please sign in to comment.