forked from Praqma/helmsman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
473 lines (473 loc) · 15 KB
/
schema.json
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/Praqma/helmsman/internal/app/state",
"$ref": "#/$defs/State",
"$defs": {
"Config": {
"properties": {
"kubeContext": {
"type": "string",
"description": "KubeContext is the kube context you want Helmsman to use or create"
},
"username": {
"type": "string",
"description": "Username to be used for kubectl credentials"
},
"password": {
"type": "string",
"description": "Password to be used for kubectl credentials"
},
"clusterURI": {
"type": "string",
"description": "ClusterURI is the URI for your cluster API or the name of an environment variable (starting with `$`) containing the URI"
},
"serviceAccount": {
"type": "string",
"description": "ServiceAccount to be used for tiller (deprecated)"
},
"storageBackend": {
"type": "string",
"description": "StorageBackend indicates the storage backened used by helm, defaults to secret"
},
"slackWebhook": {
"type": "string",
"description": "SlackWebhook is the slack webhook URL for slack notifications"
},
"msTeamsWebhook": {
"type": "string",
"description": "MSTeamsWebhook is the Microsoft teams webhook URL for teams notifications"
},
"reverseDelete": {
"type": "boolean",
"description": "ReverseDelete indicates if the applications should be deleted in reverse orderin relation to the installation order"
},
"bearerToken": {
"type": "boolean",
"description": "BearerToken indicates whether you want helmsman to connect to the cluster using a bearer token"
},
"bearerTokenPath": {
"type": "string",
"description": "BearerTokenPath allows specifying a custom path for the token"
},
"namespaceLabelsAuthoritative": {
"type": "boolean",
"description": "NamespaceLabelsAuthoritativei indicates whether helmsman should remove namespace labels that are not in the DSF"
},
"vaultEnabled": {
"type": "boolean",
"description": "VaultEnabled indicates whether the helm vault plugin is used for encrypted files"
},
"vaultDeliminator": {
"type": "string",
"description": "VaultDeliminator allows secret deliminator used when parsing to be overridden"
},
"vaultPath": {
"type": "string",
"description": "VaultPath allows the secret mount location in Vault to be overridden"
},
"vaultMountPoint": {
"type": "string",
"description": "VaultMountPoint allows the Vault Mount Point to be overridden"
},
"vaultTemplate": {
"type": "string",
"description": "VaultTemplate Substring with path to vault key instead of deliminator"
},
"vaultKvVersion": {
"type": "string",
"description": "VaultKvVersion The version of the KV secrets engine in Vault"
},
"vaultEnvironment": {
"type": "string",
"description": "VaultEnvironment Environment that secrets should be stored under"
},
"eyamlEnabled": {
"type": "boolean",
"description": "EyamlEnabled indicates whether eyaml is used for encrypted files"
},
"eyamlPrivateKeyPath": {
"type": "string",
"description": "EyamlPrivateKeyPath is the path to the eyaml private key"
},
"eyamlPublicKeyPath": {
"type": "string",
"description": "EyamlPublicKeyPath is the path to the eyaml public key"
},
"globalHooks": {
"type": "object",
"description": "GlobalHooks is a set of global lifecycle hooks"
},
"globalMaxHistory": {
"type": "integer",
"description": "GlobalMaxHistory sets the global max number of historical release revisions to keep"
},
"skipIgnoredApps": {
"type": "boolean",
"description": "SkipIgnoredApps if set to true, ignored apps will not be considered in the plan"
},
"skipPendingApps": {
"type": "boolean",
"description": "SkipPendingApps is set to true,apps in a pending state will be ignored"
}
},
"type": "object",
"description": "Config type represents the settings fields"
},
"CustomResource": {
"properties": {
"name": {
"type": "string",
"description": "Name of the custom resource"
},
"value": {
"type": "string",
"description": "Value of the custom resource"
}
},
"type": "object",
"description": "custom resource type"
},
"Limit": {
"properties": {
"max": {
"$ref": "#/$defs/Resources",
"description": "Max defines the resource limits"
},
"min": {
"$ref": "#/$defs/Resources",
"description": "Min defines the resource request"
},
"default": {
"$ref": "#/$defs/Resources",
"description": "Default stes resource limits to pods without defined resource limits"
},
"defaultRequest": {
"$ref": "#/$defs/Resources",
"description": "DefaultRequest sets the resource requests for pods without defined resource requests"
},
"maxLimitRequestRatio": {
"$ref": "#/$defs/Resources",
"description": "MaxLimitRequestRatio set the max limit request ratio"
},
"type": {
"type": "string"
}
},
"type": "object",
"required": [
"type"
],
"description": "Limit represents a resource limit"
},
"Limits": {
"items": {
"$ref": "#/$defs/Limit"
},
"type": "array",
"description": "Limits type"
},
"Namespace": {
"properties": {
"protected": {
"type": "boolean",
"description": "Protected if set to true no changes can be applied to the namespace"
},
"limits": {
"$ref": "#/$defs/Limits",
"description": "Limits to set on the namespace"
},
"labels": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object",
"description": "Labels to set to the namespace"
},
"annotations": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object",
"description": "Annotations to set on the namespace"
},
"quotas": {
"$ref": "#/$defs/Quotas",
"description": "Quotas to set on the namespace"
}
},
"type": "object",
"required": [
"protected"
],
"description": "Namespace type represents the fields of a Namespace"
},
"Quotas": {
"properties": {
"pods": {
"type": "string",
"description": "Pods is the pods quota"
},
"limits.cpu": {
"type": "string",
"description": "CPULimits is the CPU quota"
},
"requests.cpu": {
"type": "string",
"description": "CPURequests is the CPU requests quota"
},
"limits.memory": {
"type": "string",
"description": "MemoryLimits is the memory quota"
},
"requests.memory": {
"type": "string",
"description": "MemoryRequests is the memory requests quota"
},
"customQuotas": {
"items": {
"$ref": "#/$defs/CustomResource"
},
"type": "array",
"description": "CustomResource is a list of custom resource quotas"
}
},
"type": "object",
"description": "quota type"
},
"Release": {
"properties": {
"name": {
"type": "string",
"description": "Name is the helm release name"
},
"description": {
"type": "string",
"description": "Description is a user friendly description of the helm release"
},
"namespace": {
"type": "string",
"description": "Namespace where to deploy the helm release"
},
"enabled": {
"type": "boolean",
"description": "Enabled can be used to togle a helm release"
},
"group": {
"type": "string"
},
"chart": {
"type": "string"
},
"version": {
"type": "string",
"description": "Version of the helm chart to deploy"
},
"valuesFile": {
"type": "string",
"description": "ValuesFile is the path for a values file for the helm release"
},
"valuesFiles": {
"items": {
"type": "string"
},
"type": "array",
"description": "ValuesFiles is a list of paths a values files for the helm release"
},
"secretsFile": {
"type": "string",
"description": "SecretsFile is the path for an encrypted values file for the helm release"
},
"secretsFiles": {
"items": {
"type": "string"
},
"type": "array",
"description": "SecretsFiles is a list of paths for encrypted values files for the helm release"
},
"postRenderer": {
"type": "string",
"description": "PostRenderer is the path to an executable to be used for post rendering"
},
"test": {
"type": "boolean",
"description": "Test indicates if the chart tests should be executed"
},
"protected": {
"type": "boolean",
"description": "Protected defines if the release should be protected against changes"
},
"wait": {
"type": "boolean",
"description": "Wait defines whether helm should block execution until all k8s resources are in a ready state"
},
"priority": {
"type": "integer",
"description": "Priority allows defining the execution order, releases with the same priority can be executed in parallel"
},
"set": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object",
"description": "Set can be used to overwrite the chart values"
},
"setString": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object",
"description": "SetString can be used to overwrite string values"
},
"setFile": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object",
"description": "SetFile can be used to overwrite the chart values"
},
"helmFlags": {
"items": {
"type": "string"
},
"type": "array",
"description": "HelmFlags is a list of additional flags to pass to the helm command"
},
"helmDiffFlags": {
"items": {
"type": "string"
},
"type": "array",
"description": "HelmDiffFlags is a list of cli flags to pass to helm diff"
},
"noHooks": {
"type": "boolean",
"description": "NoHooks can be used to disable the execution of helm hooks"
},
"timeout": {
"type": "integer",
"description": "Timeout is the number of seconds to wait for the release to complete"
},
"hooks": {
"type": "object",
"description": "Hooks can be used to define lifecycle hooks specific to this release"
},
"maxHistory": {
"type": "integer",
"description": "MaxHistory is the maximum number of histoical releases to keep"
}
},
"type": "object",
"required": [
"name",
"namespace",
"enabled",
"chart",
"version"
],
"description": "Release type representing Helm releases which are described in the desired state"
},
"Resources": {
"properties": {
"cpu": {
"type": "string",
"description": "CPU is the number of CPU cores"
},
"memory": {
"type": "string",
"description": "Memory is the amount of memory"
}
},
"type": "object",
"description": "Resources type"
},
"State": {
"properties": {
"metadata": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object",
"description": "Metadata for human reader of the desired state file"
},
"certificates": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object",
"description": "Certificates are used to connect kubectl to a cluster"
},
"settings": {
"$ref": "#/$defs/Config",
"description": "Settings for configuring helmsman"
},
"context": {
"type": "string",
"description": "Context defines an helmsman scope"
},
"helmRepos": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object",
"description": "HelmRepos from where to find the application helm charts"
},
"preconfiguredHelmRepos": {
"items": {
"type": "string"
},
"type": "array",
"description": "PreconfiguredHelmRepos is a list of helm repos that are configured outside of the DSF"
},
"namespaces": {
"patternProperties": {
".*": {
"$ref": "#/$defs/Namespace"
}
},
"type": "object",
"description": "Namespaces where helmsman will deploy applications"
},
"apps": {
"patternProperties": {
".*": {
"$ref": "#/$defs/Release"
}
},
"type": "object",
"description": "Apps holds the configuration for each helm release managed by helmsman"
},
"appsTemplates": {
"patternProperties": {
".*": {
"$ref": "#/$defs/Release"
}
},
"type": "object",
"description": "AppsTemplates allow defining YAML objects thatcan be used as a reference with YAML anchors to keep the configuration DRY"
}
},
"type": "object",
"required": [
"namespaces",
"apps"
],
"description": "State type represents the desired State of applications on a k8s cluster."
}
}
}