Fix the rest of the code
This commit is contained in:
@@ -281,7 +281,7 @@ func TestScaleUpdate(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("error setting new replication controller %v: %v", *validController, err)
|
||||
}
|
||||
replicas := 12
|
||||
replicas := int32(12)
|
||||
update := autoscaling.Scale{
|
||||
ObjectMeta: api.ObjectMeta{Name: name, Namespace: namespace},
|
||||
Spec: autoscaling.ScaleSpec{
|
||||
|
@@ -105,7 +105,7 @@ func (rcStrategy) AllowUnconditionalUpdate() bool {
|
||||
func ControllerToSelectableFields(controller *api.ReplicationController) fields.Set {
|
||||
objectMetaFieldsSet := generic.ObjectMetaFieldsSet(controller.ObjectMeta, true)
|
||||
controllerSpecificFieldsSet := fields.Set{
|
||||
"status.replicas": strconv.Itoa(controller.Status.Replicas),
|
||||
"status.replicas": strconv.Itoa(int(controller.Status.Replicas)),
|
||||
}
|
||||
return generic.MergeFieldsSets(objectMetaFieldsSet, controllerSpecificFieldsSet)
|
||||
}
|
||||
|
Reference in New Issue
Block a user