Add verb support for discovery client

This commit is contained in:
Dr. Stefan Schimanski
2016-11-17 14:19:03 +01:00
committed by Dr. Stefan Schimanski
parent 4d1d98c49a
commit 458d2b2fe4
18 changed files with 580 additions and 208 deletions

View File

@@ -58,7 +58,7 @@ type NamespaceController struct {
// namespaces that have been queued up for processing by workers
queue workqueue.RateLimitingInterface
// function to list of preferred group versions and their corresponding resource set for namespace deletion
groupVersionResourcesFn func() ([]schema.GroupVersionResource, error)
groupVersionResourcesFn func() (map[schema.GroupVersionResource]struct{}, error)
// opCache is a cache to remember if a particular operation is not supported to aid dynamic client.
opCache *operationNotSupportedCache
// finalizerToken is the finalizer token managed by this controller
@@ -69,7 +69,7 @@ type NamespaceController struct {
func NewNamespaceController(
kubeClient clientset.Interface,
clientPool dynamic.ClientPool,
groupVersionResourcesFn func() ([]schema.GroupVersionResource, error),
groupVersionResourcesFn func() (map[schema.GroupVersionResource]struct{}, error),
resyncPeriod time.Duration,
finalizerToken v1.FinalizerName) *NamespaceController {