Skip to content

kurkik pulsar diff: compare Apache Pulsar setups

diff compares two sides. Each side is a connection or an exported document. The first is what you expect, the second is what is really there. It only reads.

If a name is both a file and a connection, write document:<path> or connection:<name>.

Terminal window
kurkik pulsar diff staging prod
kurkik pulsar diff prod-pulsar.yaml prod
Flag What it does
--acls Include permissions: namespace and topic grants, and tenant admins. Needs tenant admin; tenants need a superuser.
--all Compare every area: --configs --acls --consumers --schemas --functions --connectors.
--configs Compare configuration: broker settings and per-topic settings or policies.
--connectors Compare sources and sinks.
--connectors-sink Compare sinks only.
--connectors-source Compare sources only.
--consumers Include subscriptions: who reads each topic. It takes more requests.
--exclude GLOB Skip topics that match. It wins over --include. You can repeat it.
--functions Compare Pulsar Functions: what they read, write and how they run.
--include GLOB Only topics whose name matches this pattern. You can repeat it.
--include-internal Also show the system’s own topics, such as __consumer_offsets or Pulsar’s system topics.
--kinds KIND[,KIND...] Show only these findings: changed, missing, unmanaged, unknown, not-verifiable, matched. The exit code still counts all of them.
--max-channels N Read at most this many topics.
--namespace TENANT/NS Only this namespace, as tenant/namespace. You can repeat it.
-o, --output FORMAT Output format: text, markdown or json. Markdown is handy in pull requests.
--schemas Compare schemas, version by version.
--strict Count things that only the second side has as drift too.
--tenant TENANT Only this tenant. You can repeat it.
--timeout DURATION Give up after this long, for example 60s or 2m.
Code Means
0 No drift.
2 Drift found.
3 No drift found, but something could not be checked.

All codes: exit codes.

Real output, one question per page: Apache Pulsar diff examples.

Flag What it does
--config FILE Use this connections file instead of $KURKIK_CONFIG or ~/.config/kurkik/connections.yaml.
-h, --help Show help.
--no-color No colours. NO_COLOR=1 does the same.
--no-project Ignore the project connections file.
--project-dir DIR Look for the project’s .kurkik/connections.yaml from this folder up.
--trust-project Use the project file without asking. Meant for CI. Same as KURKIK_TRUST_PROJECT=1.
-v, --verbose Say what Kurkik finds while it reads (on stderr).
-V, --version Show the version.