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 PodWorkers uint ServiceWorkers uint EndpointSliceWorkers uint IngressWorkers uint PersistenVolumeClaimWorkers uint ConfigMapWorkers uint SecretWorkers uint ServiceAccountWorkers uint EventWorkers uint EnableAPIServerSupport bool EnableStorage bool VirtualStorageClassName string RemoteRealStorageClassName string EnableMetrics bool HomeAPIServerHost string HomeAPIServerPort string LabelsNotReflected []string AnnotationsNotReflected []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.
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.
Click to show internal directories.
Click to hide internal directories.