<p>I am trying to patch, clear Node conditions in OpenShift and/or Kubernetes cluster on a worker node. Patch isn't working, trying even workarounds, maybe update the key in etcd.</p>
<p>Main problem that i created new node conditions and then i removed them but they are not removed from list although they are no longer there or being updated by the controller.</p>
<pre><code>$ oc describe node node1.example.com

Conditions:                 
  Type             Status  LastHeartbeatTime                 LastTransitionTime                Reason                       Message
  ----             ------  -----------------                 ------------------                ------                       -------
  ExampleToRemove        False   Wed, 13 Feb 2019 15:09:42 -0500   Wed, 13 Feb 2019 11:05:57 -0500   KubeletHasSufficientDisk     kubelet has sufficient disk space available
  MemoryPressure   False   Wed, 13 Feb 2019 15:09:42 -0500   Wed, 13 Feb 2019 11:05:57 -0500   KubeletHasSufficientMemory   kubelet has sufficient memory available
  DiskPressure     False   Wed, 13 Feb 2019 15:09:42 -0500   Wed, 13 Feb 2019 11:05:57 -0500   KubeletHasNoDiskPressure     kubelet has no disk pressure
  PIDPressure      False   Wed, 13 Feb 2019 15:09:42 -0500   Wed, 13 Feb 2019 11:05:57 -0500   KubeletHasSufficientPID      kubelet has sufficient PID available
  Ready            True    Wed, 13 Feb 2019 15:09:42 -0500
</code></pre>

Sam
<p>Posting answer from comment as Community Wiki.</p>
<p>I found the fix, you can edit whatever you want in the node description by updating the etcd key <code>/kubernetes.io/minions/&lt;node-name&gt;</code></p>
<p><strong>Edit:</strong>
Finally I found a way to patch and update the Node condition type status, add new or even delete</p>
<p>Example:</p>
<pre><code>curl -k -H &quot;Authorization: Bearer $TOKEN&quot; -H &quot;Content-Type: application/json-patch+json&quot; -X PATCH https://APISERVER:6443/api/v1/nodes/NAME-OF-NODE-Update-Condition/status --data '[{ &quot;op&quot;: &quot;remove&quot;, &quot;path&quot;: &quot;/status/conditions/2&quot;}]'
</code></pre>
<p>Note: each condition has an index number, so try to know what is the index number and then target it in /status/condition/</p>
