mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Display a pod as terminating even if it isn't running (#2575)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
04d3cd5b14
commit
9ed395ea80
@ -342,7 +342,7 @@ export class Pod extends WorkloadKubeObject {
|
|||||||
// Returns pod phase or container error if occurred
|
// Returns pod phase or container error if occurred
|
||||||
getStatusMessage() {
|
getStatusMessage() {
|
||||||
if (this.getReason() === PodStatus.EVICTED) return "Evicted";
|
if (this.getReason() === PodStatus.EVICTED) return "Evicted";
|
||||||
if (this.getStatus() === PodStatus.RUNNING && this.metadata.deletionTimestamp) return "Terminating";
|
if (this.metadata.deletionTimestamp) return "Terminating";
|
||||||
|
|
||||||
const statuses = this.getContainerStatuses(false); // not including initContainers
|
const statuses = this.getContainerStatuses(false); // not including initContainers
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user