The flow
- DM the bot:
add topic orders to <cluster> - 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.
- 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 - You review and merge — the merge is the second gate
- Your reconciler applies it (GitHub Actions, Argo CD, Flux, or manual
kubectl apply -f .../topics/) - The topic exists — verify with a health DM or
kubectl
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:
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 topicThe manual command differs by package, and the PR states the right one for your cluster: Enterprise — the destructive step is deleting the live<topic>only. The live topic on cluster<cluster>and every message in it are NOT touched by the merge — the apply flow is a plainkubectl apply(no prune), so the removed manifest deletes nothing live. To actually delete the topic, run the manual command under ‘Dependency order’ AFTER merging.
KafkaTopic CR (the CR name is the topic name in its DNS-1123 form; the PR states it exactly):
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:
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.Related
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.