Commit cc210a45 authored by xuzhonghu's avatar xuzhonghu

fix toleration validation invalid error

parent d7c40cf6
...@@ -2749,7 +2749,7 @@ func validateTaintEffect(effect *core.TaintEffect, allowEmpty bool, fldPath *fie ...@@ -2749,7 +2749,7 @@ func validateTaintEffect(effect *core.TaintEffect, allowEmpty bool, fldPath *fie
// TODO: Uncomment this block when implement TaintEffectNoScheduleNoAdmit. // TODO: Uncomment this block when implement TaintEffectNoScheduleNoAdmit.
// string(core.TaintEffectNoScheduleNoAdmit), // string(core.TaintEffectNoScheduleNoAdmit),
} }
allErrors = append(allErrors, field.NotSupported(fldPath, effect, validValues)) allErrors = append(allErrors, field.NotSupported(fldPath, *effect, validValues))
} }
return allErrors return allErrors
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment