Documentation ¶
Index ¶
- Constants
- Variables
- func CreateNetworkAttachmentDefinitionName(templateName string, suffix string) string
- func CreateNetworkAttachmentDefinitionNetworks(templateName string, ...) (string, error)
- func GetFirstInterfaceConfig(interfaceConfigs []nephiov1alpha1.InterfaceConfig, interfaceName string) (*nephiov1alpha1.InterfaceConfig, error)
- func GetFirstInterfaceConfigIPv4(interfaceConfigs []nephiov1alpha1.InterfaceConfig, interfaceName string) (string, error)
- func GetInterfaceConfigs(interfaceConfigs []nephiov1alpha1.InterfaceConfig, interfaceName string) []nephiov1alpha1.InterfaceConfig
- func ValidateNetworkAttachmentDefinitions(ctx context.Context, c client.Client, log logr.Logger, kind string, ...) bool
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 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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.