From 2b2f33ebc05bef02d98dea36838de906f121cc72 Mon Sep 17 00:00:00 2001 From: "zoe.chou" Date: Wed, 26 Jun 2024 15:49:30 +0800 Subject: [PATCH] fix label --- cluster-autoscaler/cloudprovider/spotinst/spotinst_manager.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cluster-autoscaler/cloudprovider/spotinst/spotinst_manager.go b/cluster-autoscaler/cloudprovider/spotinst/spotinst_manager.go index c5505f360ef5..69b3b42c1c85 100644 --- a/cluster-autoscaler/cloudprovider/spotinst/spotinst_manager.go +++ b/cluster-autoscaler/cloudprovider/spotinst/spotinst_manager.go @@ -456,9 +456,7 @@ func buildGenericLabels(template *groupTemplate, nodeName string) map[string]str result[kubeletapis.LabelArch] = cloudprovider.DefaultArch result[kubeletapis.LabelOS] = cloudprovider.DefaultOS - result[apiv1.LabelInstanceType] = template.InstanceType.InstanceType - result[apiv1.LabelZoneRegion] = template.Region - result[apiv1.LabelZoneFailureDomain] = template.Zone + result[apiv1.LabelInstanceTypeStable] = template.InstanceType.InstanceType result[apiv1.LabelHostname] = nodeName return result