Services using standard REST storage

This commit is contained in:
Wojciech Tyczynski
2015-08-06 12:02:01 +02:00
parent d11ab96446
commit 79125f460c
11 changed files with 194 additions and 276 deletions

View File

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