func Convert_v1beta1_RollingUpdateDaemonSet_To_extensions_RollingUpdateDaemonSet(in *RollingUpdateDaemonSet, out *extensions.RollingUpdateDaemonSet, s conversion.Scope) error { if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { defaulting.(func(*RollingUpdateDaemonSet))(in) } if err := s.Convert(in.MaxUnavailable, &out.MaxUnavailable, 0); err != nil { return err } out.MinReadySeconds = int(in.MinReadySeconds) return nil }
func Convert_extensions_RollingUpdateDeployment_To_v1beta1_RollingUpdateDeployment(in *extensions.RollingUpdateDeployment, out *RollingUpdateDeployment, s conversion.Scope) error { if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found { defaulting.(func(*extensions.RollingUpdateDeployment))(in) } if out.MaxUnavailable == nil { out.MaxUnavailable = &intstr.IntOrString{} } if err := s.Convert(&in.MaxUnavailable, out.MaxUnavailable, 0); err != nil { return err } if out.MaxSurge == nil { out.MaxSurge = &intstr.IntOrString{} } if err := s.Convert(&in.MaxSurge, out.MaxSurge, 0); err != nil { return err } out.MinReadySeconds = int32(in.MinReadySeconds) return nil }