node

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NetworkStateRefresh          = time.Minute
	NetworkStateRefreshMaxFactor = 0.1
)
View Source
const (
	DEFAULT_MAXUNAVAILABLE = "50%"
)

Variables

This section is empty.

Functions

func MaxUnavailableNodeCount added in v0.44.0

func MaxUnavailableNodeCount(cli client.Client, policy *nmstatev1beta1.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.Client) ([]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