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) (*v1alpha2.SubLocality, error)
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, ) (*v1alpha2.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.