container

package
v1.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeContainer

func MakeContainer(
	ctx context.Context,
	logger *zap.Logger,
	fissionClient versioned.Interface,
	kubernetesClient kubernetes.Interface,
	instanceID string,
	finformerFactory map[string]genInformer.SharedInformerFactory,
	cnmInformerFactory map[string]k8sInformers.SharedInformerFactory,
) (executortype.ExecutorType, error)

MakeContainer initializes and returns an instance of CaaF

Types

type Container

type Container struct {
	// contains filtered or unexported fields
}

Container represents an executor type

func (*Container) AdoptExistingResources

func (caaf *Container) AdoptExistingResources(ctx context.Context)

AdoptExistingResources attempts to adopt resources for functions in all namespaces.

func (*Container) CleanupOldExecutorObjects

func (caaf *Container) CleanupOldExecutorObjects(ctx context.Context)

CleanupOldExecutorObjects cleans orphaned resources.

func (*Container) DeleteFuncSvcFromCache

func (caaf *Container) DeleteFuncSvcFromCache(ctx context.Context, fsvc *fscache.FuncSvc)

DeleteFuncSvcFromCache deletes a function service from cache.

func (*Container) DumpDebugInfo added in v1.19.0

func (caaf *Container) DumpDebugInfo(ctx context.Context) error

func (*Container) FuncInformerHandler

func (caaf *Container) FuncInformerHandler(ctx context.Context) k8sCache.ResourceEventHandlerFuncs

func (*Container) GetFuncSvc

func (caaf *Container) GetFuncSvc(ctx context.Context, fn *fv1.Function) (*fscache.FuncSvc, error)

GetFuncSvc returns a function service; error otherwise.

func (*Container) GetFuncSvcFromCache

func (caaf *Container) GetFuncSvcFromCache(ctx context.Context, fn *fv1.Function) (*fscache.FuncSvc, error)

GetFuncSvcFromCache returns a function service from cache; error otherwise.

func (*Container) GetTotalAvailable

func (caaf *Container) GetTotalAvailable(fn *fv1.Function) int

GetTotalAvailable has not been implemented for CaaF.

func (*Container) GetTypeName

func (caaf *Container) GetTypeName(ctx context.Context) fv1.ExecutorType

GetTypeName returns the executor type name.

func (*Container) IsValid

func (caaf *Container) IsValid(ctx context.Context, fsvc *fscache.FuncSvc) bool

IsValid does a get on the service address to ensure it's a valid service, then scale deployment to 1 replica if there are no available replicas for function. Return true if no error occurs, return false otherwise.

func (*Container) MarkSpecializationFailure added in v1.19.0

func (caaf *Container) MarkSpecializationFailure(ctx context.Context, fnMeta *metav1.ObjectMeta)

MarkSpecializationFailure has not been implemented for CaaF.

func (*Container) RefreshFuncPods

func (caaf *Container) RefreshFuncPods(ctx context.Context, logger *zap.Logger, f fv1.Function) error

RefreshFuncPods deletes pods related to the function so that new pods are replenished

func (*Container) Run

func (caaf *Container) Run(ctx context.Context, mgr manager.Interface)

Run start the function along with an object reaper.

func (*Container) TapService

func (caaf *Container) TapService(ctx context.Context, svcHost string) error

TapService makes a TouchByAddress request to the cache.

func (*Container) UnTapService

func (caaf *Container) UnTapService(ctx context.Context, fnMeta *metav1.ObjectMeta, svcHost string)

UnTapService has not been implemented for CaaF.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL