Double check before setKubeletConfiguration

pull/6/head
Penghao Cen 2018-01-03 16:58:12 +08:00
parent c6a0e4f7be
commit 6cf819165f
1 changed files with 4 additions and 0 deletions

View File

@ -107,6 +107,10 @@ func tempSetCurrentKubeletConfig(f *framework.Framework, updateFunction func(ini
framework.ExpectNoError(err)
newCfg := oldCfg.DeepCopy()
updateFunction(newCfg)
if reflect.DeepEqual(*newCfg, *oldCfg) {
return
}
framework.ExpectNoError(setKubeletConfiguration(f, newCfg))
})
AfterEach(func() {