storage/kubernetes: add garbage collection method

This commit is contained in:
Eric Chiang
2016-10-12 18:48:23 -07:00
parent 9ce05ecf73
commit 558059ee58
5 changed files with 39 additions and 163 deletions

View File

@@ -20,7 +20,6 @@ import (
"time"
"github.com/gtank/cryptopasta"
"golang.org/x/net/context"
yaml "gopkg.in/yaml.v2"
"github.com/coreos/dex/storage"
@@ -35,9 +34,6 @@ type client struct {
now func() time.Time
// If not nil, the cancel function for stopping garbage colletion.
cancel context.CancelFunc
// BUG: currently each third party API group can only have one resource in it,
// so for each resource this storage uses, it need a unique API group.
//