Skip to content

[RFE] OLM deletes Operands upon Operator removal #1787

@awgreene

Description

@awgreene

Feature Request

Is your feature request related to a problem? Please describe.
As a cluster-admin I can instruct OLM that I want to remove all Operands before removing the Operator, so that I don't end up with orphaned workloads.

Why is this important:
Orphaned workloads are hard to clean up. After the Operator has been removed deleting the custom resource does not clean up secondary resources. It can be hard to find these resources as there is no obligation to put owner references or labels to them. It is probably impossible to find when those resources are outside of the cluster.

Describe the solution you'd like

  • Operands are not automatically removed
  • CRDs are not automatically removed
  • Upon Operator uninstall a cluster-admin can opt-in to the clean up behavior
  • Clean includes Operands (Custom Resource instances) and Custom Resource Definitions
  • The Operand removal should have timeout
  • Hitting the Operand removal timeout should NOT fail Operator removal
  • Hitting the timeout should create an alert event

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions