Support updates in the kubelet.

This commit is contained in:
Brendan Burns 2014-10-17 11:02:21 -07:00
parent b01126322b
commit aa55e87ac2

View File

@ -719,16 +719,11 @@ func (kl *Kubelet) syncLoop(updates <-chan PodUpdate, handler SyncHandler) {
select {
case u := <-updates:
switch u.Op {
case SET:
case SET, UPDATE:
glog.V(3).Infof("Containers changed [%s]", kl.hostname)
kl.pods = u.Pods
kl.pods = filterHostPortConflicts(kl.pods)
case UPDATE:
//TODO: implement updates of containers
glog.Warningf("Containers updated, not implemented [%s]", kl.hostname)
continue
default:
panic("syncLoop does not support incremental changes")
}