Documentation ¶
Index ¶
- Variables
- func NewK8sPlugin(helper helper.HostHelpersInterface) (plugins.VendorPlugin, error)
- type K8sPlugin
- func (p *K8sPlugin) Apply() error
- func (p *K8sPlugin) CheckStatusChanges(*sriovnetworkv1.SriovNetworkNodeState) (bool, error)
- func (p *K8sPlugin) Name() string
- func (p *K8sPlugin) OnNodeStateChange(new *sriovnetworkv1.SriovNetworkNodeState) (needDrain bool, needReboot bool, err error)
- func (p *K8sPlugin) Spec() string
Constants ¶
This section is empty.
Variables ¶
View Source
var PluginName = "k8s"
Functions ¶
func NewK8sPlugin ¶ added in v1.2.0
func NewK8sPlugin(helper helper.HostHelpersInterface) (plugins.VendorPlugin, error)
Initialize our plugin and set up initial values
Types ¶
type K8sPlugin ¶
type K8sPlugin struct { PluginName string SpecVersion string // contains filtered or unexported fields }
func (*K8sPlugin) CheckStatusChanges ¶ added in v1.3.0
func (p *K8sPlugin) CheckStatusChanges(*sriovnetworkv1.SriovNetworkNodeState) (bool, error)
TODO: implement - https://github.com/k8snetworkplumbingwg/sriov-network-operator/issues/630 OnNodeStatusChange verify whether SriovNetworkNodeState CR status present changes on configured VFs.
func (*K8sPlugin) OnNodeStateChange ¶
func (p *K8sPlugin) 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
Click to show internal directories.
Click to hide internal directories.