func()

in api/v1alpha1/zz_generated.deepcopy.go [132:164]


func (in *PolicyEndpointSpec) DeepCopyInto(out *PolicyEndpointSpec) {
	*out = *in
	if in.PodSelector != nil {
		in, out := &in.PodSelector, &out.PodSelector
		*out = new(metav1.LabelSelector)
		(*in).DeepCopyInto(*out)
	}
	out.PolicyRef = in.PolicyRef
	if in.PodIsolation != nil {
		in, out := &in.PodIsolation, &out.PodIsolation
		*out = make([]networkingv1.PolicyType, len(*in))
		copy(*out, *in)
	}
	if in.PodSelectorEndpoints != nil {
		in, out := &in.PodSelectorEndpoints, &out.PodSelectorEndpoints
		*out = make([]PodEndpoint, len(*in))
		copy(*out, *in)
	}
	if in.Ingress != nil {
		in, out := &in.Ingress, &out.Ingress
		*out = make([]EndpointInfo, len(*in))
		for i := range *in {
			(*in)[i].DeepCopyInto(&(*out)[i])
		}
	}
	if in.Egress != nil {
		in, out := &in.Egress, &out.Egress
		*out = make([]EndpointInfo, len(*in))
		for i := range *in {
			(*in)[i].DeepCopyInto(&(*out)[i])
		}
	}
}