location

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterNonEvicting

func FilterNonEvicting(syncTargets []*workloadv1alpha1.SyncTarget) []*workloadv1alpha1.SyncTarget

FilterNonEvicting filters out the evicting sync targets.

func FilterReady

func FilterReady(syncTargets []*workloadv1alpha1.SyncTarget) []*workloadv1alpha1.SyncTarget

FilterReady returns the ready sync targets.

func LocationSyncTargets

func LocationSyncTargets(syncTargets []*workloadv1alpha1.SyncTarget, location *schedulingv1alpha1.Location) (ret []*workloadv1alpha1.SyncTarget, err error)

LocationSyncTargets returns a list of sync targets that match the given location definition.

func NewController

func NewController(
	kcpClusterClient kcpclientset.ClusterInterface,
	locationInformer schedulingv1alpha1informers.LocationClusterInformer,
	syncTargetInformer workloadv1alpha1informers.SyncTargetClusterInformer,
) (*controller, error)

NewController returns a new controller reconciling location status.

Types

type CommitFunc added in v0.11.0

type CommitFunc = func(context.Context, *Resource, *Resource) error

type Location added in v0.11.0

type Location = schedulingv1alpha1.Location

type LocationSpec added in v0.11.0

type LocationSpec = schedulingv1alpha1.LocationSpec

type LocationStatus added in v0.11.0

type LocationStatus = schedulingv1alpha1.LocationStatus

type Patcher added in v0.11.0

type Resource added in v0.11.0

Jump to

Keyboard shortcuts

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