internal/dns/readme: refresh stale regex example and terminology

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.
This commit is contained in:
a4-a4s1[bot]
2026-05-28 01:38:17 +00:00
parent 2dc9e6f023
commit f92de4dcd2
+4 -4
View File
@@ -2,9 +2,9 @@
The DNS Controller orchsterates the configuration needed to setup the ATE routing.
We want to resolve requests for <actor UUID>.actors.resources.substrate.ate.dev to the router service address.
We want to resolve requests for <actor id>.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 <router service address>"
}
```