Improved message for pod status in rejectPod
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
This commit is contained in:
parent
cf221692ae
commit
0beafd1a5a
@ -1960,7 +1960,7 @@ func (kl *Kubelet) rejectPod(pod *v1.Pod, reason, message string) {
|
|||||||
kl.statusManager.SetPodStatus(pod, v1.PodStatus{
|
kl.statusManager.SetPodStatus(pod, v1.PodStatus{
|
||||||
Phase: v1.PodFailed,
|
Phase: v1.PodFailed,
|
||||||
Reason: reason,
|
Reason: reason,
|
||||||
Message: "Pod " + message})
|
Message: "Pod was rejected: " + message})
|
||||||
}
|
}
|
||||||
|
|
||||||
// canAdmitPod determines if a pod can be admitted, and gives a reason if it
|
// canAdmitPod determines if a pod can be admitted, and gives a reason if it
|
||||||
|
Loading…
Reference in New Issue
Block a user