make replicas a pointer in v1beta3 api

This commit is contained in:
Mike Danese
2015-06-22 18:33:15 -07:00
parent 2906f85227
commit f79736d767
6 changed files with 63 additions and 54 deletions

View File

@@ -40,6 +40,10 @@ func addDefaultingFuncs() {
obj.Labels = labels
}
}
if obj.Spec.Replicas == nil {
obj.Spec.Replicas = new(int)
*obj.Spec.Replicas = 0
}
},
func(obj *Volume) {
if util.AllPtrFieldsNil(&obj.VolumeSource) {