Documentation ¶
Index ¶
- Variables
- func NewMellanoxPlugin(helpers helper.HostHelpersInterface) (plugin.VendorPlugin, error)
- type MellanoxPlugin
- func (p *MellanoxPlugin) Apply() error
- func (p *MellanoxPlugin) CheckStatusChanges(*sriovnetworkv1.SriovNetworkNodeState) (bool, error)
- func (p *MellanoxPlugin) Name() string
- func (p *MellanoxPlugin) OnNodeStateChange(new *sriovnetworkv1.SriovNetworkNodeState) (needDrain bool, needReboot bool, err error)
- func (p *MellanoxPlugin) Spec() string
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) 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
Click to show internal directories.
Click to hide internal directories.