Skip to content

Emit an event when floating IP recreate fails midway #270

Description

@sudomateo

Context

The recreate path in ensureLoadBalancer (internal/provider/load_balancer.go) runs detach → delete → create when the allocator config changes. If create fails after delete succeeds, the service is left with no floating IP until the next reconcile — and nothing tells the operator what happened or why.

Scope

Emit a warning event (and structured log) identifying the window: the old IP was deleted due to a config change and recreation failed. Should be visible via kubectl describe svc.

Done when

A create failure after delete is diagnosable from service events without reading CCM source code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions