Skip to content

Commit 6bd7dc9

Browse files
committed
UPSTREAM: <carry>: prober.recordContainerEvent requires context now
Squash into `UPSTREAM: <carry>: provide events, messages, and bodies for probe failures of important pods` when appropriate.
1 parent 89bae3e commit 6bd7dc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/kubelet/prober/patch_prober.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package prober
22

33
import (
4+
"context"
45
"net/http"
56
"strings"
67
"time"
@@ -37,7 +38,7 @@ func (pb *prober) maybeProbeForBody(prober httpprobe.Prober, req *http.Request,
3738
}
3839

3940
// in fact, they are so interesting we'll try to send events for them
40-
pb.recordContainerEvent(pod, &container, v1.EventTypeWarning, reason, "%s probe error: %s\nbody: %s\n", probeType, output, body)
41+
pb.recordContainerEvent(context.TODO(), pod, &container, v1.EventTypeWarning, reason, "%s probe error: %s\nbody: %s\n", probeType, output, body)
4142
return result, output, probeError
4243
default:
4344
return result, output, probeError

0 commit comments

Comments
 (0)