Skip to content

Commit 45b313b

Browse files
committed
chore: Generate manifests/docs
1 parent 5521342 commit 45b313b

File tree

4 files changed

+302
-0
lines changed

4 files changed

+302
-0
lines changed

config/crd/bases/grafana.integreatly.org_grafananotificationpolicies.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ spec:
120120
route:
121121
description: Routes for alerts to match against
122122
properties:
123+
active_time_intervals:
124+
description: 'Deprecated: Never worked on the top level route
125+
node'
126+
items:
127+
type: string
128+
type: array
129+
continue:
130+
description: 'Deprecated: Never worked on the top level route
131+
node'
132+
type: boolean
123133
group_by:
124134
description: group by
125135
items:
@@ -131,6 +141,52 @@ spec:
131141
group_wait:
132142
description: group wait
133143
type: string
144+
match_re:
145+
additionalProperties:
146+
type: string
147+
description: 'Deprecated: Never worked on the top level route
148+
node'
149+
type: object
150+
matchers:
151+
description: 'Deprecated: Never worked on the top level route
152+
node'
153+
items:
154+
properties:
155+
isEqual:
156+
description: is equal
157+
type: boolean
158+
isRegex:
159+
description: is regex
160+
type: boolean
161+
name:
162+
description: name
163+
type: string
164+
value:
165+
description: value
166+
type: string
167+
required:
168+
- isRegex
169+
- value
170+
type: object
171+
type: array
172+
mute_time_intervals:
173+
description: 'Deprecated: Never worked on the top level route
174+
node'
175+
items:
176+
type: string
177+
type: array
178+
object_matchers:
179+
description: 'Deprecated: Never worked on the top level route
180+
node'
181+
items:
182+
description: |-
183+
ObjectMatcher ObjectMatcher is a matcher that can be used to filter alerts.
184+
185+
swagger:model ObjectMatcher
186+
items:
187+
type: string
188+
type: array
189+
type: array
134190
provenance:
135191
description: 'Deprecated: Does nothing'
136192
type: string
@@ -195,6 +251,20 @@ spec:
195251
required:
196252
- receiver
197253
type: object
254+
x-kubernetes-validations:
255+
- message: continue is invalid on the top level route node
256+
rule: '!has(self.continue)'
257+
- message: match_re is invalid on the top level route node
258+
rule: '!has(self.match_re)'
259+
- message: matchers is invalid on the top level route node
260+
rule: '!has(self.matchers)'
261+
- message: object_matchers is invalid on the top level route node
262+
rule: '!has(self.object_matchers)'
263+
- message: mute_time_intervals is invalid on the top level route node
264+
rule: '!has(self.mute_time_intervals)'
265+
- message: active_time_intervals is invalid on the top level route
266+
node
267+
rule: '!has(self.active_time_intervals)'
198268
suspend:
199269
description: Suspend pauses synchronizing attempts and tells the operator
200270
to ignore changes

deploy/helm/grafana-operator/files/crds/grafana.integreatly.org_grafananotificationpolicies.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ spec:
120120
route:
121121
description: Routes for alerts to match against
122122
properties:
123+
active_time_intervals:
124+
description: 'Deprecated: Never worked on the top level route
125+
node'
126+
items:
127+
type: string
128+
type: array
129+
continue:
130+
description: 'Deprecated: Never worked on the top level route
131+
node'
132+
type: boolean
123133
group_by:
124134
description: group by
125135
items:
@@ -131,6 +141,52 @@ spec:
131141
group_wait:
132142
description: group wait
133143
type: string
144+
match_re:
145+
additionalProperties:
146+
type: string
147+
description: 'Deprecated: Never worked on the top level route
148+
node'
149+
type: object
150+
matchers:
151+
description: 'Deprecated: Never worked on the top level route
152+
node'
153+
items:
154+
properties:
155+
isEqual:
156+
description: is equal
157+
type: boolean
158+
isRegex:
159+
description: is regex
160+
type: boolean
161+
name:
162+
description: name
163+
type: string
164+
value:
165+
description: value
166+
type: string
167+
required:
168+
- isRegex
169+
- value
170+
type: object
171+
type: array
172+
mute_time_intervals:
173+
description: 'Deprecated: Never worked on the top level route
174+
node'
175+
items:
176+
type: string
177+
type: array
178+
object_matchers:
179+
description: 'Deprecated: Never worked on the top level route
180+
node'
181+
items:
182+
description: |-
183+
ObjectMatcher ObjectMatcher is a matcher that can be used to filter alerts.
184+
185+
swagger:model ObjectMatcher
186+
items:
187+
type: string
188+
type: array
189+
type: array
134190
provenance:
135191
description: 'Deprecated: Does nothing'
136192
type: string
@@ -195,6 +251,20 @@ spec:
195251
required:
196252
- receiver
197253
type: object
254+
x-kubernetes-validations:
255+
- message: continue is invalid on the top level route node
256+
rule: '!has(self.continue)'
257+
- message: match_re is invalid on the top level route node
258+
rule: '!has(self.match_re)'
259+
- message: matchers is invalid on the top level route node
260+
rule: '!has(self.matchers)'
261+
- message: object_matchers is invalid on the top level route node
262+
rule: '!has(self.object_matchers)'
263+
- message: mute_time_intervals is invalid on the top level route node
264+
rule: '!has(self.mute_time_intervals)'
265+
- message: active_time_intervals is invalid on the top level route
266+
node
267+
rule: '!has(self.active_time_intervals)'
198268
suspend:
199269
description: Suspend pauses synchronizing attempts and tells the operator
200270
to ignore changes

