<p>It looks like I might need to traverse the <code>v1.Node-&gt;NodeStatus-&gt;Conditions[]</code> slice and sort by transition time and find if the most recent timed condition is <code>NodeConditionType == "Ready"</code>. I am wondering if there is a better way or if that approach is flawed?</p>

Philip Lombardi
<p>You are looking in the right place, but Conditions may not work exactly the way your question implies they do. Conditions shouldn't be seen as time-based events, but rather current states. To quote the <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties" rel="noreferrer">API conventions documentation</a>:</p>

<blockquote>
  <p>Conditions represent the latest available observations of an object's state. </p>
</blockquote>

<p>As such, it isn't necessary to look for the latest Condition, but rather <em>the</em> condition for the type of state that you are interested in observing. There should only be one whose <code>NodeConditionType</code> is <code>Ready</code>, but you will need to check the <code>.Status</code> field on <code>NodeCondition</code> to confirm if its value is <code>True</code>, <code>False</code> or <code>Unknown</code>.</p>
