profilesupdate

package
v0.0.0-...-1cffedb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyProfile

func ApplyProfile(profile *performancev2.PerformanceProfile) error

ApplyProfile applies the new profile and returns true if the changes were applied indeed and false otherwise

func EnforceNodeLabels

func EnforceNodeLabels()

EnforceNodeLabels make sure to enforce that one of the worker nodes has the labels that are needed for the test to run properly. This is useful on a Hypershift platform when the nodes get recreated after tuning updates and the labels (besides the default one) are gone.

func PostUpdateSync

func PostUpdateSync(ctx context.Context, profile *performancev2.PerformanceProfile)

PostUpdateSync is performing operations that are needed after PerformanceProfile updated. It must be called after WaitForTuningUpdating

func UpdateIsolatedReservedCpus

func UpdateIsolatedReservedCpus(isolatedSet performancev2.CPUSet, reservedSet performancev2.CPUSet) error

UpdateIsolatedReservedCpus Updates the current performance profile with new sets of isolated and reserved cpus, and returns true if the update was successfull and false otherwise

func WaitForTuningUpdated

func WaitForTuningUpdated(ctx context.Context, profile *performancev2.PerformanceProfile)

WaitForTuningUpdated is waiting for the cluster to come back from tuning configuration done by PerformanceProfile application. This is a lower lever function and should not be used directly. Use PostUpdateSync instead

func WaitForTuningUpdating

func WaitForTuningUpdating(ctx context.Context, profile *performancev2.PerformanceProfile)

WaitForTuningUpdating is waiting for the cluster to transition into tuning configuration update state done by PerformanceProfile application.

Types

This section is empty.

Jump to

Keyboard shortcuts

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