You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test apply DRA management annotation and checks that NTO
disables all managers.
After that, it reverts changes in the profile and checks that NTO
applies the managers configuration back to their original configuration.
Signed-off-by: Talor Itzhak <[email protected]>
Expect(kubeletConfig.TopologyManagerPolicy).To(Equal(expectedTopologyPolicy), "TopologyManagerPolicy should be %q after revert, got %q", expectedTopologyPolicy, kubeletConfig.TopologyManagerPolicy)
112
+
113
+
By("Verifying Memory manager policy is restored")
114
+
// Memory manager is set to Static only for restricted or single-numa-node topology policies
Expect(kubeletConfig.MemoryManagerPolicy).To(Equal("Static"), "MemoryManagerPolicy should be 'Static' after revert, got %q", kubeletConfig.MemoryManagerPolicy)
118
+
}
119
+
})
120
+
})
121
+
122
+
It("should disable CPU, Memory, and Topology managers when DRA annotation is set", func() {
Expect(kubeletConfig.CPUManagerPolicy).To(Equal("none"), "CPUManagerPolicy should be 'none' when DRA is enabled, got %q", kubeletConfig.CPUManagerPolicy)
128
+
129
+
By("Verifying Topology manager policy is set to none")
130
+
Expect(kubeletConfig.TopologyManagerPolicy).To(Equal(kubeletconfigv1beta1.NoneTopologyManagerPolicy), "TopologyManagerPolicy should be 'none' when DRA is enabled, got %q", kubeletConfig.TopologyManagerPolicy)
131
+
132
+
By("Verifying Memory manager policy is set to None")
133
+
Expect(kubeletConfig.MemoryManagerPolicy).To(Equal(kubeletconfigv1beta1.NoneMemoryManagerPolicy), "MemoryManagerPolicy should be 'None' when DRA is enabled, got %q", kubeletConfig.MemoryManagerPolicy)
0 commit comments