Skip to content

Commit 665c134

Browse files
authored
Add node_name to Draining the node message (#1149)
1 parent 176ae47 commit 665c134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/node/node.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func (n Node) CordonAndDrain(nodeName string, reason string, recorder recorderIn
141141
}
142142
var pods *corev1.PodList
143143
// Delete all pods on the node
144-
log.Info().Msg("Draining the node")
144+
log.Info().Str("node_name", nodeName).Msg("Draining the node")
145145
// Emit events for all pods that will be evicted
146146
if recorder != nil {
147147
pods, err = n.fetchAllPods(node.Name)

0 commit comments

Comments
 (0)