mellanox

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginName = "mellanox"

Functions

func NewMellanoxPlugin added in v1.2.0

func NewMellanoxPlugin(helpers helper.HostHelpersInterface) (plugin.VendorPlugin, error)

Initialize our plugin and set up initial values

Types

type MellanoxPlugin

type MellanoxPlugin struct {
	PluginName  string
	SpecVersion string
	// contains filtered or unexported fields
}

func (*MellanoxPlugin) Apply

func (p *MellanoxPlugin) Apply() error

Apply config change

func (*MellanoxPlugin) CheckStatusChanges added in v1.3.0

func (p *MellanoxPlugin) CheckStatusChanges(*sriovnetworkv1.SriovNetworkNodeState) (bool, error)

TODO: implement - https://github.com/k8snetworkplumbingwg/sriov-network-operator/issues/631 OnNodeStatusChange verify whether SriovNetworkNodeState CR status present changes on configured VFs.

func (*MellanoxPlugin) Name

func (p *MellanoxPlugin) Name() string

Name returns the name of the plugin

func (*MellanoxPlugin) OnNodeStateChange

func (p *MellanoxPlugin) OnNodeStateChange(new *sriovnetworkv1.SriovNetworkNodeState) (needDrain bool, needReboot bool, err error)

OnNodeStateChange Invoked when SriovNetworkNodeState CR is created or updated, return if need dain and/or reboot node

func (*MellanoxPlugin) Spec

func (p *MellanoxPlugin) Spec() string

SpecVersion returns the version of the spec expected by the plugin

Jump to

Keyboard shortcuts

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