Skip to content

Commit

Permalink
fix the label of auto scaling group (#3157)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx authored Nov 5, 2020
1 parent 5a2399b commit 1113719
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/autoscaling/calculation.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package autoscaling

import (
"fmt"
"math"
"strings"
"time"
Expand Down Expand Up @@ -425,7 +426,7 @@ func findBestGroupToScaleOut(strategy *Strategy, scaleOutQuota float64, groups [
ResourceType: resources[0].ResourceType,
Labels: map[string]string{
// TODO: we need to make this label not duplicated when we implement the heterogeneous logic.
groupLabelKey: autoScalingGroupLabelKeyPrefix + component.String(),
groupLabelKey: fmt.Sprintf("%s-%s", autoScalingGroupLabelKeyPrefix, component.String()),
resourceTypeLabelKey: resources[0].ResourceType,
},
}
Expand Down

0 comments on commit 1113719

Please sign in to comment.