modules

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 58 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, uncachedClient client.Client, 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
	TLSCompatibilityMode     bool
	SliceStatusOptions       *remoteresourceslicecontroller.SliceStatusOptions
}

AuthOption defines the options to setup the authentication module.

func NewAuthOption added in v1.0.2

func NewAuthOption(identityProvider identitymanager.IdentityProvider, namespaceManager tenantnamespace.Manager,
	clusterID liqov1beta1.ClusterID, opts *liqocontrollermanager.Options) *AuthOption

NewAuthOption creates a new AuthOption with the given parameters.

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.

func NewNetworkingOption added in v1.0.2

func NewNetworkingOption(factory *dynamicutils.RunnableFactory, dynClient dynamic.Interface,
	ipamClient ipam.IPAMClient, opts *liqocontrollermanager.Options) *NetworkingOption

NewNetworkingOption creates a new NetworkingOption with the provided parameters.

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.

func NewOffloadingOption added in v1.0.2

func NewOffloadingOption(clientset *kubernetes.Clientset, localClusterID liqov1beta1.ClusterID,
	namespaceManager tenantnamespace.Manager, opts *liqocontrollermanager.Options) *OffloadingOption

NewOffloadingOption creates a new OffloadingOption with the given parameters.

Jump to

Keyboard shortcuts

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