Skip to content

Commit

Permalink
local SSD disk size isn't (or not always?) in template
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienjt committed Sep 24, 2021
1 parent 255594e commit d4b92c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster-autoscaler/cloudprovider/gce/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func getLocalSSDEphemeralStorageFromInstanceTemplateProperties(instancePropertie
var count int64
for _, disk := range instanceProperties.Disks {
if disk != nil && disk.InitializeParams != nil {
if disk.Type == "SCRATCH" && disk.InitializeParams.DiskType == "local-ssd" && disk.InitializeParams.DiskSizeGb == localSSDDiskSizeInGiB {
if disk.Type == "SCRATCH" && disk.InitializeParams.DiskType == "local-ssd" {
count++
}
}
Expand Down

0 comments on commit d4b92c2

Please sign in to comment.