controllers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigMapVersionAnnotation = "workload.nephio.org/configMapVersion"

	// TODO(jbelamaric): Update to use ImageConfig spec.ImagePaths["upf"]
	AMFImage = "docker.io/nephio/free5gc-amf:3.2.1"
	SMFImage = "docker.io/nephio/free5gc-smf:3.2.1"
	UPFImage = "docker.io/nephio/free5gc-upf:3.2.1"
)
View Source
const NetworksAnnotation = "k8s.v1.cni.cncf.io/networks"

Variables

View Source
var NetworkAttachmentDefinitionGVK = schema.GroupVersionKind{
	Group:   "k8s.cni.cncf.io",
	Kind:    "NetworkAttachmentDefinition",
	Version: "v1",
}

Functions

func CreateNetworkAttachmentDefinitionName

func CreateNetworkAttachmentDefinitionName(templateName string, suffix string) string

func CreateNetworkAttachmentDefinitionNetworks

func CreateNetworkAttachmentDefinitionNetworks(templateName string, interfaceConfigs map[string][]nephiov1alpha1.InterfaceConfig) (string, error)

func GetFirstInterfaceConfig

func GetFirstInterfaceConfig(interfaceConfigs []nephiov1alpha1.InterfaceConfig, interfaceName string) (*nephiov1alpha1.InterfaceConfig, error)

func GetFirstInterfaceConfigIPv4

func GetFirstInterfaceConfigIPv4(interfaceConfigs []nephiov1alpha1.InterfaceConfig, interfaceName string) (string, error)

func GetInterfaceConfigs

func GetInterfaceConfigs(interfaceConfigs []nephiov1alpha1.InterfaceConfig, interfaceName string) []nephiov1alpha1.InterfaceConfig

func ValidateNetworkAttachmentDefinitions

func ValidateNetworkAttachmentDefinitions(ctx context.Context, c client.Client, log logr.Logger, kind string, deployment *appsv1.Deployment) bool

Gets a Deployment resource and checks that the NetworkAttachmentDefinitions specified in its `k8s.v1.cni.cncf.io/networks` annotation exist in the same namespace.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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