Make default waiting reason to be Creating (#372)
This commit is contained in:
@@ -1505,11 +1505,16 @@ func aciContainerStateToContainerState(cs aci.ContainerState) v1.ContainerState
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
state := cs.State
|
||||||
|
if state == "" {
|
||||||
|
state = "Creating"
|
||||||
|
}
|
||||||
|
|
||||||
// Handle the case where the container is pending.
|
// Handle the case where the container is pending.
|
||||||
// Which should be all other aci states.
|
// Which should be all other aci states.
|
||||||
return v1.ContainerState{
|
return v1.ContainerState{
|
||||||
Waiting: &v1.ContainerStateWaiting{
|
Waiting: &v1.ContainerStateWaiting{
|
||||||
Reason: cs.State,
|
Reason: state,
|
||||||
Message: cs.DetailStatus,
|
Message: cs.DetailStatus,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user