Skip to content

Commit a9fe0b6

Browse files
chore: bump duty to v1.0.800 (#1726)
* chore: bump duty to v1.0.800 * fix: playbook fixture --------- Co-authored-by: adityathebe <[email protected]> Co-authored-by: Aditya Thebe <[email protected]>
1 parent c689403 commit a9fe0b6

12 files changed

+62
-64
lines changed

config/crds/mission-control.flanksource.com_incidentrules.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ spec:
7474
type: string
7575
fieldSelector:
7676
type: string
77-
healths:
78-
description: Healths filter resources by the health
79-
items:
80-
type: string
81-
type: array
77+
health:
78+
description: |-
79+
Health filters resources by the health.
80+
Multiple healths can be provided separated by comma.
81+
type: string
8282
id:
8383
type: string
8484
includeDeleted:

config/crds/mission-control.flanksource.com_notificationsilences.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ spec:
6868
type: string
6969
fieldSelector:
7070
type: string
71-
healths:
72-
description: Healths filter resources by the health
73-
items:
74-
type: string
75-
type: array
71+
health:
72+
description: |-
73+
Health filters resources by the health.
74+
Multiple healths can be provided separated by comma.
75+
type: string
7676
id:
7777
type: string
7878
includeDeleted:

config/crds/mission-control.flanksource.com_permissions.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ spec:
8282
type: string
8383
fieldSelector:
8484
type: string
85-
healths:
86-
description: Healths filter resources by the health
87-
items:
88-
type: string
89-
type: array
85+
health:
86+
description: |-
87+
Health filters resources by the health.
88+
Multiple healths can be provided separated by comma.
89+
type: string
9090
id:
9191
type: string
9292
includeDeleted:
@@ -142,11 +142,11 @@ spec:
142142
type: string
143143
fieldSelector:
144144
type: string
145-
healths:
146-
description: Healths filter resources by the health
147-
items:
148-
type: string
149-
type: array
145+
health:
146+
description: |-
147+
Health filters resources by the health.
148+
Multiple healths can be provided separated by comma.
149+
type: string
150150
id:
151151
type: string
152152
includeDeleted:
@@ -202,11 +202,11 @@ spec:
202202
type: string
203203
fieldSelector:
204204
type: string
205-
healths:
206-
description: Healths filter resources by the health
207-
items:
208-
type: string
209-
type: array
205+
health:
206+
description: |-
207+
Health filters resources by the health.
208+
Multiple healths can be provided separated by comma.
209+
type: string
210210
id:
211211
type: string
212212
includeDeleted:

config/crds/mission-control.flanksource.com_playbooks.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,11 +1419,11 @@ spec:
14191419
type: string
14201420
fieldSelector:
14211421
type: string
1422-
healths:
1423-
description: Healths filter resources by the health
1424-
items:
1425-
type: string
1426-
type: array
1422+
health:
1423+
description: |-
1424+
Health filters resources by the health.
1425+
Multiple healths can be provided separated by comma.
1426+
type: string
14271427
id:
14281428
type: string
14291429
includeDeleted:
@@ -1480,11 +1480,11 @@ spec:
14801480
type: string
14811481
fieldSelector:
14821482
type: string
1483-
healths:
1484-
description: Healths filter resources by the health
1485-
items:
1486-
type: string
1487-
type: array
1483+
health:
1484+
description: |-
1485+
Health filters resources by the health.
1486+
Multiple healths can be provided separated by comma.
1487+
type: string
14881488
id:
14891489
type: string
14901490
includeDeleted:
@@ -1541,11 +1541,11 @@ spec:
15411541
type: string
15421542
fieldSelector:
15431543
type: string
1544-
healths:
1545-
description: Healths filter resources by the health
1546-
items:
1547-
type: string
1548-
type: array
1544+
health:
1545+
description: |-
1546+
Health filters resources by the health.
1547+
Multiple healths can be provided separated by comma.
1548+
type: string
15491549
id:
15501550
type: string
15511551
includeDeleted:

config/schemas/incident-rules.schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,14 +479,14 @@
479479
"fieldSelector": {
480480
"type": "string"
481481
},
482+
"health": {
483+
"type": "string"
484+
},
482485
"types": {
483486
"$ref": "#/$defs/Items"
484487
},
485488
"statuses": {
486489
"$ref": "#/$defs/Items"
487-
},
488-
"healths": {
489-
"$ref": "#/$defs/Items"
490490
}
491491
},
492492
"additionalProperties": false,

config/schemas/notificationsilence.schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@
228228
"fieldSelector": {
229229
"type": "string"
230230
},
231+
"health": {
232+
"type": "string"
233+
},
231234
"types": {
232235
"$ref": "#/$defs/Items"
233236
},
234237
"statuses": {
235238
"$ref": "#/$defs/Items"
236-
},
237-
"healths": {
238-
"$ref": "#/$defs/Items"
239239
}
240240
},
241241
"additionalProperties": false,

