mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Merge pull request #112644 from vitorfhc/issue-112605
Improves message for pod status in rejectPod
This commit is contained in:
commit
5579ddea8a
@ -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