// If validation fails, don't trust it any further -
// even Name could be bad.
}else{
name:=kubecontainer.GetPodFullName(pod)
name:=kubecontainer.GetPodFullName(pod)
ifnames.Has(name){
ifnames.Has(name){
// TODO: when validation becomes versioned, this gets a bit
glog.Warningf("Pod[%d] (%s) from %s failed validation due to duplicate pod name %q, ignoring",i+1,format.Pod(pod),source,pod.Name)
// more complicated.
recorder.Eventf(pod,v1.EventTypeWarning,events.FailedValidation,"Error validating pod %s from %s due to duplicate pod name %q, ignoring",format.Pod(pod),source,pod.Name)