Skip to content

Commit

Permalink
chore: variant-level now can use doc comment (#33)
Browse files Browse the repository at this point in the history
Since kube fix it in kube-rs/kube#1051, we can use doc comment on variants
  • Loading branch information
zen-xu committed Nov 2, 2022
1 parent fae3fd9 commit bff78da
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crates/habitat-api/src/batch.rs
Expand Up @@ -62,20 +62,20 @@ pub struct JobStatus {

#[derive(Deserialize, Serialize, Clone, Debug, JsonSchema)]
pub enum JobStatusPhase {
// Pending means the job has been accepted by the system, but one or more of pods has not been
// scheduled.
/// Pending means the job has been accepted by the system, but one or more of pods has not been
/// scheduled.
Pending,
// Ready means the scheduler approves the controller to create pods.
/// Ready means the scheduler approves the controller to create pods.
Ready,
// Running means that if the job contains any `Running` pod, its status will be `Running`.
/// Running means that if the job contains any `Running` pod, its status will be `Running`.
Running,
// Terminating means that the job is terminated, and waiting for releasing pods.
/// Terminating means that the job is terminated, and waiting for releasing pods.
Terminating,
// Succeeded means that the job is completed with success.
/// Succeeded means that the job is completed with success.
Succeeded,
// Succeeded means that the job is completed with failure.
/// Succeeded means that the job is completed with failure.
Failed,
// Terminated means that the job is completed with unexpected.
/// Terminated means that the job is completed with unexpected.
Terminated,
}

Expand Down

0 comments on commit bff78da

Please sign in to comment.