Fixing federation controllers to support controllers flag

This commit is contained in:
nikhiljindal
2017-03-01 17:05:58 -08:00
parent 5c168e2d58
commit 6d891be3be
10 changed files with 90 additions and 39 deletions

View File

@@ -23,6 +23,7 @@ import (
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/watch"
"k8s.io/client-go/dynamic"
clientv1 "k8s.io/client-go/pkg/api/v1"
@@ -45,6 +46,11 @@ import (
const (
allClustersKey = "ALL_CLUSTERS"
ControllerName = "namespaces"
)
var (
RequiredResources = []schema.GroupVersionResource{apiv1.SchemeGroupVersion.WithResource("namespaces")}
)
type NamespaceController struct {