-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathevals.json
More file actions
197 lines (197 loc) · 6.1 KB
/
Copy pathevals.json
File metadata and controls
197 lines (197 loc) · 6.1 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
{
"skill_name": "kubernetes-containers",
"evals": [
{
"id": 1,
"prompt": "Write a safe command sequence for manually synchronizing the Argo CD Application payments-production to commit 0123456789abcdef0123456789abcdef01234567. This is production, pruning might be required, and the operator must confirm the result. Include the approval boundary and recovery approach.",
"expected_output": "Verify the Application, AppProject, cluster, namespace, repository, and exact revision; refresh status; inspect diff and a dry-run that exposes the prune set; obtain approval before mutation; sync the explicit revision without force; wait with a timeout for operation completion, Synced, and Healthy; record evidence; and prefer a reviewed Git revert for recovery.",
"files": [],
"checks": [
{
"id": "verifies-target",
"type": "contains_all",
"values": [
"AppProject",
"cluster",
"namespace",
"revision"
]
},
{
"id": "previews-diff-and-prune",
"type": "contains_all",
"values": [
"argocd app diff",
"--dry-run",
"--prune"
]
},
{
"id": "requires-production-approval",
"type": "contains_all",
"values": [
"approval",
"production",
"prune"
]
},
{
"id": "pins-sync-revision",
"type": "contains_all",
"values": [
"argocd app sync",
"--revision",
"0123456789abcdef0123456789abcdef01234567"
]
},
{
"id": "waits-for-complete-health",
"type": "contains_all",
"values": [
"argocd app wait",
"--operation",
"--sync",
"--health",
"--timeout"
]
},
{
"id": "avoids-force",
"type": "contains_any",
"values": [
"Do not use `--force`",
"Avoid `--force`",
"without `--force`"
]
},
{
"id": "uses-git-recovery",
"type": "contains_all",
"values": [
"Git",
"revert",
"evidence"
]
}
]
},
{
"id": 2,
"prompt": "Review this production Argo CD policy and provide the smallest safe correction:\n\nspec:\n syncPolicy:\n automated:\n prune: true\n selfHeal: true\n allowEmpty: true\n\nThe team says these are universal GitOps defaults. The Application includes migration hooks and ordered dependencies and shares a Namespace with another Application.",
"expected_output": "Reject the universal defaults. Set automated.enabled explicitly; treat prune and selfHeal as separate risk decisions; keep allowEmpty false; fail on shared resources; use prune-last ordering when pruning; and review sync windows, hooks, waves, ownership, deletion, and recovery before enabling automation.",
"files": [],
"checks": [
{
"id": "requires-explicit-enabled",
"type": "contains_all",
"values": [
"enabled",
"explicit"
]
},
{
"id": "covers-prune-and-self-heal",
"type": "contains_all",
"values": [
"prune",
"selfHeal"
]
},
{
"id": "keeps-allow-empty-safe",
"type": "contains_all",
"values": [
"allowEmpty",
"false"
]
},
{
"id": "protects-shared-resources",
"type": "contains_all",
"values": [
"FailOnSharedResource=true",
"shared"
]
},
{
"id": "orders-pruning-last",
"type": "contains",
"value": "PruneLast=true"
},
{
"id": "reviews-orchestration-controls",
"type": "contains_all",
"values": [
"sync window",
"hooks",
"waves"
]
}
]
},
{
"id": 3,
"prompt": "An Argo CD production sync is Degraded after a PostSync migration hook failed. Automated retries are rerunning the hook. An operator proposes `argocd app sync payments-production --force` followed by direct kubectl patches. Give the recovery workflow.",
"expected_output": "Reject force and hidden live patches. Preserve operation, tree, and history evidence; stop harmful retries; diagnose the hook and resource health; fix or revert through Git; preview and authorize the recovery revision; sync it and wait for operation completion, Synced, and Healthy. Treat history rollback as break-glass and reconcile Git immediately if it is used.",
"files": [],
"checks": [
{
"id": "preserves-failure-evidence",
"type": "contains_all",
"values": [
"--show-operation",
"tree=detailed",
"app history"
]
},
{
"id": "stops-repeated-side-effects",
"type": "contains_all",
"values": [
"stop",
"retries",
"hook"
]
},
{
"id": "rejects-force-and-live-drift",
"type": "contains_all",
"values": [
"Do not",
"--force",
"kubectl"
]
},
{
"id": "recovers-through-git",
"type": "contains_all",
"values": [
"Git",
"revert",
"preview",
"approval"
]
},
{
"id": "verifies-recovery-health",
"type": "contains_all",
"values": [
"--operation",
"--sync",
"--health",
"--timeout"
]
},
{
"id": "bounds-history-rollback",
"type": "contains_all",
"values": [
"rollback",
"break-glass",
"reconcile Git"
]
}
]
}
]
}