Skip to content

Commit

Permalink
Fixing cherry pick of PR kubernetes#27553 and adding pd-ssd all the time
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislovecnm committed Jun 22, 2016
1 parent 9bbe60d commit bb62017
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/cloudprovider/providers/gce/gce.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ type Disks interface {
// representing this PD, namely failure domain and zone.
// zone can be provided to specify the zone for the PD,
// if empty all managed zones will be searched.
GetAutoLabelsForPD(name string) (map[string]string, error)
GetAutoLabelsForPD(name string, zone string) (map[string]string, error)
}

type instRefSlice []*compute.InstanceReference
Expand Down Expand Up @@ -2254,10 +2254,13 @@ func (gce *GCECloud) CreateDisk(name string, zone string, sizeGb int64, tags map
return err
}

// Hacking in only creating pd-ssd disks.
// Would need to figure out who calls this method
diskToCreate := &compute.Disk{
Name: name,
SizeGb: sizeGb,
Description: tagsStr,
Type: "pd-ssd",
}

createOp, err := gce.service.Disks.Insert(gce.projectID, zone, diskToCreate).Do()
Expand Down

0 comments on commit bb62017

Please sign in to comment.