Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
turboFei committed Nov 17, 2023
1 parent 1eac84f commit 61ae5f7
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,16 +348,12 @@ object KubernetesApplicationOperation extends Logging {
PENDING
} else if (containerState.getRunning != null) {
RUNNING
} else if (containerState.getTerminated == null) {
UNKNOWN
} else if (containerState.getTerminated.getExitCode == 0) {
FINISHED
} else {
Option(containerState.getTerminated) match {
case Some(terminated) =>
if (terminated.getExitCode == 0) {
FINISHED
} else {
FAILED
}
case None => UNKNOWN
}
FAILED
}
}

Expand Down

0 comments on commit 61ae5f7

Please sign in to comment.