Commit 0f86dac
authored
feat: Add ResourceIndexPolicy for Domain, DNSZone, Contact, and Note (#215)
## Summary
- Deploys `ResourceIndexPolicy` resources for four additional types so
they appear in `search.miloapis.com` results alongside the existing User
policy
- Indexes searchable fields on Domain, DNSZone, Contact, and Note
resources
- Wires all four policies into the `search.miloapis.com` kustomization
component
## Details
| Resource | Group | Version | Indexed fields |
|---|---|---|---|
| Domain | `networking.datumapis.com` | `v1alpha` | `domainName`,
`status.apex`, `status.nameservers[0].hostname`, registrar/registry
names |
| DNSZone | `dns.networking.miloapis.com` | `v1alpha1` | `domainName`,
`dnsZoneClassName` |
| Contact | `notification.miloapis.com` | `v1alpha1` | `givenName`,
`familyName`, email address |
| Note | `notes.miloapis.com` | `v1alpha1` | `content`, `nextAction` |
**Note:** Contact uses `spec.givenName`/`spec.familyName` — the issue
sample referenced `firstName`/`lastName` which does not match the actual
milo type definition.
**Note:** Domain version is `v1alpha` (no trailing `1`) — this is
intentional. The `network-services-operator` has two separate API
packages: `api/v1alpha` (Domain) and `api/v1alpha1` (Connector,
ConnectorAdvertisement, ConnectorClass).
Closes #214
## Test plan
- [ ] Verify search returns Domain resources after deploy
- [ ] Verify search returns DNSZone resources after deploy
- [ ] Verify search returns Contact resources after deploy
- [ ] Verify search returns Note resources after deploy
- [ ] Confirm no regressions on existing User search results4 files changed
Lines changed: 61 additions & 0 deletions
File tree
- config/services/search.miloapis.com
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
0 commit comments