Merge pull request #112644 from vitorfhc/issue-112605

Improves message for pod status in rejectPod
This commit is contained in:
Kubernetes Prow Robot 2022-09-27 11:32:02 -07:00 committed by GitHub
commit 5579ddea8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1960,7 +1960,7 @@ func (kl *Kubelet) rejectPod(pod *v1.Pod, reason, message string) {
kl.statusManager.SetPodStatus(pod, v1.PodStatus{
Phase: v1.PodFailed,
Reason: reason,
Message: "Pod " + message})
Message: "Pod was rejected: " + message})
}
// canAdmitPod determines if a pod can be admitted, and gives a reason if it