modules

package
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Overview

Package modules contains functions to setup liqo modules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupAuthenticationModule

func SetupAuthenticationModule(ctx context.Context, mgr manager.Manager, uncachedClient client.Client,
	opts *AuthOption) error

SetupAuthenticationModule setup the authentication module and initializes its controllers .

func SetupNetworkingModule

func SetupNetworkingModule(ctx context.Context, mgr manager.Manager, opts *NetworkingOption) error

SetupNetworkingModule setup the networking module and initializes its controllers .

func SetupOffloadingModule

func SetupOffloadingModule(ctx context.Context, mgr manager.Manager, opts *OffloadingOption) error

SetupOffloadingModule setup the offloading module and initializes its controllers.

Types

type AuthOption

type AuthOption struct {
	IdentityProvider         identitymanager.IdentityProvider
	NamespaceManager         tenantnamespace.Manager
	LocalClusterID           liqov1beta1.ClusterID
	LiqoNamespace            string
	APIServerAddressOverride string
	CAOverrideB64            string
	TrustedCA                bool
	SliceStatusOptions       *remoteresourceslicecontroller.SliceStatusOptions
}

AuthOption defines the options to setup the authentication module.

type NetworkingOption

type NetworkingOption struct {
	DynClient dynamic.Interface
	Factory   *dynamicutils.RunnableFactory

	LiqoNamespace string
	IpamClient    ipam.IpamClient

	GatewayServerResources         []string
	GatewayClientResources         []string
	WgGatewayServerClusterRoleName string
	WgGatewayClientClusterRoleName string
	NetworkWorkers                 int
	IPWorkers                      int
	FabricFullMasquerade           bool
	GwmasqbypassEnabled            bool

	GenevePort uint16
}

NetworkingOption defines the options to setup the Networking module.

type OffloadingOption

type OffloadingOption struct {
	Clientset                   *kubernetes.Clientset
	LocalClusterID              liqov1beta1.ClusterID
	NamespaceManager            tenantnamespace.Manager
	EnableStorage               bool
	VirtualStorageClassName     string
	RealStorageClassName        string
	StorageNamespace            string
	EnableNodeFailureController bool
	ShadowPodWorkers            int
	ShadowEndpointSliceWorkers  int
	ResyncPeriod                time.Duration
}

OffloadingOption defines the options to setup the offloading module.

Jump to

Keyboard shortcuts

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