Improved message for pod status in rejectPod

Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
This commit is contained in:
Vitor Falcao 2022-09-21 18:14:42 +00:00
parent cf221692ae
commit 0beafd1a5a

View File

@ -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