code: func (n *NodeInfo) SetNode(node *v1.Node) error {
  	n.node = node
  
  	n.allocatableResource = NewResource(node.Status.Allocatable)
  
  	n.taints = node.Spec.Taints
  	for i := range node.Status.Conditions {
  		cond := &node.Status.Conditions[i]
  		switch cond.Type {
  		case v1.NodeMemoryPressure:
  			n.memoryPressureCondition = cond.Status
  		case v1.NodeDiskPressure:
  			n.diskPressureCondition = cond.Status
  		case v1.NodePIDPressure:
  			n.pidPressureCondition = cond.Status
  		default:
  			// We ignore other conditions.
  		}
  	}
  	n.TransientInfo = NewTransientSchedulerInfo()
  	n.generation = nextGeneration()
  	return nil
  }
docs: // SetNode sets the overall node information.