Explorar o código

Apply the region in costmodel.

Matt Bolt %!s(int64=6) %!d(string=hai) anos
pai
achega
b53434c380
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      pkg/costmodel/costmodel.go

+ 3 - 0
pkg/costmodel/costmodel.go

@@ -1144,6 +1144,9 @@ func (cm *CostModel) GetNodeCost(cp costAnalyzerCloud.Provider) (map[string]*cos
 		if newCnode.InstanceType == "" {
 			newCnode.InstanceType = n.Labels[v1.LabelInstanceType]
 		}
+		if newCnode.Region == "" {
+			newCnode.Region = n.Labels[v1.LabelZoneRegion]
+		}
 
 		var cpu float64
 		if newCnode.VCPU == "" {