provider

package
v0.5.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 21 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
	InformerResyncPeriod time.Duration

	PodWorkers                  uint
	ServiceWorkers              uint
	EndpointSliceWorkers        uint
	IngressWorkers              uint
	PersistenVolumeClaimWorkers uint
	ConfigMapWorkers            uint
	SecretWorkers               uint

	EnableAPIServerSupport     bool
	EnableStorage              bool
	VirtualStorageClassName    string
	RemoteRealStorageClassName string
}

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.

Jump to

Keyboard shortcuts

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