Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildClientset ¶
func BuildClientset() (kubernetes.Interface, error)
Types ¶
type LocalityChecker ¶
type LocalityChecker struct { // The clientset for interacting with the Kubernetes API. Clientset kubernetes.Interface // The name of the Kubernetes node the container is running on. NodeName string // The directory to write locality information. WritePath string // Whether to error if node does not have region and zone labels. ErrorOnMissingLabels bool // A prefix to add to locality values. Useful for prepending the cloud provider's // name in front of the region and availability zone Prefix string }
func (*LocalityChecker) WriteLocality ¶
func (l *LocalityChecker) WriteLocality(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.