Rename the etcd path for pods to be /registry/nodes/<>/boundpods

This commit is contained in:
Clayton Coleman
2014-10-14 17:31:11 -04:00
committed by Eric Paris
parent 6ae611aedd
commit 26cff8b9bf
3 changed files with 14 additions and 18 deletions

View File

@@ -34,7 +34,7 @@ import (
)
func EtcdKeyForHost(hostname string) string {
return path.Join("/", "registry", "hosts", hostname, "kubelet")
return path.Join("/", "registry", "nodes", hostname, "boundpods")
}
type SourceEtcd struct {
@@ -111,7 +111,3 @@ func eventToPods(ev watch.Event) ([]api.BoundPod, error) {
return pods, nil
}
func makeContainerKey(machine string) string {
return "/registry/hosts/" + machine + "/kubelet"
}