Documentation ¶
Index ¶
- func Delete(name string) error
- func GetByLabel(key, value string) ([]machineconfigv1.MachineConfigPool, error)
- func GetByName(name string) (*machineconfigv1.MachineConfigPool, error)
- func GetByNameNoRetry(name string) (*machineconfigv1.MachineConfigPool, error)
- func GetByProfile(performanceProfile *performancev2.PerformanceProfile) (string, error)
- func GetConditionReason(mcpName string, conditionType machineconfigv1.MachineConfigPoolConditionType) string
- func GetConditionStatus(mcpName string, conditionType machineconfigv1.MachineConfigPoolConditionType) corev1.ConditionStatus
- func New(mcpName string, nodeSelector map[string]string) *machineconfigv1.MachineConfigPool
- func WaitForCondition(mcpName string, conditionType machineconfigv1.MachineConfigPoolConditionType, ...)
- func WaitForProfilePickedUp(mcpName string, profile *performancev2.PerformanceProfile)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.