config/schemas/permission.schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,14 +281,14 @@
281281
"fieldSelector": {
282282
"type": "string"
283283
},
284+
"health": {
285+
"type": "string"
286+
},
284287
"types": {
285288
"$ref": "#/$defs/Items"
286289
},
287290
"statuses": {
288291
"$ref": "#/$defs/Items"
289-
},
290-
"healths": {
291-
"$ref": "#/$defs/Items"
292292
}
293293
},
294294
"additionalProperties": false,

config/schemas/playbook-spec.schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,14 +1028,14 @@
10281028
"fieldSelector": {
10291029
"type": "string"
10301030
},
1031+
"health": {
1032+
"type": "string"
1033+
},
10311034
"types": {
10321035
"$ref": "#/$defs/Items"
10331036
},
10341037
"statuses": {
10351038
"$ref": "#/$defs/Items"
1036-
},
1037-
"healths": {
1038-
"$ref": "#/$defs/Items"
10391039
}
10401040
},
10411041
"additionalProperties": false,

config/schemas/playbook.schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,14 +1182,14 @@
11821182
"fieldSelector": {
11831183
"type": "string"
11841184
},
1185+
"health": {
1186+
"type": "string"
1187+
},
11851188
"types": {
11861189
"$ref": "#/$defs/Items"
11871190
},
11881191
"statuses": {
11891192
"$ref": "#/$defs/Items"
1190-
},
1191-
"healths": {
1192-
"$ref": "#/$defs/Items"
11931193
}
11941194
},
11951195
"additionalProperties": false,

fixtures/playbooks/ai-diagnose-slack-notification.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ metadata:
77
spec:
88
description: Use AI to diagnose unhealthy config items and send a notification slack
99
configs:
10-
- healths:
11-
- unhealthy
12-
- warning
10+
- health: unhealthy,warning
1311
parameters:
1412
- name: prompt
1513
label: Prompt

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ require (
1414
github.com/containrrr/shoutrrr v0.8.0
1515
github.com/fergusstrange/embedded-postgres v1.29.0 // indirect
1616
github.com/flanksource/commons v1.35.3
17-
github.com/flanksource/duty v1.0.795
18-
github.com/flanksource/gomplate/v3 v3.24.49
17+
github.com/flanksource/duty v1.0.800
18+
github.com/flanksource/gomplate/v3 v3.24.50
1919
github.com/flanksource/kopper v1.0.11
2020
github.com/gomarkdown/markdown v0.0.0-20240419095408-642f0ee99ae2
2121
github.com/google/cel-go v0.22.1

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,10 @@ github.com/flanksource/artifacts v1.0.14 h1:Vv70bccsae0MwGaf/uSPp34J5V1/PyKfct9z
468468
github.com/flanksource/artifacts v1.0.14/go.mod h1:qHVCnQu5k50aWNJ5UhpcAKEl7pAzqUrFFKGSm147G70=
469469
github.com/flanksource/commons v1.35.3 h1:EG46iWodmSQQbXywjvEAgK56ZH26jYtMv0RiPM3eKDE=
470470
github.com/flanksource/commons v1.35.3/go.mod h1:cLZURmvF0dw3wR5VyPuibRl/7h+NEiyMdo70WhJFB9Y=
471-
github.com/flanksource/duty v1.0.795 h1:BLKwuSrw2BTdxTu8es+MAXzzukMTuQVEjPaSMQvKBCk=
472-
github.com/flanksource/duty v1.0.795/go.mod h1:BwIY9DGWJM2uSpI8Sh64IQvbtjseVmaj0D7Ml1Ull6o=
473-
github.com/flanksource/gomplate/v3 v3.24.49 h1:j28zhFoyL4wOC4uIRk6RMV1LzW/UtcG2sjR+P8zE7BA=
474-
github.com/flanksource/gomplate/v3 v3.24.49/go.mod h1:2qqMPYn/4SJUpeqTP/LChqvEPT5hd/7bQhDVBET4ZKY=
471+
github.com/flanksource/duty v1.0.800 h1:tf9JdPKmpYXHlm/y1BAcnJev1aJfuv+eKLXf0ALuBs4=
472+
github.com/flanksource/duty v1.0.800/go.mod h1:SUJg5MSfqt0UUM2l2hP/pPAsipS0Px5L8btRD7fLwM8=
473+
github.com/flanksource/gomplate/v3 v3.24.50 h1:z8wKtFqp6yqKf2aiNfKeiG57/JlvYmpGULApQI+4rM4=
474+
github.com/flanksource/gomplate/v3 v3.24.50/go.mod h1:N8lVd8fnm6gS0l3JWlcJgso2Ol9P2L7CW00gvuIHEk0=
475475
github.com/flanksource/is-healthy v1.0.57 h1:y9lyxu4GxWcghmT8uWAkg0gaC8bAUdJ4aOUGDpe4oQo=
476476
github.com/flanksource/is-healthy v1.0.57/go.mod h1:5MUvkRbq78aPVIpwGjpn+k89n5+1thBLIRdhfcozUcQ=
477477
github.com/flanksource/kopper v1.0.11 h1:PrOLEGqLYooocr/PIEsAcfMHNVcJI+qUT0r7inHeIC8=

0 commit comments

Comments
 (0)