mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Change v1 API to default RC replicas to 1
This commit is contained in:
@@ -39,6 +39,10 @@ func addDefaultingFuncs() {
|
||||
obj.Labels = labels
|
||||
}
|
||||
}
|
||||
if obj.Spec.Replicas == nil {
|
||||
obj.Spec.Replicas = new(int)
|
||||
*obj.Spec.Replicas = 1
|
||||
}
|
||||
},
|
||||
func(obj *Volume) {
|
||||
if util.AllPtrFieldsNil(&obj.VolumeSource) {
|
||||
|
||||
Reference in New Issue
Block a user