package api
import "k8s.io/cloud-provider/api"
Index ¶
Constants ¶
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" )
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" )
Types ¶
type RetryError ¶
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 ¶
func NewRetryError(msg string, retryAfter time.Duration) *RetryError
NewRetryError returns a RetryError.
func (*RetryError) Error ¶
func (re *RetryError) Error() string
Error shows the details of the retry reason.
func (*RetryError) RetryAfter ¶
func (re *RetryError) RetryAfter() time.Duration
RetryAfter returns the defined retry-after duration.
Source Files ¶
retry_error.go well_known_annotations.go well_known_taints.go
- Version
- v0.32.2 (latest)
- Published
- Feb 13, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 2 months ago –
Tools for package owners.