Documentation
¶
Index ¶
- func AsNode(info svcapi.NodeInfo) *corev1.Node
- func AsNodeInfo(node corev1.Node, csiDriverVolumeMaximums map[string]int32) svcapi.NodeInfo
- func BuildReadyConditions(transitionTime time.Time) []corev1.NodeCondition
- func ComputeAllocatable(capacity, systemReserved, kubeReserved corev1.ResourceList) corev1.ResourceList
- func CreateNodeLabels(simulationName string, nodePool *sacorev1alpha1.NodePool, ...) map[string]string
- func GetInstanceType(node *corev1.Node) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsNodeInfo ¶
AsNodeInfo converts a corev1.Node into a svcapi.NodeInfo object. It additionally takes in csiDriverVolumeMaximums which is a map of CSI driver names to the maximum number of volumes managed by the driver on the node.
func BuildReadyConditions ¶
func BuildReadyConditions(transitionTime time.Time) []corev1.NodeCondition
BuildReadyConditions builds a slice of NodeCondition for a ready node with the given transition time.
func ComputeAllocatable ¶
func ComputeAllocatable(capacity, systemReserved, kubeReserved corev1.ResourceList) corev1.ResourceList
ComputeAllocatable computes the allocatable resources of a node given its capacity, system reserved and kube reserved resources.
func CreateNodeLabels ¶
func CreateNodeLabels(simulationName string, nodePool *sacorev1alpha1.NodePool, nodeTemplate *sacorev1alpha1.NodeTemplate, az string, groupRunPassNum uint32, nodeName string) map[string]string
CreateNodeLabels creates the labels for a simulated node.
func GetInstanceType ¶
GetInstanceType returns the Instance Type of a node from the label present on it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.