cluster

package
v0.0.0-...-189e0fb Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsClusterStable

func IsClusterStable(clients *testclient.ClientSet) (bool, error)

func SriovStable

func SriovStable(operatorNamespace string, clients *testclient.ClientSet) (bool, error)

SriovStable tells if all the node states are in sync (and the cluster is ready for another round of tests)

Types

type EnabledNodes

type EnabledNodes struct {
	Nodes  []string
	States map[string]sriovv1.SriovNetworkNodeState
}

EnabledNodes provides info on sriov enabled nodes of the cluster.

func DiscoverSriov

func DiscoverSriov(clients *testclient.ClientSet, operatorNamespace string) (*EnabledNodes, error)

DiscoverSriov retrieves Sriov related information of a given cluster.

func (*EnabledNodes) FindOneMellanoxSriovDevice

func (n *EnabledNodes) FindOneMellanoxSriovDevice(node string) (*sriovv1.InterfaceExt, error)

FindOneMellanoxSriovDevice retrieves a valid sriov device for the given node.

func (*EnabledNodes) FindOneSriovDevice

func (n *EnabledNodes) FindOneSriovDevice(node string) (*sriovv1.InterfaceExt, error)

FindOneSriovDevice retrieves a valid sriov device for the given node.

func (*EnabledNodes) FindSriovDevices

func (n *EnabledNodes) FindSriovDevices(node string) ([]*sriovv1.InterfaceExt, error)

FindSriovDevices retrieves all valid sriov devices for the given node.

Jump to

Keyboard shortcuts

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