k8s

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 = "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) Apply

func (p *K8sPlugin) Apply() error

Apply config change

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) Name

func (p *K8sPlugin) Name() string

Name returns the name of the plugin

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

func (*K8sPlugin) Spec

func (p *K8sPlugin) Spec() string

Spec 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