Emit DisruptionBlocked events on affected pod or pdb resource #2016
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Description
What problem are you trying to solve?
As a cluster admin, I use Karpenter's events to understand and triage when disruption is occurring less frequently than expected. Karpenter emits
DisruptionBlocked
events when a node can not be disrupted, and if it is because of a pod (with a do-not-disrupt annotation) or pdb, the resource and namespace is in the event message:karpenter/pkg/controllers/disruption/events/events.go
Lines 95 to 115 in c0e7299
Because the
InvolvedObject
is the node + nodeclaim, theDisruptionBlocked
events always end up in thedefault
namespace, rather than the user's namespace with the pod or pdb. This means that the message has to be parsed by tools in order to extract the namespace from the event, which is burdonsome (and really hurts the ability to index these events in tools like datadog). Either emitting these events on the affected resource, or emitted a second duplicate event on the affected resource would satisfy our use-case.How important is this feature to you?
The text was updated successfully, but these errors were encountered: