Replace struct initializers for TypeMeta with ObjectMeta

This commit is contained in:
Clayton Coleman
2014-10-23 16:55:58 -04:00
parent bc748fadfa
commit 7550c146dc
9 changed files with 21 additions and 19 deletions

View File

@@ -73,9 +73,9 @@ func (s *Scheduler) scheduleOne() {
return
}
b := &api.Binding{
TypeMeta: api.TypeMeta{Namespace: pod.Namespace},
PodID: pod.Name,
Host: dest,
ObjectMeta: api.ObjectMeta{Namespace: pod.Namespace},
PodID: pod.Name,
Host: dest,
}
if err := s.config.Binder.Bind(b); err != nil {
record.Eventf(pod, "", string(api.PodWaiting), "failedScheduling", "Binding rejected: %v", err)