mcps

package
v0.0.41101 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 20 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 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