helper

package
v0.52.14 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: GPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyDefaultVlanFiltering added in v0.47.6

func ApplyDefaultVlanFiltering(desiredState nmstate.State) (nmstate.State, error)

func ApplyDesiredState

func ApplyDesiredState(client client.Client, desiredState shared.State) (string, error)

func CreateOrUpdateNodeNetworkState added in v0.22.0

func CreateOrUpdateNodeNetworkState(client client.Client, node *corev1.Node, observedState shared.State, nns *nmstatev1beta1.NodeNetworkState) error

func EnableVlanFiltering added in v0.47.8

func EnableVlanFiltering(desiredState nmstate.State) (string, error)

func EventIsForThisNode

func EventIsForThisNode(meta v1.Object) bool

Return true if the event name is the name of the pods's node (reading the env var NODE_NAME)

func GetUpLinuxBridgesWithPorts added in v0.47.8

func GetUpLinuxBridgesWithPorts(desiredState nmstate.State) (map[string][]string, error)

func InitializeNodeNetworkState added in v0.22.0

func InitializeNodeNetworkState(client client.Client, node *corev1.Node) (*nmstatev1beta1.NodeNetworkState, error)

func UpdateCurrentState

func UpdateCurrentState(client client.Client, nodeNetworkState *nmstatev1beta1.NodeNetworkState, observedState shared.State) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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