add federatednamespaces tenant API

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2020-07-20 17:12:48 +08:00
parent 8241a0f9c5
commit 3525fc5507
30 changed files with 1374 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ import (
servicemesh "kubesphere.io/kubesphere/pkg/client/informers/externalversions/servicemesh"
storage "kubesphere.io/kubesphere/pkg/client/informers/externalversions/storage"
tenant "kubesphere.io/kubesphere/pkg/client/informers/externalversions/tenant"
types "kubesphere.io/kubesphere/pkg/client/informers/externalversions/types"
)
// SharedInformerOption defines the functional option type for SharedInformerFactory.
@@ -187,6 +188,7 @@ type SharedInformerFactory interface {
Servicemesh() servicemesh.Interface
Storage() storage.Interface
Tenant() tenant.Interface
Types() types.Interface
}
func (f *sharedInformerFactory) Auditing() auditing.Interface {
@@ -220,3 +222,7 @@ func (f *sharedInformerFactory) Storage() storage.Interface {
func (f *sharedInformerFactory) Tenant() tenant.Interface {
return tenant.New(f, f.namespace, f.tweakListOptions)
}
func (f *sharedInformerFactory) Types() types.Interface {
return types.New(f, f.namespace, f.tweakListOptions)
}