to fix govet issue

This commit is contained in:
Salvatore Dario Minonne
2015-08-13 17:26:43 +02:00
parent c367d3c2e5
commit 48018c402c
4 changed files with 11 additions and 11 deletions

View File

@@ -67,7 +67,7 @@ func (eventStrategy) AllowUnconditionalUpdate() bool {
}
func MatchEvent(label labels.Selector, field fields.Selector) generic.Matcher {
return &generic.SelectionPredicate{label, field, getAttrs}
return &generic.SelectionPredicate{Label: label, Field: field, GetAttrs: getAttrs}
}
func getAttrs(obj runtime.Object) (objLabels labels.Set, objFields fields.Set, err error) {

View File

@@ -65,7 +65,7 @@ func validNewHorizontalPodAutoscaler(name string) *expapi.HorizontalPodAutoscale
},
MinCount: 1,
MaxCount: 5,
Target: expapi.TargetConsumption{api.ResourceCPU, resource.MustParse("0.8")},
Target: expapi.TargetConsumption{Resource: api.ResourceCPU, Quantity: resource.MustParse("0.8")},
},
}
}