location

package
v0.4.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterReady

func FilterReady(workloadClusters []*workloadv1alpha1.WorkloadCluster) []*workloadv1alpha1.WorkloadCluster

FilterReady returns the ready workload clusters.

func LocationWorkloadClusters

func LocationWorkloadClusters(workloadClusters []*workloadv1alpha1.WorkloadCluster, location *schedulingv1alpha1.Location) (ret []*workloadv1alpha1.WorkloadCluster, err error)

LocationWorkloadClusters returns a list of workload clusters that match the given location definition.

func NewController

func NewController(
	kcpClusterClient kcpclient.ClusterInterface,
	locationInformer schedulinginformers.LocationInformer,
	workloadClusterInformer workloadinformers.WorkloadClusterInformer,
) (*controller, error)

NewController returns a new controller reconciling location status.

Types

This section is empty.

Jump to

Keyboard shortcuts

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