Documentation ¶
Index ¶
- func GetClusterRegion(clusterName string, nodes corev1sets.NodeSet) (string, error)
- func GetServiceRegion(service *corev1.Service, pods corev1sets.PodSet, nodes corev1sets.NodeSet) (string, error)
- func GetSubLocality(clusterName string, nodeName string, nodes corev1sets.NodeSet) (*discoveryv1.DestinationSpec_KubeService_EndpointsSubset_Endpoint_SubLocality, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterRegion ¶
func GetClusterRegion(clusterName string, nodes corev1sets.NodeSet) (string, error)
Get the region of a cluster by the labels on any node associated with the cluster.
func GetServiceRegion ¶
func GetServiceRegion(service *corev1.Service, pods corev1sets.PodSet, nodes corev1sets.NodeSet) (string, error)
Get the region where a service is running
func GetSubLocality ¶
func GetSubLocality( clusterName string, nodeName string, nodes corev1sets.NodeSet, ) (*discoveryv1.DestinationSpec_KubeService_EndpointsSubset_Endpoint_SubLocality, error)
Get the zone and sub-zone (if it exists) of a node
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.