Commit 819d722
committed
Add Gateway/ListenerSet controller and DNS service scaffold
- Add GatewayReconciler for K8s Gateway API: handles create/update/delete of
DNS records via DNSRecordService for Gateways and ListenerSets
- Add ListenerSet event handler to trigger Gateway reconciliation
- Wire GatewayReconciler and DNSRecordService initialization in cmd/main.go
- Add DNSRecordService public API: CreateOrUpdateDNSRecords (stub; DNS zone
validation and NSX record creation deferred to follow-up),
DeleteDNSRecordsByOwner, DeleteAllDNSRecordsInGateway,
DeleteOrphanedDNSRecordsInGateway, ListGatewayNamespacedName
- Add DNSRecordStore with indexers for owner UID and gateway namespaced name
- Add unit tests for controller flow and DNS service/store components
- DNS zone configuration (ZoneConfig, permitted zones) is deferred to
the follow-up change
AI-Tool-Used: Cursor
AI-Tool-Use-Level: Medium
AI-Code-Category: Production1 parent 8a866d7 commit 819d722
File tree
14 files changed
+2176
-16
lines changed- cmd
- pkg
- controllers
- common
- gateway
- nsx/services
- common
- dns
14 files changed
+2176
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| 87 | + | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| |||
191 | 195 | | |
192 | 196 | | |
193 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
194 | 203 | | |
195 | 204 | | |
196 | 205 | | |
| |||
241 | 250 | | |
242 | 251 | | |
243 | 252 | | |
| 253 | + | |
244 | 254 | | |
245 | 255 | | |
246 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
0 commit comments