Documentation ¶
Index ¶
- func ClusterSelectorRequirementsAsFieldSelector(csm []fedcorev1a1.ClusterSelectorRequirement) (fields.Selector, error)
- func ClusterSelectorRequirementsAsSelector(csm []fedcorev1a1.ClusterSelectorRequirement) (labels.Selector, error)
- func MatchClusterSelectorTerms(clusterSelectorTerms []fedcorev1a1.ClusterSelectorTerm, ...) (bool, error)
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.
Click to show internal directories.
Click to hide internal directories.