Skip to content

refactor: rename the single-destination replicator (was: duckling) - #86

Merged
jghoman merged 1 commit into
mainfrom
jakob/single-destination-rename
Sep 3, 2026
Merged

refactor: rename the single-destination replicator (was: duckling)#86
jghoman merged 1 commit into
mainfrom
jakob/single-destination-rename

Conversation

@jghoman

@jghoman jghoman commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Why

The component's name collided twice over: duckgres has a Duckling K8s CR (warehouse child resource), and PostHog's tenant data plane already owns 'duckling' (posthog-duckling-* buckets, tenant-duckling hostnames). The viaduck component is now single-destination viaduck everywhere.

What changes

Was Now
Duckling SingleDestinationViaduck
DucklingConfig SingleDestinationConfig
FatalDucklingError FatalSingleDestinationError
viaduck_duckling_* metrics viaduck_single_destination_*
logger viaduck.duckling viaduck.single_destination
instance_id default "duckling" "single-destination"
pipeline label duckling-<dest> single-destination-<dest>
temp view _duckling_append _single_destination_append
prose/comments single-destination viaduck

Deliberately kept: the ducklings k8s namespace strings (allowed_secret_namespaces, allowed_endpoint_suffixes) — that's a cluster-side fact and renaming it is an infra change, not this one; and the PostHog tenant-plane names the tests mirror from prod.

No behavior change; 1066 tests pass; ruff clean. The component is not deployed anywhere with dashboards, so the metric-series rename is free.

The component collided with two other 'duckling' terms: the duckgres
Duckling K8s CR and PostHog's tenant data plane (posthog-duckling-*
buckets). The component is now 'single-destination viaduck' everywhere:
class SingleDestinationViaduck, SingleDestinationConfig,
FatalSingleDestinationError, metrics prefix viaduck_single_destination_*,
logger viaduck.single_destination, instance_id default, pipeline label
prefix, and the temp view name. The ducklings k8s namespace strings stay
(cluster-side fact; renaming that is an infra change). No behavior
change; the feature is not deployed anywhere with dashboards, so the
metric-series rename is free.
@jghoman
jghoman merged commit 065ded1 into main Sep 3, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant