Much better
This commit is contained in:
@@ -1243,8 +1243,7 @@ def all_kube_system_pods_running():
|
|||||||
status = pod['status']['phase']
|
status = pod['status']['phase']
|
||||||
# Evicted nodes should re-spawn
|
# Evicted nodes should re-spawn
|
||||||
if status != 'Running' and \
|
if status != 'Running' and \
|
||||||
('reason' in pod['status'].keys()
|
pod['status'].get('reason', '') != 'Evicted':
|
||||||
and pod['status']['reason'] != 'Evicted'):
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
Reference in New Issue
Block a user