Skip to content

Commit 753fc7a

Browse files
committed
feat: add sample policies
1 parent 7e9ec6a commit 753fc7a

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: search.miloapis.com/v1alpha1
2+
kind: ResourceIndexPolicy
3+
metadata:
4+
name: dnszone-index-policy
5+
spec:
6+
targetResource:
7+
group: dns.networking.miloapis.com
8+
version: v1alpha1
9+
kind: DNSZone
10+
11+
conditions:
12+
- name: has-name
13+
expression: "metadata.name != ''"
14+
15+
fields:
16+
- path: ".metadata.name"
17+
searchable: true
18+
- path: ".metadata.namespace"
19+
searchable: true
20+
- path: ".spec.domainName"
21+
searchable: true
22+
- path: ".spec.dnsZoneClassName"
23+
searchable: true
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: search.miloapis.com/v1alpha1
2+
kind: ResourceIndexPolicy
3+
metadata:
4+
name: domain-index-policy
5+
spec:
6+
targetResource:
7+
group: networking.datumapis.com
8+
version: v1alpha
9+
kind: Domain
10+
11+
conditions:
12+
- name: has-name
13+
expression: "metadata.name != ''"
14+
15+
fields:
16+
- path: ".metadata.name"
17+
searchable: true
18+
- path: ".metadata.namespace"
19+
searchable: true
20+
- path: ".spec.domainName"
21+
searchable: true
22+
- path: ".status.apex"
23+
searchable: true
24+
- path: ".status.nameservers[0].hostname"
25+
searchable: true
26+
- path: ".status.registration.registrar.name"
27+
searchable: true
28+
- path: ".status.registration.registry.name"
29+
searchable: true

0 commit comments

Comments
 (0)