Documentation ¶
Index ¶
- Constants
- func AddOSNetNameLowerLabels(r common.ReconcilerCommon, obj client.Object, ...) map[string]string
- func GetAllIPReservations(osNet *ospdirectorv1beta1.OpenStackNet, ...) []ospdirectorv1beta1.IPReservation
- func GetOpenStackNetWithLabel(r common.ReconcilerCommon, namespace string, labelSelector map[string]string) (*ospdirectorv1beta1.OpenStackNet, error)
- func GetOpenStackNetsBindingMap(r common.ReconcilerCommon, namespace string) (map[string]ospdirectorv1beta1.AttachType, error)
- func GetOpenStackNetsMapWithLabel(r common.ReconcilerCommon, namespace string, labelSelector map[string]string) (map[string]ospdirectorv1beta1.OpenStackNet, error)
- func GetOpenStackNetsWithLabel(r common.ReconcilerCommon, namespace string, labelSelector map[string]string) (*ospdirectorv1beta1.OpenStackNetList, error)
- func GetSriovNetworkNodePoliciesWithLabel(r common.ReconcilerCommon, labelSelector map[string]string, namespace string) (map[string]sriovnetworkv1.SriovNetworkNodePolicy, error)
- func GetSriovNetworksWithLabel(r common.ReconcilerCommon, labelSelector map[string]string, namespace string) (map[string]sriovnetworkv1.SriovNetwork, error)
Constants ¶
const ( // AppLabel - AppLabel = "osp-openstacknet" // FinalizerName - FinalizerName = "openstacknet.osp-director.openstack.org" // NetworkNameLabelSelector - NetworkNameLabelSelector = "ooo-netname" // NetworkNameLowerLabelSelector - NetworkNameLowerLabelSelector = "ooo-netname-lower" // SubNetNameLabelSelector - SubNetNameLabelSelector = "ooo-subnetname" // ControlPlaneNetworkLabelSelector - is the network a ctlplane network? ControlPlaneNetworkLabelSelector = "ooo-ctlplane-network" )
Variables ¶
This section is empty.
Functions ¶
func AddOSNetNameLowerLabels ¶ added in v1.2.0
func AddOSNetNameLowerLabels( r common.ReconcilerCommon, obj client.Object, cond *ospdirectorv1beta1.Condition, networkNameLowerNames []string, ) map[string]string
AddOSNetNameLowerLabels - add osnetcfg CR label reference which is used in the in the osnetcfg controller to watch this resource and reconcile
func GetAllIPReservations ¶ added in v1.2.0
func GetAllIPReservations( osNet *ospdirectorv1beta1.OpenStackNet, newReservations []ospdirectorv1beta1.IPReservation, staticReservations []ospdirectorv1beta1.IPReservation, ) []ospdirectorv1beta1.IPReservation
GetAllIPReservations - get all reservations from the osnet (already synamic created, static configured + just now new created)
func GetOpenStackNetWithLabel ¶ added in v1.2.0
func GetOpenStackNetWithLabel(r common.ReconcilerCommon, namespace string, labelSelector map[string]string) (*ospdirectorv1beta1.OpenStackNet, error)
GetOpenStackNetWithLabel - Return OpenStackNet with labels
func GetOpenStackNetsBindingMap ¶
func GetOpenStackNetsBindingMap(r common.ReconcilerCommon, namespace string) (map[string]ospdirectorv1beta1.AttachType, error)
GetOpenStackNetsBindingMap - Returns map of OpenStackNet name to binding type
func GetOpenStackNetsMapWithLabel ¶ added in v1.2.0
func GetOpenStackNetsMapWithLabel( r common.ReconcilerCommon, namespace string, labelSelector map[string]string, ) (map[string]ospdirectorv1beta1.OpenStackNet, error)
GetOpenStackNetsMapWithLabel - Return a map[NameLower] of all OpenStackNets in the namespace that have (optional) labels
func GetOpenStackNetsWithLabel ¶
func GetOpenStackNetsWithLabel(r common.ReconcilerCommon, namespace string, labelSelector map[string]string) (*ospdirectorv1beta1.OpenStackNetList, error)
GetOpenStackNetsWithLabel - Return a list of all OpenStackNets in the namespace that have (optional) labels
func GetSriovNetworkNodePoliciesWithLabel ¶
func GetSriovNetworkNodePoliciesWithLabel(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(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.