deploy/kustomize/base/crds.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,6 +2754,16 @@ spec:
27542754
route:
27552755
description: Routes for alerts to match against
27562756
properties:
2757+
active_time_intervals:
2758+
description: 'Deprecated: Never worked on the top level route
2759+
node'
2760+
items:
2761+
type: string
2762+
type: array
2763+
continue:
2764+
description: 'Deprecated: Never worked on the top level route
2765+
node'
2766+
type: boolean
27572767
group_by:
27582768
description: group by
27592769
items:
@@ -2765,6 +2775,52 @@ spec:
27652775
group_wait:
27662776
description: group wait
27672777
type: string
2778+
match_re:
2779+
additionalProperties:
2780+
type: string
2781+
description: 'Deprecated: Never worked on the top level route
2782+
node'
2783+
type: object
2784+
matchers:
2785+
description: 'Deprecated: Never worked on the top level route
2786+
node'
2787+
items:
2788+
properties:
2789+
isEqual:
2790+
description: is equal
2791+
type: boolean
2792+
isRegex:
2793+
description: is regex
2794+
type: boolean
2795+
name:
2796+
description: name
2797+
type: string
2798+
value:
2799+
description: value
2800+
type: string
2801+
required:
2802+
- isRegex
2803+
- value
2804+
type: object
2805+
type: array
2806+
mute_time_intervals:
2807+
description: 'Deprecated: Never worked on the top level route
2808+
node'
2809+
items:
2810+
type: string
2811+
type: array
2812+
object_matchers:
2813+
description: 'Deprecated: Never worked on the top level route
2814+
node'
2815+
items:
2816+
description: |-
2817+
ObjectMatcher ObjectMatcher is a matcher that can be used to filter alerts.
2818+
2819+
swagger:model ObjectMatcher
2820+
items:
2821+
type: string
2822+
type: array
2823+
type: array
27682824
provenance:
27692825
description: 'Deprecated: Does nothing'
27702826
type: string
@@ -2829,6 +2885,20 @@ spec:
28292885
required:
28302886
- receiver
28312887
type: object
2888+
x-kubernetes-validations:
2889+
- message: continue is invalid on the top level route node
2890+
rule: '!has(self.continue)'
2891+
- message: match_re is invalid on the top level route node
2892+
rule: '!has(self.match_re)'
2893+
- message: matchers is invalid on the top level route node
2894+
rule: '!has(self.matchers)'
2895+
- message: object_matchers is invalid on the top level route node
2896+
rule: '!has(self.object_matchers)'
2897+
- message: mute_time_intervals is invalid on the top level route node
2898+
rule: '!has(self.mute_time_intervals)'
2899+
- message: active_time_intervals is invalid on the top level route
2900+
node
2901+
rule: '!has(self.active_time_intervals)'
28322902
suspend:
28332903
description: Suspend pauses synchronizing attempts and tells the operator
28342904
to ignore changes

