api

package
v0.32.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 37

Documentation

Index

Constants

View Source
const (
	// TaintExternalCloudProvider sets this taint on a node to mark it as unusable,
	// when kubelet is started with the "external" cloud provider, until a controller
	// from the cloud-controller-manager intitializes this node, and then removes
	// the taint
	TaintExternalCloudProvider = "node.cloudprovider.kubernetes.io/uninitialized"

	// TaintNodeShutdown when node is shutdown in external cloud provider
	TaintNodeShutdown = "node.cloudprovider.kubernetes.io/shutdown"
)
View Source
const (
	// AnnotationAlphaProvidedIPAddr is a node IP annotation set by the "external" cloud provider.
	// When kubelet is started with the "external" cloud provider, then
	// it sets this annotation on the node to denote an ip address set from the
	// cmd line flag (--node-ip). This ip is verified with the cloudprovider as valid by
	// the cloud-controller-manager
	AnnotationAlphaProvidedIPAddr = "alpha.kubernetes.io/provided-node-ip"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RetryError added in v0.28.0

type RetryError struct {
	// contains filtered or unexported fields
}

RetryError indicates that a service reconciliation should be retried after a fixed duration (as opposed to backing off exponentially).

func NewRetryError added in v0.28.0

func NewRetryError(msg string, retryAfter time.Duration) *RetryError

NewRetryError returns a RetryError.

func (*RetryError) Error added in v0.28.0

func (re *RetryError) Error() string

Error shows the details of the retry reason.

func (*RetryError) RetryAfter added in v0.28.0

func (re *RetryError) RetryAfter() time.Duration

RetryAfter returns the defined retry-after duration.

Jump to

Keyboard shortcuts

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