From 2415757bc74e46780dfe2d85be6567927b2a8f45 Mon Sep 17 00:00:00 2001 From: "xian-jie.shen" <327411586@qq.com> Date: Wed, 28 Sep 2022 19:51:52 +0800 Subject: [PATCH] pkg-utils-vpa Signed-off-by: xian-jie.shen <327411586@qq.com> --- pkg/utils/vpa.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/utils/vpa.go b/pkg/utils/vpa.go index 323d40677..f2b195703 100644 --- a/pkg/utils/vpa.go +++ b/pkg/utils/vpa.go @@ -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 }