// ReadyCondition returns a Setter that updates the v1.NodeReady condition on the node.
funcReadyCondition(
nowFuncfunc()time.Time,// typically Kubelet.clock.Now
runtimeErrorsFuncfunc()[]string,// typically Kubelet.runtimeState.runtimeErrors
networkErrorsFuncfunc()[]string,// typically Kubelet.runtimeState.networkErrors
runtimeErrorsFuncfunc()error,// typically Kubelet.runtimeState.runtimeErrors
networkErrorsFuncfunc()error,// typically Kubelet.runtimeState.networkErrors
appArmorValidateHostFuncfunc()error,// typically Kubelet.appArmorValidator.ValidateHost, might be nil depending on whether there was an appArmorValidator
cmStatusFuncfunc()cm.Status,// typically Kubelet.containerManager.Status
recordEventFuncfunc(eventType,eventstring),// typically Kubelet.recordNodeStatusEvent