docs/docs/api.md

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5227,6 +5227,8 @@ GrafanaNotificationPolicySpec defines the desired state of GrafanaNotificationPo
52275227
<td>object</td>
52285228
<td>
52295229
Routes for alerts to match against<br/>
5230+
<br/>
5231+
<i>Validations</i>:<li>!has(self.continue): continue is invalid on the top level route node</li><li>!has(self.match_re): match_re is invalid on the top level route node</li><li>!has(self.matchers): matchers is invalid on the top level route node</li><li>!has(self.object_matchers): object_matchers is invalid on the top level route node</li><li>!has(self.mute_time_intervals): mute_time_intervals is invalid on the top level route node</li><li>!has(self.active_time_intervals): active_time_intervals is invalid on the top level route node</li>
52305232
</td>
52315233
<td>true</td>
52325234
</tr><tr>
@@ -5370,6 +5372,20 @@ Routes for alerts to match against
53705372
receiver<br/>
53715373
</td>
53725374
<td>true</td>
5375+
</tr><tr>
5376+
<td><b>active_time_intervals</b></td>
5377+
<td>[]string</td>
5378+
<td>
5379+
Deprecated: Never worked on the top level route node<br/>
5380+
</td>
5381+
<td>false</td>
5382+
</tr><tr>
5383+
<td><b>continue</b></td>
5384+
<td>boolean</td>
5385+
<td>
5386+
Deprecated: Never worked on the top level route node<br/>
5387+
</td>
5388+
<td>false</td>
53735389
</tr><tr>
53745390
<td><b>group_by</b></td>
53755391
<td>[]string</td>
@@ -5391,6 +5407,34 @@ Routes for alerts to match against
53915407
group wait<br/>
53925408
</td>
53935409
<td>false</td>
5410+
</tr><tr>
5411+
<td><b>match_re</b></td>
5412+
<td>map[string]string</td>
5413+
<td>
5414+
Deprecated: Never worked on the top level route node<br/>
5415+
</td>
5416+
<td>false</td>
5417+
</tr><tr>
5418+
<td><b><a href="#grafananotificationpolicyspecroutematchersindex">matchers</a></b></td>
5419+
<td>[]object</td>
5420+
<td>
5421+
Deprecated: Never worked on the top level route node<br/>
5422+
</td>
5423+
<td>false</td>
5424+
</tr><tr>
5425+
<td><b>mute_time_intervals</b></td>
5426+
<td>[]string</td>
5427+
<td>
5428+
Deprecated: Never worked on the top level route node<br/>
5429+
</td>
5430+
<td>false</td>
5431+
</tr><tr>
5432+
<td><b>object_matchers</b></td>
5433+
<td>[][]string</td>
5434+
<td>
5435+
Deprecated: Never worked on the top level route node<br/>
5436+
</td>
5437+
<td>false</td>
53945438
</tr><tr>
53955439
<td><b>provenance</b></td>
53965440
<td>string</td>
@@ -5424,6 +5468,54 @@ mutually exclusive with Routes<br/>
54245468
</table>
54255469

54265470

5471+
### GrafanaNotificationPolicy.spec.route.matchers[index]
5472+
<sup><sup>[↩ Parent](#grafananotificationpolicyspecroute)</sup></sup>
5473+
5474+
5475+
5476+
5477+
5478+
<table>
5479+
<thead>
5480+
<tr>
5481+
<th>Name</th>
5482+
<th>Type</th>
5483+
<th>Description</th>
5484+
<th>Required</th>
5485+
</tr>
5486+
</thead>
5487+
<tbody><tr>
5488+
<td><b>isRegex</b></td>
5489+
<td>boolean</td>
5490+
<td>
5491+
is regex<br/>
5492+
</td>
5493+
<td>true</td>
5494+
</tr><tr>
5495+
<td><b>value</b></td>
5496+
<td>string</td>
5497+
<td>
5498+
value<br/>
5499+
</td>
5500+
<td>true</td>
5501+
</tr><tr>
5502+
<td><b>isEqual</b></td>
5503+
<td>boolean</td>
5504+
<td>
5505+
is equal<br/>
5506+
</td>
5507+
<td>false</td>
5508+
</tr><tr>
5509+
<td><b>name</b></td>
5510+
<td>string</td>
5511+
<td>
5512+
name<br/>
5513+
</td>
5514+
<td>false</td>
5515+
</tr></tbody>
5516+
</table>
5517+
5518+
54275519
### GrafanaNotificationPolicy.spec.route.routeSelector
54285520
<sup><sup>[↩ Parent](#grafananotificationpolicyspecroute)</sup></sup>
54295521

0 commit comments

Comments
 (0)