poolmgr

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GET_POOL requestType = iota
	CLEANUP_POOLS
)

Variables

This section is empty.

Functions

func IsIPv6

func IsIPv6(podIP string) bool

IsIPv6 validates if the podIP follows to IPv6 protocol

func MakeGenericPoolManager

func MakeGenericPoolManager(
	logger *zap.Logger,
	fissionClient *crd.FissionClient,
	kubernetesClient *kubernetes.Clientset,
	metricsClient *metricsclient.Clientset,
	functionNamespace string,
	fetcherConfig *fetcherConfig.Config,
	instanceID string,
	funcInformer *k8sCache.SharedIndexInformer,
	pkgInformer *k8sCache.SharedIndexInformer,
) (executortype.ExecutorType, error)

Types

type GenericPool

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

GenericPool represents a generic environment pool

func MakeGenericPool

func MakeGenericPool(
	logger *zap.Logger,
	fissionClient *crd.FissionClient,
	kubernetesClient *kubernetes.Clientset,
	metricsClient *metricsclient.Clientset,
	env *fv1.Environment,
	initialReplicas int32,
	namespace string,
	functionNamespace string,
	fsCache *fscache.FunctionServiceCache,
	fetcherConfig *fetcherConfig.Config,
	instanceID string,
	enableIstio bool) (*GenericPool, error)

MakeGenericPool returns an instance of GenericPool

type GenericPoolManager

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

func (*GenericPoolManager) AdoptExistingResources

func (gpm *GenericPoolManager) AdoptExistingResources()

func (*GenericPoolManager) CleanupOldExecutorObjects

func (gpm *GenericPoolManager) CleanupOldExecutorObjects()

func (*GenericPoolManager) DeleteFuncSvcFromCache

func (gpm *GenericPoolManager) DeleteFuncSvcFromCache(fsvc *fscache.FuncSvc)

func (*GenericPoolManager) FunctionEventHandlers added in v1.14.1

func (gpm *GenericPoolManager) FunctionEventHandlers(kubernetesClient *kubernetes.Clientset, fissionfnNamespace string, istioEnabled bool) k8sCache.ResourceEventHandlerFuncs

func (*GenericPoolManager) GetFuncSvc

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

func (*GenericPoolManager) GetFuncSvcFromCache

func (gpm *GenericPoolManager) GetFuncSvcFromCache(fn *fv1.Function) (*fscache.FuncSvc, error)

func (*GenericPoolManager) GetFuncSvcFromPoolCache added in v1.13.0

func (gpm *GenericPoolManager) GetFuncSvcFromPoolCache(fn *fv1.Function, requestsPerPod int) (*fscache.FuncSvc, int, error)

func (*GenericPoolManager) GetTypeName

func (gpm *GenericPoolManager) GetTypeName() fv1.ExecutorType

func (*GenericPoolManager) IsValid

func (gpm *GenericPoolManager) IsValid(fsvc *fscache.FuncSvc) bool

IsValid checks if pod is not deleted and that it has the address passed as the argument. Also checks that all the containers in it are reporting a ready status for the healthCheck.

func (*GenericPoolManager) NoActiveConnectionEventChecker added in v1.13.0

func (gpm *GenericPoolManager) NoActiveConnectionEventChecker(kubeClient *kubernetes.Clientset)

NoActiveConnectionEventChecker checks if the pod has emitted an inactive event

func (*GenericPoolManager) PackageEventHandlers added in v1.14.1

func (gpm *GenericPoolManager) PackageEventHandlers(kubernetesClient *kubernetes.Clientset, fissionfnNamespace string) k8sCache.ResourceEventHandlerFuncs

func (*GenericPoolManager) RefreshFuncPods

func (gpm *GenericPoolManager) RefreshFuncPods(logger *zap.Logger, f fv1.Function) error

func (*GenericPoolManager) Run

func (gpm *GenericPoolManager) Run(ctx context.Context)

func (*GenericPoolManager) TapService

func (gpm *GenericPoolManager) TapService(svcHost string) error

func (*GenericPoolManager) UnTapService added in v1.11.0

func (gpm *GenericPoolManager) UnTapService(key string, svcHost string)

func (*GenericPoolManager) WebsocketStartEventChecker added in v1.13.0

func (gpm *GenericPoolManager) WebsocketStartEventChecker(kubeClient *kubernetes.Clientset)

WebsocketStartEventChecker checks if the pod has emitted a websocket connection start event

Jump to

Keyboard shortcuts

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