Skip to content

Commit 178a4c6

Browse files
authored
chore(controller): add node selector status field
1 parent 3d21898 commit 178a4c6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rootfs/api/models/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)