location

package
v0.20.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 29 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,
	tmcClusterClient tmcclientset.ClusterInterface,
	locationInformer schedulingv1alpha1informers.LocationClusterInformer,
	syncTargetInformer workloadv1alpha1informers.SyncTargetClusterInformer,
) (*controller, error)

NewController returns a new controller reconciling location status.

Types

type CommitFunc

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

type Location

type Location = schedulingv1alpha1.Location

type LocationSpec

type LocationSpec = schedulingv1alpha1.LocationSpec

type LocationStatus

type LocationStatus = schedulingv1alpha1.LocationStatus

Jump to

Keyboard shortcuts

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