Commit b93860d6 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #32229 from errordeveloper/cosmetic-newline-kubectl-describe

Automatic merge from submit-queue Add missing new line after "No events." **What this PR does / why we need it**: Make `kubectl describe` output pretty again. **Special notes for your reviewer**: Should probably get rolled into the release branch. **Release note**: <!-- Steps to write your release note: 1. Use the release-note-* labels to set the release note state (if you have access) 2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. --> ```release-note NONE ```
parents 5cb9b3a3 8821825a
...@@ -2153,7 +2153,7 @@ func getPodsTotalRequestsAndLimits(podList *api.PodList) (reqs map[api.ResourceN ...@@ -2153,7 +2153,7 @@ func getPodsTotalRequestsAndLimits(podList *api.PodList) (reqs map[api.ResourceN
func DescribeEvents(el *api.EventList, w io.Writer) { func DescribeEvents(el *api.EventList, w io.Writer) {
if len(el.Items) == 0 { if len(el.Items) == 0 {
fmt.Fprint(w, "No events.") fmt.Fprint(w, "No events.\n")
return return
} }
sort.Sort(SortableEvents(el.Items)) sort.Sort(SortableEvents(el.Items))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment