mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 04:03:20 +00:00
Improved message for pod status in rejectPod
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user