Просмотр исходного кода

Merge pull request #375 from kubecost/AjayTripathy-n2-prices

Ajay tripathy n2 prices
Ajay Tripathy 6 лет назад
Родитель
Сommit
cda55960b3
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      pkg/cloud/gcpprovider.go

+ 2 - 0
pkg/cloud/gcpprovider.go

@@ -1238,6 +1238,8 @@ func (gcp *gcpKey) Features() string {
 	instanceType := strings.ToLower(strings.Join(strings.Split(gcp.Labels[v1.LabelInstanceType], "-")[:2], ""))
 	if instanceType == "n1highmem" || instanceType == "n1highcpu" {
 		instanceType = "n1standard" // These are priced the same. TODO: support n1ultrahighmem
+	} else if instanceType == "n2highmem" || instanceType == "n2highcpu" {
+		instanceType = "n2standard"
 	} else if instanceType == "e2highmem" || instanceType == "e2highcpu" {
 		instanceType = "e2standard"
 	} else if strings.HasPrefix(instanceType, "custom") {