provider

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package provider contains methods implementing virtual-kubelet provider

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitConfig added in v0.3.1

type InitConfig struct {
	LocalConfig   *rest.Config
	RemoteConfig  *rest.Config
	LocalCluster  discoveryv1alpha1.ClusterIdentity
	RemoteCluster discoveryv1alpha1.ClusterIdentity
	Namespace     string

	NodeName             string
	NodeIP               string
	LiqoIpamServer       string
	DisableIPReflection  bool
	InformerResyncPeriod time.Duration

	ReflectorsConfigs map[generic.ResourceReflected]*generic.ReflectorConfig

	EnableAPIServerSupport          bool
	EnableStorage                   bool
	VirtualStorageClassName         string
	RemoteRealStorageClassName      string
	EnableIngress                   bool
	RemoteRealIngressClassName      string
	EnableLoadBalancer              bool
	RemoteRealLoadBalancerClassName string
	EnableMetrics                   bool

	HomeAPIServerHost string
	HomeAPIServerPort string

	OffloadingPatch *vkalpha1.OffloadingPatch
}

InitConfig is the config passed to initialize the LiqoPodProvider.

type LiqoProvider

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

LiqoProvider implements the virtual-kubelet provider interface and stores pods in memory.

func NewLiqoProvider

func NewLiqoProvider(ctx context.Context, cfg *InitConfig, eb record.EventBroadcaster) (*LiqoProvider, error)

NewLiqoProvider creates a new NewLiqoProvider instance.

func (*LiqoProvider) PodHandler added in v0.3.2

func (p *LiqoProvider) PodHandler() workload.PodHandler

PodHandler returns an handler to interact with the pods offloaded to the remote cluster.

func (*LiqoProvider) Resync added in v0.9.0

func (p *LiqoProvider) Resync() error

Resync force the resync of all informers contained in the reflection manager.

Jump to

Keyboard shortcuts

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