mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Use updateKubeletConfig helper in rollback tests
Address review feedback to use the standard updateKubeletConfig helper instead of manual WriteKubeletConfigFile + restartKubelet + waitForKubeletToStart.
This commit is contained in:
parent
85d3992ac1
commit
7bef6a3ab1
1 changed files with 2 additions and 6 deletions
|
|
@ -610,9 +610,7 @@ var _ = SIGDescribe("MemoryQoS", framework.WithSerial(), func() {
|
|||
}
|
||||
newCfg.FeatureGates["MemoryQoS"] = false
|
||||
newCfg.MemoryReservationPolicy = kubeletconfig.NoneMemoryReservationPolicy
|
||||
framework.ExpectNoError(e2enodekubelet.WriteKubeletConfigFile(newCfg))
|
||||
restartKubelet(ctx, true)
|
||||
waitForKubeletToStart(ctx, f)
|
||||
updateKubeletConfig(ctx, f, newCfg, true)
|
||||
|
||||
// Stale QoS-class cgroup memory.low is cleared at kubelet startup.
|
||||
var burstableCgroupPath string
|
||||
|
|
@ -675,9 +673,7 @@ var _ = SIGDescribe("MemoryQoS", framework.WithSerial(), func() {
|
|||
}
|
||||
newCfg.FeatureGates["MemoryQoS"] = false
|
||||
newCfg.MemoryReservationPolicy = kubeletconfig.NoneMemoryReservationPolicy
|
||||
framework.ExpectNoError(e2enodekubelet.WriteKubeletConfigFile(newCfg))
|
||||
restartKubelet(ctx, true)
|
||||
waitForKubeletToStart(ctx, f)
|
||||
updateKubeletConfig(ctx, f, newCfg, true)
|
||||
|
||||
ginkgo.By("Verifying memory.low was cleared to 0 at startup")
|
||||
gomega.Eventually(ctx, func() int64 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue