change petset replicas type from int to int32

Change-Id: I0b8c30083e4a221421de46d9d4dcb21b1f5bb36f
This commit is contained in:
m1093782566
2016-09-19 22:12:16 +08:00
parent 46c009952d
commit fd47b6d4d1
10 changed files with 33 additions and 28 deletions

View File

@@ -344,7 +344,7 @@ func (scaler *PetSetScaler) ScaleSimple(namespace, name string, preconditions *S
return "", err
}
}
ps.Spec.Replicas = int(newSize)
ps.Spec.Replicas = int32(newSize)
updatedPetSet, err := scaler.c.PetSets(namespace).Update(ps)
if err != nil {
if errors.IsConflict(err) {