profiles

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

All gets all the exiting profiles in the cluster

func Delete

func Delete(name string) error

Delete delete the existing profile by name

func GetByNodeLabels

func GetByNodeLabels(nodeLabels map[string]string) (*performancev2.PerformanceProfile, error)

GetByNodeLabels gets the performance profile that must have node selector equals to passed node labels

func GetCondition

func GetCondition(nodeLabels map[string]string, conditionType v1.ConditionType) *v1.Condition

GetCondition the performance profile condition for the given type

func GetConditionMessage

func GetConditionMessage(nodeLabels map[string]string, conditionType v1.ConditionType) string

GetConditionMessage gets the performance profile message for the given type

func GetConditionWithStatus

func GetConditionWithStatus(nodeLabels map[string]string, conditionType v1.ConditionType) *v1.Condition

func UpdateWithRetry

func UpdateWithRetry(profile *performancev2.PerformanceProfile)

func WaitForCondition

func WaitForCondition(nodeLabels map[string]string, conditionType v1.ConditionType, conditionStatus corev1.ConditionStatus)

func WaitForDeletion

func WaitForDeletion(profileKey types.NamespacedName, timeout time.Duration) error

WaitForDeletion waits until the pod will be removed from the cluster

Types

This section is empty.

Jump to

Keyboard shortcuts

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