openstacknetattachment

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AppLabel -
	AppLabel = "osp-openstacknetattach"

	// FinalizerName -
	FinalizerName = "openstacknetattachment"

	// AttachReference - name of the NetAttachment used in osnet to reference the attachment
	AttachReference = "ooo-attach-reference"

	// AttachType -
	AttachType = "ooo-attach-type"

	// BridgeLabel -
	BridgeLabel = "ooo-bridge"

	// CniConfigTemplate -
	CniConfigTemplate = `` /* 377-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func GetOpenStackNetAttachmentBridgeName

func GetOpenStackNetAttachmentBridgeName(
	ctx context.Context,
	r common.ReconcilerCommon,
	namespace string,
	attachReference string,
) (string, error)

GetOpenStackNetAttachmentBridgeName - Return name of the Bridge configured by the OpenStackNetAttachment

func GetOpenStackNetAttachmentType

func GetOpenStackNetAttachmentType(
	ctx context.Context,
	r common.ReconcilerCommon,
	namespace string,
	attachReference string,
) (*ospdirectorv1beta1.AttachType, error)

GetOpenStackNetAttachmentType - Return type of OpenStackNetAttachment, either bridge or sriov

func GetOpenStackNetAttachmentWithAttachReference

func GetOpenStackNetAttachmentWithAttachReference(
	ctx context.Context,
	r common.ReconcilerCommon,
	namespace string,
	attachReference string,
) (*ospdirectorv1beta1.OpenStackNetAttachment, error)

GetOpenStackNetAttachmentWithAttachReference - Return OpenStackNetAttachment for the reference name use in the osnet config

func GetOpenStackNetAttachmentWithLabel

func GetOpenStackNetAttachmentWithLabel(
	ctx context.Context,
	r common.ReconcilerCommon,
	namespace string,
	labelSelector map[string]string,
) (*ospdirectorv1beta1.OpenStackNetAttachment, error)

GetOpenStackNetAttachmentWithLabel - Return OpenStackNet with labels

func GetOpenStackNetAttachmentsWithLabel

func GetOpenStackNetAttachmentsWithLabel(
	ctx context.Context,
	r common.ReconcilerCommon,
	namespace string,
	labelSelector map[string]string,
) (*ospdirectorv1beta1.OpenStackNetAttachmentList, error)

GetOpenStackNetAttachmentsWithLabel - Return a list of all OpenStackNetAttachmentss in the namespace that have (optional) labels

func GetSriovNetworkNodePoliciesWithLabel

func GetSriovNetworkNodePoliciesWithLabel(
	ctx context.Context,
	r common.ReconcilerCommon,
	labelSelector map[string]string,
	namespace string,
) (map[string]sriovnetworkv1.SriovNetworkNodePolicy, error)

GetSriovNetworkNodePoliciesWithLabel - Returns list of sriovnetworknodepolicies labeled with labelSelector

func GetSriovNetworksWithLabel

func GetSriovNetworksWithLabel(
	ctx context.Context,

	r common.ReconcilerCommon,
	labelSelector map[string]string,
	namespace string,
) (map[string]sriovnetworkv1.SriovNetwork, error)

GetSriovNetworksWithLabel - Returns list of sriovnetworks labeled with labelSelector

Types

This section is empty.

Jump to

Keyboard shortcuts

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