mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Show pod terminating status (#259)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
bfc58edc46
commit
66e977ac14
2 files changed
+5
-1
No files matched your search
@@ -298,6 +298,9 @@ export class Pod extends WorkloadKubeObject {
|
||||
|
||||
// Returns pod phase or container error if occured
|
||||
getStatusMessage() {
|
||||
if (this.getReason() === PodStatus.EVICTED) return "Evicted";
|
||||
if (this.getStatus() === PodStatus.RUNNING && this.metadata.deletionTimestamp) return "Terminating";
|
||||
|
||||
let message = "";
|
||||
const statuses = this.getContainerStatuses(false); // not including initContainers
|
||||
if (statuses.length) {
|
||||
@@ -313,7 +316,6 @@ export class Pod extends WorkloadKubeObject {
|
||||
}
|
||||
})
|
||||
}
|
||||
if (this.getReason() === PodStatus.EVICTED) return "Evicted";
|
||||
if (message) return message;
|
||||
return this.getStatusPhase();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user