Skip to content

Mega Feature: Support Pruning of resources #557

@barney-s

Description

@barney-s

Feature Description

Problem Statement:
If RGD is mutated to remove any resources then a previously applied instances would leak the removed resources. Eventually when an instance is deleted the leaked instances are not deleted as part of instance deletion.

Proposed Solution:
This is a common enough pattern in k8s ecosystem. kubectl attempts to solve this using applyset. There is a KEP describing the applyset solution. This has been adopted in the declarative pattern variant of kubebuilder.

We propose using applyset in KRO to handle tracking of resources that are part of a Instance. This allows us to handle pruning.

Alternatives Considered:
Rollout your own label matching logic and handle pruning.

Additional Context:

  • Please vote on this issue by adding a 👍 reaction to the original issue
  • If you are interested in working on this feature, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions