Skip to content

Manually updated/deleted Pulsar resources should be reconciled if a CRD resource exists for them #347

@mattsre

Description

@mattsre

As of v0.14.0 of the Pulsar resources operator, when a Pulsar resource which is created via a CustomResource is manually updated or deleted outside of k8s (say from the pulsar-admin CLI), the resource is not reconciled back to the desired state as defined in the CustomResource. I'd expect the Pulsar resources operator to be continuously driving these resources towards the intended state, as defined by the CRs.

These cases should be fairly easy to reproduce:

Update Reconciliation

  1. Create a Pulsar namespace using the PulsarNamespace CRD and set messageTTL to 6h
  2. Update the Pulsar namespace outside of k8s (via pulsar-admin, pulsarctl, console, etc) to have a 12h message TTL

Expected Behavior
message TTL is reconciled back to 6h
Current Behavior
Pulsar namespace is not changed back. Message TTL stays at 12h until the PulsarNamespace CR is updated, after which the message TTL is reset to 6h

Delete Reconciliation

  1. Create a Pulsar topic using the PulsarTopic CRD
  2. Delete the Pulsar topic manually

Expected Behavior
Pulsar topic is recreated, it has a CR defined for it and should exist
Current Behavior
Pulsar topic is never re-created until the PulsarTopic CR is updated

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