kubernetes

package
v0.0.0-...-51fabcb Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

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