mirror of https://github.com/k3s-io/k3s
Double check before setKubeletConfiguration
parent
c6a0e4f7be
commit
6cf819165f
|
@ -107,6 +107,10 @@ func tempSetCurrentKubeletConfig(f *framework.Framework, updateFunction func(ini
|
||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
newCfg := oldCfg.DeepCopy()
|
newCfg := oldCfg.DeepCopy()
|
||||||
updateFunction(newCfg)
|
updateFunction(newCfg)
|
||||||
|
if reflect.DeepEqual(*newCfg, *oldCfg) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
framework.ExpectNoError(setKubeletConfiguration(f, newCfg))
|
framework.ExpectNoError(setKubeletConfiguration(f, newCfg))
|
||||||
})
|
})
|
||||||
AfterEach(func() {
|
AfterEach(func() {
|
||||||
|
|
Loading…
Reference in New Issue