layer1: checkpoint namespace manager runtime series
This commit is contained in:
@@ -71,6 +71,7 @@ import (
|
|||||||
"github.com/fission/fission/pkg/utils"
|
"github.com/fission/fission/pkg/utils"
|
||||||
"github.com/fission/fission/pkg/utils/manager"
|
"github.com/fission/fission/pkg/utils/manager"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StartNSWatcher registers a Kubernetes Namespace Informer that reacts immediately
|
// StartNSWatcher registers a Kubernetes Namespace Informer that reacts immediately
|
||||||
// when a Namespace with label fission.io/managed=true is created or relabeled.
|
// when a Namespace with label fission.io/managed=true is created or relabeled.
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -21,7 +21,9 @@ type fakeExecutorType struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (f *fakeExecutorType) Run(context.Context, manager.Interface) {}
|
func (f *fakeExecutorType) Run(context.Context, manager.Interface) {}
|
||||||
func (f *fakeExecutorType) GetTypeName(context.Context) fv1.ExecutorType { return fv1.ExecutorTypePoolmgr }
|
func (f *fakeExecutorType) GetTypeName(context.Context) fv1.ExecutorType {
|
||||||
|
return fv1.ExecutorTypePoolmgr
|
||||||
|
}
|
||||||
func (f *fakeExecutorType) GetFuncSvc(context.Context, *fv1.Function) (*fscache.FuncSvc, error) {
|
func (f *fakeExecutorType) GetFuncSvc(context.Context, *fv1.Function) (*fscache.FuncSvc, error) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
@@ -34,7 +36,9 @@ func (f *fakeExecutorType) TapService(context.Context, string) error { return ni
|
|||||||
func (f *fakeExecutorType) UnTapService(context.Context, *metav1.ObjectMeta, string) {}
|
func (f *fakeExecutorType) UnTapService(context.Context, *metav1.ObjectMeta, string) {}
|
||||||
func (f *fakeExecutorType) MarkSpecializationFailure(context.Context, *metav1.ObjectMeta) {}
|
func (f *fakeExecutorType) MarkSpecializationFailure(context.Context, *metav1.ObjectMeta) {}
|
||||||
func (f *fakeExecutorType) IsValid(context.Context, *fscache.FuncSvc) bool { return true }
|
func (f *fakeExecutorType) IsValid(context.Context, *fscache.FuncSvc) bool { return true }
|
||||||
func (f *fakeExecutorType) RefreshFuncPods(context.Context, *zap.Logger, fv1.Function) error { return nil }
|
func (f *fakeExecutorType) RefreshFuncPods(context.Context, *zap.Logger, fv1.Function) error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
func (f *fakeExecutorType) AdoptExistingResources(context.Context) {}
|
func (f *fakeExecutorType) AdoptExistingResources(context.Context) {}
|
||||||
func (f *fakeExecutorType) CleanupOldExecutorObjects(context.Context) {}
|
func (f *fakeExecutorType) CleanupOldExecutorObjects(context.Context) {}
|
||||||
func (f *fakeExecutorType) AddNamespace(ctx context.Context, ns string, mgr manager.Interface) error {
|
func (f *fakeExecutorType) AddNamespace(ctx context.Context, ns string, mgr manager.Interface) error {
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import (
|
|||||||
"github.com/fission/fission/pkg/utils"
|
"github.com/fission/fission/pkg/utils"
|
||||||
"github.com/fission/fission/pkg/utils/manager"
|
"github.com/fission/fission/pkg/utils/manager"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StartNSWatcher registers a Kubernetes Namespace Informer for the router.
|
// StartNSWatcher registers a Kubernetes Namespace Informer for the router.
|
||||||
// Whenever a Namespace with label fission.io/managed=true appears (or is relabeled),
|
// Whenever a Namespace with label fission.io/managed=true appears (or is relabeled),
|
||||||
// the router immediately subscribes to HTTPTriggers and Functions in that namespace.
|
// the router immediately subscribes to HTTPTriggers and Functions in that namespace.
|
||||||
|
|||||||
Reference in New Issue
Block a user