node

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 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 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

This section is empty.

Jump to

Keyboard shortcuts

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