Documentation ¶
Index ¶
- func All() (*performancev2.PerformanceProfileList, error)
- func Delete(name string) error
- func GetByNodeLabels(nodeLabels map[string]string) (*performancev2.PerformanceProfile, error)
- func GetCondition(nodeLabels map[string]string, conditionType v1.ConditionType) *v1.Condition
- func GetConditionMessage(nodeLabels map[string]string, conditionType v1.ConditionType) string
- func GetConditionWithStatus(nodeLabels map[string]string, conditionType v1.ConditionType) *v1.Condition
- func UpdateWithRetry(profile *performancev2.PerformanceProfile)
- func WaitForCondition(nodeLabels map[string]string, conditionType v1.ConditionType, ...)
- func WaitForDeletion(profileKey types.NamespacedName, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
func All() (*performancev2.PerformanceProfileList, error)
All gets all the exiting profiles in the cluster
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 ¶
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 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.
Click to show internal directories.
Click to hide internal directories.