Skip to content

Commit

Permalink
Merge pull request openshift-kni#949 from shajmakh/chry-pk-nto-394-410
Browse files Browse the repository at this point in the history
e2e: stabilize PAO update test
  • Loading branch information
openshift-merge-robot committed Sep 19, 2022
2 parents e85efa4 + 7f74cbb commit a0b68a4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions functests/2_performance_update/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,19 @@ var _ = Describe("[ref_id: 45487][performance]additional kubelet arguments", fun
})
Context("When setting cpu manager related parameters", func() {
It("[test_id:45493]Should not override performance-addon-operator values", func() {
cpuManagerAnnotation := map[string]string{
profile.Annotations = map[string]string{
"kubeletconfig.experimental": "{\"cpuManagerPolicy\":\"static\",\"cpuManagerReconcilePeriod\":\"5s\"}",
}
profile.SetAnnotations(cpuManagerAnnotation)
annotations, err := json.Marshal(profile.Annotations)
Expect(err).ToNot(HaveOccurred())

By("Applying changes in performance profile and waiting until mcp will start updating")
profiles.UpdateWithRetry(profile)
Expect(testclient.Client.Patch(context.TODO(), profile,
client.RawPatch(
types.JSONPatchType,
[]byte(fmt.Sprintf(`[{ "op": "replace", "path": "/metadata/annotations", "value": %s }]`, annotations)),
),
)).ToNot(HaveOccurred())
mcps.WaitForCondition(performanceMCP, machineconfigv1.MachineConfigPoolUpdating, corev1.ConditionTrue)
By("Waiting when mcp finishes updates")
mcps.WaitForCondition(performanceMCP, machineconfigv1.MachineConfigPoolUpdated, corev1.ConditionTrue)
Expand Down

0 comments on commit a0b68a4

Please sign in to comment.