Skip to content

Feature request: operator should optionally wait for controllers to complete. #1264

@joeblubaugh

Description

@joeblubaugh

The Operator Go type accepts a context and passes a derived context to each of its controllers when it runs them. This is good for context cancellation, but the Operator exits immediately when its own context is cancelled. This makes it hard to wait for graceful shutdown of the controllers themselves, without side-channel communication added to each controller.

For Grafana employees, we've avoided using Operator as a workaround for this, using a Waitgroup to run each of our controllers. https://github.com/grafana/slo/pull/4205/changes#r2844638426

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions