In preparation for new storage backends renaming generic registry store

This commit is contained in:
Timothy St. Clair
2016-04-08 14:57:28 -05:00
parent 9db45590cf
commit 24b4286960
62 changed files with 374 additions and 375 deletions

View File

@@ -20,10 +20,10 @@ package podtask
import (
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/registry/generic/etcd"
"k8s.io/kubernetes/pkg/registry/generic/registry"
)
// makePodKey constructs etcd paths to pod items enforcing namespace rules.
func MakePodKey(ctx api.Context, id string) (string, error) {
return etcd.NamespaceKeyFunc(ctx, PodPath, id)
return registry.NamespaceKeyFunc(ctx, PodPath, id)
}