func autoConvert_v1alpha1_ImageReviewSpec_To_imagepolicy_ImageReviewSpec(in *ImageReviewSpec, out *imagepolicy.ImageReviewSpec, s conversion.Scope) error { if in.Containers != nil { in, out := &in.Containers, &out.Containers *out = make([]imagepolicy.ImageReviewContainerSpec, len(*in)) for i := range *in { if err := Convert_v1alpha1_ImageReviewContainerSpec_To_imagepolicy_ImageReviewContainerSpec(&(*in)[i], &(*out)[i], s); err != nil { return err } } } else { out.Containers = nil } out.Annotations = in.Annotations out.Namespace = in.Namespace return nil }
func autoConvert_v1alpha1_ImageReviewSpec_To_imagepolicy_ImageReviewSpec(in *ImageReviewSpec, out *imagepolicy.ImageReviewSpec, s conversion.Scope) error { out.Containers = *(*[]imagepolicy.ImageReviewContainerSpec)(unsafe.Pointer(&in.Containers)) out.Annotations = *(*map[string]string)(unsafe.Pointer(&in.Annotations)) out.Namespace = in.Namespace return nil }