storage/kubernetes: garbage collect expired objects

This commit is contained in:
Eric Chiang
2016-08-01 22:53:12 -07:00
parent 45dafb035d
commit 820b460583
6 changed files with 164 additions and 13 deletions

View File

@@ -4,7 +4,6 @@ import (
"os"
"testing"
"github.com/coreos/poke/storage"
"github.com/coreos/poke/storage/storagetest"
)
@@ -12,12 +11,12 @@ func TestLoadClient(t *testing.T) {
loadClient(t)
}
func loadClient(t *testing.T) storage.Storage {
func loadClient(t *testing.T) *client {
if os.Getenv("KUBECONFIG") == "" {
t.Skip()
}
var config Config
s, err := config.Open()
s, err := config.open()
if err != nil {
t.Fatal(err)
}