-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDustfile
More file actions
29 lines (24 loc) · 895 Bytes
/
Copy pathDustfile
File metadata and controls
29 lines (24 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# SPDX-License-Identifier: PMPL-1.0-or-later
# Dustfile template - recovery and rollback semantics
version: 1
recovery:
logs:
- name: decision-log
path: logs/decisions.json
reversible: true
handler: "log-replay --reverse logs/decisions.json"
policy:
- name: policy-rollback
path: policy/policy.ncl
rollback: "git checkout HEAD~1 -- policy/policy.ncl"
notes: "Rollback policy to the previous known-good revision."
gateway:
- name: bad-deployment
event: "deploy.failure"
undo: "kubectl rollout undo deployment/gateway"
notes: "Undo a failed deployment while preserving audit logs."
dust-events:
- name: decision-log-to-dust
source: logs/decisions.json
transform: "dustify --input logs/decisions.json --output logs/dust-events.json"
notes: "Map gateway decision logs into reversible dust events."