Documentation ¶
Index ¶
- Variables
- func AccumulateNames(nrts []nrtv1alpha1.NodeResourceTopology) sets.String
- func AvailableFromZone(z nrtv1alpha1.Zone) corev1.ResourceList
- func CheckEqualAvailableResources(nrtInitial, nrtUpdated nrtv1alpha1.NodeResourceTopology) (bool, error)
- func CheckNodeConsumedResourcesAtLeast(nrtInitial, nrtUpdated nrtv1alpha1.NodeResourceTopology, ...) (string, error)
- func CheckZoneConsumedResourcesAtLeast(nrtInitial, nrtUpdated nrtv1alpha1.NodeResourceTopology, ...) (string, error)
- func FilterAnyNodeMatchingResources(nrts []nrtv1alpha1.NodeResourceTopology, requests corev1.ResourceList) []nrtv1alpha1.NodeResourceTopology
- func FilterAnyZoneMatchingResources(nrts []nrtv1alpha1.NodeResourceTopology, requests corev1.ResourceList) []nrtv1alpha1.NodeResourceTopology
- func FilterByPolicies(list []nrtv1alpha1.NodeResourceTopology, ...) []nrtv1alpha1.NodeResourceTopology
- func FilterTopologyManagerPolicy(nrts []nrtv1alpha1.NodeResourceTopology, ...) []nrtv1alpha1.NodeResourceTopology
- func FilterZoneCountEqual(nrts []nrtv1alpha1.NodeResourceTopology, count int) []nrtv1alpha1.NodeResourceTopology
- func FindFromList(nrts []nrtv1alpha1.NodeResourceTopology, name string) (*nrtv1alpha1.NodeResourceTopology, error)
- func FindResourceAllocatableByName(resources []nrtv1alpha1.ResourceInfo, name string) (resource.Quantity, bool)
- func FindResourceAvailableByName(resources []nrtv1alpha1.ResourceInfo, name string) (resource.Quantity, bool)
- func GetMaxAllocatableResourceNumaLevel(nrtInfo nrtv1alpha1.NodeResourceTopology, resName corev1.ResourceName) resource.Quantity
- func GetUpdated(cli client.Client, ref nrtv1alpha1.NodeResourceTopologyList, ...) (nrtv1alpha1.NodeResourceTopologyList, error)
- func GetZoneIDFromName(zoneName string) (int, error)
- func ResourceInfoListToResourceList(ri nrtv1alpha1.ResourceInfoList) corev1.ResourceList
- func SaturateNodeUntilLeft(nrtInfo nrtv1alpha1.NodeResourceTopology, requiredRes corev1.ResourceList) (map[string]corev1.ResourceList, error)
- func SaturateZoneUntilLeft(zone nrtv1alpha1.Zone, requiredRes corev1.ResourceList) (corev1.ResourceList, error)
- func ZoneResourcesMatchesRequest(resources []nrtv1alpha1.ResourceInfo, requests corev1.ResourceList) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotEnoughResources = errors.New("nrt: Not enough resources")
ErrNotEnoughResources means a NUMA zone or a node has not enough resouces to reserve
Functions ¶
func AccumulateNames ¶
func AccumulateNames(nrts []nrtv1alpha1.NodeResourceTopology) sets.String
func AvailableFromZone ¶
func AvailableFromZone(z nrtv1alpha1.Zone) corev1.ResourceList
AvailableFromZone returns a ResourceList of all available resources under the zone
func CheckEqualAvailableResources ¶
func CheckEqualAvailableResources(nrtInitial, nrtUpdated nrtv1alpha1.NodeResourceTopology) (bool, error)
func CheckNodeConsumedResourcesAtLeast ¶
func CheckNodeConsumedResourcesAtLeast(nrtInitial, nrtUpdated nrtv1alpha1.NodeResourceTopology, required corev1.ResourceList, podQoS corev1.PodQOSClass) (string, error)
func CheckZoneConsumedResourcesAtLeast ¶
func CheckZoneConsumedResourcesAtLeast(nrtInitial, nrtUpdated nrtv1alpha1.NodeResourceTopology, required corev1.ResourceList, podQoS corev1.PodQOSClass) (string, error)
func FilterAnyNodeMatchingResources ¶
func FilterAnyNodeMatchingResources(nrts []nrtv1alpha1.NodeResourceTopology, requests corev1.ResourceList) []nrtv1alpha1.NodeResourceTopology
func FilterAnyZoneMatchingResources ¶
func FilterAnyZoneMatchingResources(nrts []nrtv1alpha1.NodeResourceTopology, requests corev1.ResourceList) []nrtv1alpha1.NodeResourceTopology
func FilterByPolicies ¶
func FilterByPolicies(list []nrtv1alpha1.NodeResourceTopology, policies []nrtv1alpha1.TopologyManagerPolicy) []nrtv1alpha1.NodeResourceTopology
func FilterTopologyManagerPolicy ¶
func FilterTopologyManagerPolicy(nrts []nrtv1alpha1.NodeResourceTopology, tmPolicy nrtv1alpha1.TopologyManagerPolicy) []nrtv1alpha1.NodeResourceTopology
func FilterZoneCountEqual ¶
func FilterZoneCountEqual(nrts []nrtv1alpha1.NodeResourceTopology, count int) []nrtv1alpha1.NodeResourceTopology
func FindFromList ¶
func FindFromList(nrts []nrtv1alpha1.NodeResourceTopology, name string) (*nrtv1alpha1.NodeResourceTopology, error)
func FindResourceAllocatableByName ¶
func FindResourceAllocatableByName(resources []nrtv1alpha1.ResourceInfo, name string) (resource.Quantity, bool)
func FindResourceAvailableByName ¶
func FindResourceAvailableByName(resources []nrtv1alpha1.ResourceInfo, name string) (resource.Quantity, bool)
func GetMaxAllocatableResourceNumaLevel ¶
func GetMaxAllocatableResourceNumaLevel(nrtInfo nrtv1alpha1.NodeResourceTopology, resName corev1.ResourceName) resource.Quantity
func GetUpdated ¶
func GetUpdated(cli client.Client, ref nrtv1alpha1.NodeResourceTopologyList, timeout time.Duration) (nrtv1alpha1.NodeResourceTopologyList, error)
func GetZoneIDFromName ¶
func ResourceInfoListToResourceList ¶
func ResourceInfoListToResourceList(ri nrtv1alpha1.ResourceInfoList) corev1.ResourceList
func SaturateNodeUntilLeft ¶
func SaturateNodeUntilLeft(nrtInfo nrtv1alpha1.NodeResourceTopology, requiredRes corev1.ResourceList) (map[string]corev1.ResourceList, error)
func SaturateZoneUntilLeft ¶
func SaturateZoneUntilLeft(zone nrtv1alpha1.Zone, requiredRes corev1.ResourceList) (corev1.ResourceList, error)
func ZoneResourcesMatchesRequest ¶
func ZoneResourcesMatchesRequest(resources []nrtv1alpha1.ResourceInfo, requests corev1.ResourceList) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.