util

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractKeyValueFromTaint

func ExtractKeyValueFromTaint(taints []corev1.Taint) map[string]string

func GenerateMachineNodePoolName

func GenerateMachineNodePoolName(machineGroupName string) string

func GenerateReservationResourceLabel

func GenerateReservationResourceLabel(machineGroup, machineType string) map[string]string

func GenerateReservationResourceName

func GenerateReservationResourceName(machineGroup, machineType string) string

func GenerateService

func GenerateService(machineType, machineGroup string, svc *corev1.Service)

func GenerateSleeperContainer

func GenerateSleeperContainer() corev1.Container

func GenerateStatefulSet

func GenerateStatefulSet(machineType *imperatorv1alpha1.MachineType, machineGroup string, replica int32, sts *appsv1.StatefulSet)

func GetMachineGroup

func GetMachineGroup(machineLabels map[string]string) string

func GetMachineTypeUsage

func GetMachineTypeUsage(availableMachine []imperatorv1alpha1.AvailableMachineCondition, machineTypeName string) *imperatorv1alpha1.UsageCondition

func GetPodConditionTypeMap

func GetPodConditionTypeMap(podConditions []corev1.PodCondition) map[corev1.PodConditionType]corev1.PodCondition

func GetScheduleMachineTypeKeys

func GetScheduleMachineTypeKeys(machineTypes []imperatorv1alpha1.NodePoolMachineType) []string

func GetTaintKeyIndex

func GetTaintKeyIndex(taints []corev1.Taint, key string) *int

Types

This section is empty.

Jump to

Keyboard shortcuts

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