Merge pull request #5516 from smarterclayton/add_ttl_to_helper

Add TTL support to etcd_helper in preparation for graceful delete
This commit is contained in:
Derek Carr
2015-03-16 17:14:35 -04:00
24 changed files with 319 additions and 204 deletions

View File

@@ -93,7 +93,7 @@ func TestExtractObj(t *testing.T) {
func TestWatch(t *testing.T) {
client := newEtcdClient()
helper := tools.EtcdHelper{Client: client, Codec: latest.Codec, ResourceVersioner: tools.RuntimeVersionAdapter{latest.ResourceVersioner}}
helper := tools.NewEtcdHelper(client, latest.Codec)
withEtcdKey(func(key string) {
resp, err := client.Set(key, runtime.EncodeOrDie(v1beta1.Codec, &api.Pod{ObjectMeta: api.ObjectMeta{Name: "foo"}}), 0)
if err != nil {