Documentation ¶
Index ¶
- func ApplyProfile(profile *performancev2.PerformanceProfile) error
- func EnforceNodeLabels()
- func PostUpdateSync(ctx context.Context, profile *performancev2.PerformanceProfile)
- func UpdateIsolatedReservedCpus(isolatedSet performancev2.CPUSet, reservedSet performancev2.CPUSet) error
- func WaitForTuningUpdated(ctx context.Context, profile *performancev2.PerformanceProfile)
- func WaitForTuningUpdating(ctx context.Context, profile *performancev2.PerformanceProfile)
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.