namescheme

package
v0.57.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const PrimaryPodInterfaceName = "eth0"

Variables

This section is empty.

Functions

func CreateNetworkNameScheme

func CreateNetworkNameScheme(vmiNetworks []v1.Network) map[string]string

CreateNetworkNameScheme iterates over the VMI's Networks, and creates for each a pod interface name. The returned map associates between the network name and the generated pod interface name. Primary network will use "eth0" and the secondary ones will use "net<id>" format, where id is an enumeration from 1 to n.

Types

This section is empty.

Jump to

Keyboard shortcuts

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