File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -381,6 +381,9 @@ def get_command_and_args(pod, container_name):
381381 "lastState" : status ["lastState" ],
382382 "ready" : status ["ready" ],
383383 "restartCount" : status ["restartCount" ],
384+ "status" : pod ["status" ].get ("phase" , "" ),
385+ "reason" : pod ["status" ].get ("reason" , "" ),
386+ "message" : pod ["status" ].get ("message" , "" )
384387 })
385388 except KubeHTTPException as e :
386389 if e .response .status_code != 404 :
@@ -455,6 +458,7 @@ def describe_deployment(self, deployment_name):
455458 "readiness_probe" : container .get ("readinessProbe" , {}),
456459 "limits" : limits ,
457460 "volume_mounts" : container .get ("volumeMounts" , []),
461+ "node_selector" : deployment ["spec" ]["template" ]['spec' ].get ("nodeSelector" , {}) # noqa
458462 })
459463 except KubeHTTPException as e :
460464 if e .response .status_code != 404 :
You can’t perform that action at this time.
0 commit comments