mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 13:12:20 +00:00
Replace struct initializers for TypeMeta with ObjectMeta
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user