Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/node-termination-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func drainOrCordonIfNecessary(interruptionEventStore *interruptioneventstore.Sto
if err != nil {
log.Log().Msgf("There was a problem executing the pre-drain task: %v", err)
}
metrics.NodeActionsInc("pre-dain", nodeName, err)
metrics.NodeActionsInc("pre-drain", nodeName, err)
}

if nthConfig.CordonOnly {
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/prometheus-metrics-test
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ else
EXIT_STATUS=3
fi

if [[ $METRICS_RESPONSE == *"pre-dain"* ]]; then
if [[ $METRICS_RESPONSE == *"pre-drain"* ]]; then
echo "✅ Metric pre-drain!"
else
echo "❌ Failed checking metric for pre-dain"
echo "❌ Failed checking metric for pre-drain"
EXIT_STATUS=3
fi

Expand Down