From f92de4dcd25af900b4efc14d3f3d107ff5fddec6 Mon Sep 17 00:00:00 2001 From: "a4-a4s1[bot]" <287323635+a4-a4s1[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 01:38:17 +0000 Subject: [PATCH] internal/dns/readme: refresh stale regex example and terminology MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The example regex was last updated before two renames: * domain `substrate.k8s.io` → `substrate.ate.dev` (rest of the file already uses `.ate.dev`) * actor id format `UUID` → generic DNS label `[a-z0-9]([-a-z0-9]*[a-z0-9])?` Authoritative source: `internal/resources/actor.go` (`ActorIDRegexPattern` + `ActorDNSSuffix`). `internal/dns/corefile_test.go` already asserts the correct shape; only the readme drifted. Pure docs; no behavior change. --- internal/dns/readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/dns/readme.md b/internal/dns/readme.md index 5209cc6..91c1fda 100644 --- a/internal/dns/readme.md +++ b/internal/dns/readme.md @@ -2,9 +2,9 @@ The DNS Controller orchsterates the configuration needed to setup the ATE routing. -We want to resolve requests for .actors.resources.substrate.ate.dev to the router service address. +We want to resolve requests for .actors.resources.substrate.ate.dev to the router service address. -* Stub resolver mode: orchestrate running a CoreDNS instance with the UUID mapped to the router service address. +* Stub resolver mode: orchestrate running a CoreDNS instance with the actor id mapped to the router service address. Cluster resources: @@ -23,9 +23,9 @@ These are defined in manifests/ate-install/atenet-dns.yaml. ConfigMap `ate-system:dns`: ``` -# Match any 'A' query for a UUID pattern under actors.resources.substrate.ate.dev +# Match any 'A' query for an actor id pattern under actors.resources.substrate.ate.dev template IN A actors.resources.substrate.ate.dev { - match "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\\.actors\\.resources\\.substrate\\.k8s\\.io\\.$" + match "^[a-z0-9]([-a-z0-9]*[a-z0-9])?\\.actors\\.resources\\.substrate\\.ate\\.dev\\.$" answer "{{ .Name }} 60 IN A " } ```