in modules/python/clients/kubernetes_client.py [0:0]
def _is_node_untainted(self, node):
if not node.spec.taints:
return True
for taint in node.spec.taints:
if taint.key in builtin_taints_keys and taint.effect in ("NoSchedule", "NoExecute"):
logger.info(f"Node NOT Ready: '{node.metadata.name}' has taint '{taint.key}' with effect '{taint.effect}'")
return False
return True