Skip to main content
Growing a CFK cluster is conversational, and Sariva never touches the cluster to do it — every change is a pull request your reconciler applies.

The flow

  1. DM the bot: add topic orders to <cluster>
  2. Sariva proposes the change in the DM — what it will write and where — and asks for approval: “Reply ‘approve’ and I’ll raise the PR, or tell me what to change.” No PR exists yet; a write is never opened on the turn it was asked for.
  3. On your approval, Sariva opens a PR in your GitOps repo — one manifest file per topic, under <stage>/<eks>/clusters/<cluster>/manifests/topics/<topic>.yaml
  4. You review and merge — the merge is the second gate
  5. Your reconciler applies it (GitHub Actions, Argo CD, Flux, or manual kubectl apply -f .../topics/)
  6. The topic exists — verify with a health DM or kubectl
Sariva makes zero write calls to Kafka; the platform’s role ends at the PR.

What manifest you get depends on the package

Sariva knows each cluster’s package (recorded at registration from the live Kafka CR) and emits the mechanism that actually works there: Why the difference: CFK reconciles KafkaTopic CRs through the Admin REST API embedded in Confluent Server — which the Community image doesn’t have. The Job uses the native Kafka Admin protocol with the tooling already inside the cp-kafka image, which is also how the wider ecosystem manages topics on community Kafka (kafka-gitops, topicctl, and similar Admin-API tools work equally well alongside).

Community Job details

  • Runs the cluster’s own image and tag — no version skew between client and broker
  • Authenticates with the same cert-manager-issued mTLS material as the components (tls-kafka)
  • restartPolicy: Never, limited retries, and self-cleanup after a day — a finished Job doesn’t linger
  • Small resource requests — it fits the POC footprint without disturbing packing

Deleting a topic

delete topic orders on <cluster> follows the same propose → approve → PR discipline — with one difference that matters more than the mechanics:
Merging the deletion PR does not delete the topic. It removes the topic’s manifest from the gitops repo, and nothing else — the apply flow carries no prune, so the removed manifest deletes nothing live. The live topic keeps running, now un-tracked in git, until you run the manual command the PR gives you.
The PR body says this in as many words. Its first section is titled “⚠️ Read before merging — what this PR does NOT do”:
Merging this PR removes the MANIFEST for topic <topic> only. The live topic on cluster <cluster> and every message in it are NOT touched by the merge — the apply flow is a plain kubectl apply (no prune), so the removed manifest deletes nothing live. To actually delete the topic, run the manual command under ‘Dependency order’ AFTER merging.
The manual command differs by package, and the PR states the right one for your cluster: Enterprise — the destructive step is deleting the live KafkaTopic CR (the CR name is the topic name in its DNS-1123 form; the PR states it exactly):
In the PR’s words: “⚠️ THIS is the destructive step: deleting the live KafkaTopic CR makes the CFK operator delete the real topic and ALL MESSAGES in it, irreversibly. Confirm the deletion-propagation behaviour against your pinned CFK operator before running it.” Community — the destructive step is the native admin command, run with the cluster’s own mTLS client configuration (the same coordinates the topic Job uses — the tls-kafka Secret), e.g. from a pod in the cluster namespace:
“⚠️ THIS is the destructive step: it deletes the topic and ALL MESSAGES in it, irreversibly.” If Sariva can’t tell the cluster’s package, it refuses the deletion rather than guessing — removing the manifest deletes nothing live in either case, and the manual command that does differs by package, so it can’t be stated honestly without knowing which. Two more refusals you may meet: the topic’s manifest isn’t committed (nothing to remove — check the name), or the manifest sits in a still-open PR — the reply names that PR: merge it first, then re-send and Sariva raises the deletion.

If the request is refused

If the bot answers that it cannot tell the cluster’s package, the registration predates package tracking or the watcher hasn’t observed the cluster yet. Wait for the watcher’s next pass (it records the package from the live Kafka CR), or re-register the cluster — the bot never guesses, because emitting the wrong mechanism on the wrong package fails at apply time.

Confluent Platform package

The full Community vs Enterprise comparison, including what changes if you switch packages later.

Connecting a CFK cluster

How the cluster registration that powers this flow happens.