package
0.3.1
Repository: https://github.com/dana-team/hns-nqs-plugin.git
Documentation: pkg.go.dev

# Functions

CalculateNodeGroup calculates the resource list for a node group based on the provided nodes, NodeQuotaConfig, and node group name.
CalculateSecondaryNodeGroup calculates the resource list for a secondary node group based on the provided nodegroup and NodeQuotaConfig.
DeleteExpiredReservedResources removes the expired reserved resources from the NodeQuotaConfig.
GetRootQuota retrieves the resource quota for the root namespace with the specified name.
GetSubnamespaceFromList retrieves the subnamespace with the specified name from the given subnamespace list.
MergeTwoResourceList merges two resource lists into a single resource list.
ProcessSecondaryRoot processes a secondary root node group and updates the corresponding Subnamespace object and add reserved resources to the config if needed.
UpdateProcessedSecondaryRoots updates the secondaryRoots in the cluster with the new quantity of resources.
UpdateRootSubnamespace updates the resourceQuota of the rootSubnamespace with the new quantity of resources.