Skip to content

[FEA]: Use an external-dns owner ID unique to each control plane and infra plane #220

Open

Description

@anandj91

Is this a new feature, an improvement, or a change to existing functionality?

Change

How would you describe the priority of this feature request

Medium

Please provide a clear description of problem this feature solves

external-dns marks the records it owns with a TXT record holding its --txt-owner-id, and with policy: sync it deletes any record carrying its owner ID that its sources no longer produce. Two external-dns instances that share an owner ID and a zone each treat the other's records as their own, and delete them.

ccluster fixes the owner ID in two places:

  • The cp chart's external-dns (charts/cp/chart/values.yaml, external-dns.txtOwnerId: ccluster-cp), added in feat(cp)!: publish a wildcard record per LoadBalancer through external-dns #172. Two control planes that share a zone, such as dev and prod both with domainFilters: [example.com], delete each other's wildcard records on every sync.
  • The cluster_base/external_dns catalog component (catalogs/cluster_base/external_dns/values.yaml, txtOwnerId: ccluster), installed on every infra plane. Any two infra planes that share a zone have the same problem. The Go field's doc comment already says "Two clusters sharing a zone must not share it", but the default makes them share it.

Raised in review of #172: #172 (comment)

Feature Description

Each external-dns that ccluster installs shall have an owner ID unique to its cluster, by default, so that control planes or infra planes sharing a zone do not delete each other's records.

Describe your ideal solution

  • cp chart. Either require the user to set external-dns.txtOwnerId when external-dns.enabled is true (fail the render with a clear message, for example with required in a values check), or document prominently that it must be unique per control plane and drop the fixed default. Pick one and document it in the values.yaml comment, next to the provider and zone settings.
  • cluster_base/external_dns. Default txtOwnerId to something unique per infra plane, such as the plane's domain, which is already unique per plane once [FEA]: Reject CCLInfraPlanes whose domain is already used by another CCLInfraPlane #159 lands. The domain is known where the component's values are rendered; check catalogs/cluster_base/external_dns/component.go and how other cluster_base components receive the domain. Its Verifier may need to check the owner ID too.
  • Docs. docs/development.md (the external-dns / IAM section) and a changelog fragment. Changing an owner ID orphans the records written under the old one, so the changelog should say how to clean them up. The project is pre-release, so no migration code is needed.

Describe any alternatives you have considered

  • A random owner ID generated at install. Unique, but changes on every reinstall and orphans the old records each time.
  • One shared owner ID with zones never shared. That's the current assumption. It isn't enforced, and it breaks the common case of dev and prod under one parent zone.

Additional context

Activity

  1. linear commented on Nov 2, 2026

    @linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions