clusterselector

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterSelectorRequirementsAsFieldSelector

func ClusterSelectorRequirementsAsFieldSelector(csm []fedcorev1a1.ClusterSelectorRequirement) (fields.Selector, error)

ClusterSelectorRequirementsAsFieldSelector converts the []ClusterSelectorRequirement core type into a struct that implements fields.Selector.

func ClusterSelectorRequirementsAsSelector

func ClusterSelectorRequirementsAsSelector(csm []fedcorev1a1.ClusterSelectorRequirement) (labels.Selector, error)

ClusterSelectorRequirementsAsSelector converts the []ClusterSelectorRequirement api type into a struct that implements labels.Selector.

func MatchClusterSelectorTerms

func MatchClusterSelectorTerms(
	clusterSelectorTerms []fedcorev1a1.ClusterSelectorTerm,
	cluster *fedcorev1a1.FederatedCluster,
) (bool, error)

MatchClusterSelectorTerms checks whether the cluster labels and fields match cluster selector terms. The terms are ORed. nil or empty term matches no objects.

Types

This section is empty.

Jump to

Keyboard shortcuts

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