Documentation ¶
Index ¶
- func ListExternalIPv4Networks(apiClient *clients.Settings, options ...metav1.ListOptions) ([]string, error)
- func WaitForAllNodesAreReady(apiClient *clients.Settings, timeout time.Duration, ...) (bool, error)
- func WaitForAllNodesToReboot(apiClient *clients.Settings, globalRebootTimeout time.Duration, ...) (bool, error)
- type AdditionalOptions
- type Builder
- func (builder *Builder) Cordon() error
- func (builder *Builder) Delete() error
- func (builder *Builder) Drain() error
- func (builder *Builder) Exists() bool
- func (builder *Builder) ExternalIPv4Network() (string, error)
- func (builder *Builder) IsReady() (bool, error)
- func (builder *Builder) RemoveLabel(key, value string) *Builder
- func (builder *Builder) SetDrainHelper(force bool, ignoreDaemonsets bool, deleteLocalData bool, gracePeriod int, ...)
- func (builder *Builder) Uncordon() error
- func (builder *Builder) Update() (*Builder, error)
- func (builder *Builder) WaitUntilConditionTrue(conditionType corev1.NodeConditionType, timeout time.Duration) error
- func (builder *Builder) WaitUntilConditionUnknown(conditionType corev1.NodeConditionType, timeout time.Duration) error
- func (builder *Builder) WaitUntilNotReady(timeout time.Duration) error
- func (builder *Builder) WaitUntilReady(timeout time.Duration) error
- func (builder *Builder) WithNewLabel(key, value string) *Builder
- func (builder *Builder) WithOptions(options ...AdditionalOptions) *Builder
- type ExternalNetworks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListExternalIPv4Networks ¶
func ListExternalIPv4Networks(apiClient *clients.Settings, options ...metav1.ListOptions) ([]string, error)
ListExternalIPv4Networks returns a list of node's external ipv4 addresses.
func WaitForAllNodesAreReady ¶
func WaitForAllNodesAreReady(apiClient *clients.Settings, timeout time.Duration, options ...metav1.ListOptions) (bool, error)
WaitForAllNodesAreReady waits for all nodes to be Ready for a time duration up to the timeout.
func WaitForAllNodesToReboot ¶
func WaitForAllNodesToReboot(apiClient *clients.Settings, globalRebootTimeout time.Duration, options ...metav1.ListOptions) (bool, error)
WaitForAllNodesToReboot waits for all nodes to start and finish reboot up to the timeout.
Types ¶
type AdditionalOptions ¶
AdditionalOptions additional options for node object.
type Builder ¶
type Builder struct { Definition *corev1.Node Object *corev1.Node // contains filtered or unexported fields }
Builder provides struct for Node object containing connection to the cluster and the list of Node definitions.
func (*Builder) ExternalIPv4Network ¶
ExternalIPv4Network returns nodes external ip address.
func (*Builder) RemoveLabel ¶
RemoveLabel removes given label from Node metadata.
func (*Builder) SetDrainHelper ¶
func (builder *Builder) SetDrainHelper( force bool, ignoreDaemonsets bool, deleteLocalData bool, gracePeriod int, skipWaitForDeleteTimeoutSeconds int, timeout time.Duration, )
SetDrainHelper builds drain Helper that contains parameters to control the behaviour of drain.
func (*Builder) Update ¶
Update renovates the existing node object with the node definition in builder.
func (*Builder) WaitUntilConditionTrue ¶
func (builder *Builder) WaitUntilConditionTrue( conditionType corev1.NodeConditionType, timeout time.Duration) error
WaitUntilConditionTrue waits for timeout duration or until node gets to a specific status.
func (*Builder) WaitUntilConditionUnknown ¶
func (builder *Builder) WaitUntilConditionUnknown( conditionType corev1.NodeConditionType, timeout time.Duration) error
WaitUntilConditionUnknown waits for timeout duration or until the provided condition type does not have status Unknown.
func (*Builder) WaitUntilNotReady ¶
WaitUntilNotReady waits for timeout duration or until node is NotReady.
func (*Builder) WaitUntilReady ¶
WaitUntilReady waits for timeout duration or until node is Ready.
func (*Builder) WithNewLabel ¶
WithNewLabel defines the new label placed in the Node metadata.
func (*Builder) WithOptions ¶
func (builder *Builder) WithOptions(options ...AdditionalOptions) *Builder
WithOptions creates node with generic mutation options.
type ExternalNetworks ¶
type ExternalNetworks struct { IPv4 string `json:"ipv4,omitempty"` IPv6 string `json:"ipv6,omitempty"` }
ExternalNetworks contains external node ip4/ipv6 addresses.