node

package
v0.67.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxunavailable = "50%"
	MinMaxunavailable     = 1
)
View Source
const (
	NetworkStateRefresh          = time.Minute
	NetworkStateRefreshMaxFactor = 0.1
)

Variables

This section is empty.

Functions

func FilterReady added in v0.64.7

func FilterReady(nodes []corev1.Node) []corev1.Node

func MaxUnavailableNodeCount added in v0.44.0

func MaxUnavailableNodeCount(cli client.Reader, policy *nmstatev1.NodeNetworkConfigurationPolicy) (int, error)

func NetworkStateRefreshWithJitter added in v0.37.4

func NetworkStateRefreshWithJitter() time.Duration

NodeNetworkStateRefreshWithJitter add some jitter to to the refresh rate so it does not hit apiserver at the same time.

func NodesRunningNmstate added in v0.44.0

func NodesRunningNmstate(cli client.Reader, nodeSelector map[string]string) ([]corev1.Node, error)

func ScaledMaxUnavailableNodeCount added in v0.44.0

func ScaledMaxUnavailableNodeCount(matchingNodes int, intOrPercent intstr.IntOrString) (int, error)

Types

type MaxUnavailableLimitReachedError added in v0.52.12

type MaxUnavailableLimitReachedError struct{}

func (MaxUnavailableLimitReachedError) Error added in v0.52.12

Jump to

Keyboard shortcuts

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