mcps

package
v0.0.0-...-d55e5f6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(name string) error

func GetByLabel

func GetByLabel(key, value string) ([]machineconfigv1.MachineConfigPool, error)

GetByLabel returns all MCPs with the specified label

func GetByName

func GetByName(name string) (*machineconfigv1.MachineConfigPool, error)

GetByName returns the MCP with the specified name

func GetByNameNoRetry

func GetByNameNoRetry(name string) (*machineconfigv1.MachineConfigPool, error)

GetByNameNoRetry returns the MCP with the specified name without retrying to poke the api server

func GetByProfile

func GetByProfile(performanceProfile *performancev2.PerformanceProfile) (string, error)

GetByProfile returns the MCP by a given performance profile

func GetConditionReason

func GetConditionReason(mcpName string, conditionType machineconfigv1.MachineConfigPoolConditionType) string

GetConditionReason return the reason of the given MCP

func GetConditionStatus

func GetConditionStatus(mcpName string, conditionType machineconfigv1.MachineConfigPoolConditionType) corev1.ConditionStatus

GetConditionStatus return the condition status of the given MCP and condition type

func New

func New(mcpName string, nodeSelector map[string]string) *machineconfigv1.MachineConfigPool

New creates a new MCP with the given name and node selector

func WaitForCondition

func WaitForCondition(mcpName string, conditionType machineconfigv1.MachineConfigPoolConditionType, conditionStatus corev1.ConditionStatus)

WaitForCondition waits for the MCP with given name having a condition of given type with given status

func WaitForConditionFunc

func WaitForConditionFunc(mcpName string, conditionType machineconfigv1.MachineConfigPoolConditionType, conditionStatus corev1.ConditionStatus, mcpCondGetter func(mcpName string, conditionType machineconfigv1.MachineConfigPoolConditionType) corev1.ConditionStatus)

WaitForCondition waits for the MCP with given name having a condition of given type with given status using the given helper function

func WaitForDeletion

func WaitForDeletion(ctx context.Context, mcpKey types.NamespacedName, timeout time.Duration) error

WaitForDeletion waits until the pod will be removed from the cluster

func WaitForProfilePickedUp

func WaitForProfilePickedUp(mcpName string, profile *performancev2.PerformanceProfile)

WaitForProfilePickedUp waits for the MCP with given name containing the MC created for the PerformanceProfile with the given name

Types

This section is empty.

Jump to

Keyboard shortcuts

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