forked from eshepelyuk/cmak-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.schema.json
138 lines (135 loc) · 5.73 KB
/
values.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/eshepelyuk/cmak-operator/",
"title": "CMAK operator Helm values",
"definitions": {
"curatorConfigCommon": {
"type": "object", "title": "curator framework settings for zookeeper",
"properties": {
"zkMaxRetry": { "type": "integer", "default": 100 },
"baseSleepTimeMs": { "type": "integer", "default": 100 },
"maxSleepTimeMs": { "type": "integer", "default": 1000 }
}
},
"curatorConfig": {
"type": "object", "required": ["zkConnect"],
"allOf": [
{ "$ref": "#/definitions/curatorConfigCommon" },
{ "properties": {
"zkConnect": {
"type": "string", "title": "zookeeper connection string",
"description": "Zookeeper addresses joined by , host1:port,host2:port,host3:port"
}
}
}
]
},
"clusterConfigShared": {
"type": "object",
"properties": {
"enabled": { "type": "boolean", "default": true, "title": "either cluster enabled" },
"kafkaVersion": { "type": "string", "default": "2.2.0" },
"jmxEnabled": { "type": "boolean", "default": false },
"jmxUser": { "type": ["null", "string"], "default": null },
"jmxPass": { "type": ["null", "string"], "default": null },
"jmxSsl": { "type": "boolean", "default": false },
"pollConsumers": { "type": "boolean", "default": true },
"filterConsumers": { "type": "boolean", "default": false },
"logkafkaEnabled": { "type": "boolean", "default": false },
"activeOffsetCacheEnabled": { "type": "boolean", "default": true },
"displaySizeEnabled": { "type": "boolean", "default": false }
}
},
"clusterConfigCommon": {
"type": "object", "required": ["curatorConfig"], "title": "common config for all declared clusters",
"allOf": [
{ "$ref": "#/definitions/clusterConfigShared" },
{ "properties": {
"curatorConfig": { "$ref": "#/definitions/curatorConfigCommon" }
}
}
]
},
"clusterConfig": {
"type": "object", "required": ["name", "curatorConfig"], "title": "config for particular cluster",
"allOf": [
{ "$ref": "#/definitions/clusterConfigShared" },
{ "properties": {
"name": { "type": "string", "title": "display name for the cluster" },
"curatorConfig": { "$ref": "#/definitions/curatorConfig" }
}
}
]
},
"resources": {
"type": "object", "title": "resource requests and limits", "additionalProperties": false,
"required": ["limits", "requests"],
"description": "See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
"properties": {
"limits": { "type": "object", "title": "resource limits", "default": {} },
"requests": { "type": "object", "title": "resource requests", "default": {} }
}
}
},
"type": "object", "required": ["cmak", "reconcile", "ui", "zk"],
"properties": {
"global": { "type": "object", "additionalProperties": true, "title": "placeholder for usage as a subchart" },
"image": { "type": "object", "additionalProperties": true, "title": "skaffold compatibility" },
"imageRegistry": { "type": "string", "default": "docker.io", "title": "docker registry for all images of the chart" },
"reconcile": {
"type": "object", "additionalProperties": false,
"required": ["schedule"], "title": "reconciliation job config",
"properties": {
"schedule": {
"type": "string", "default": "*/2 * * * *", "title": "cron expression for periodic reconciliation"
},
"overwriteZk": {
"type": "boolean", "default": true, "title": "allow overwrite Zookeeper settings of CMAK"
},
"successfulJobsHistoryLimit": {
"type": ["null", "integer"], "default": null, "title": "number of completed jobs to keep"
},
"failedJobsHistoryLimit": {
"type": ["null", "integer"], "default": null, "title": "number of failed jobs to keep"
}
}
},
"cmak": {
"type": "object", "additionalProperties": false, "title": "cmak instance settings",
"description": "Those settings are mirroring CMAK UI preferences.",
"required": ["clustersCommon", "clusters"],
"properties": {
"clustersCommon": { "$ref": "#/definitions/clusterConfigCommon" },
"clusters": {
"type": "array", "title": "list of configured clusters",
"items": { "$ref": "#/definitions/clusterConfig" }
}
}
},
"ui": {
"type": "object", "title": "ui container k8s settings",
"properties": {
"extraArgs": { "type": "array", "title": "extra cmd line arguments", "items": { "type": "string" }, "default": [] },
"resources": { "$ref": "#/definitions/resources" }
}
},
"zk": {
"type": "object", "title": "zk container k8s settings",
"properties": {
"resources": { "$ref": "#/definitions/resources" }
}
},
"ingress": {
"type": ["null", "object"], "title": "ingress configuration", "default": null, "additionalProperties": false,
"description": "If object not null, then Ingress resources will be created.",
"required": ["host", "path"],
"properties": {
"host": { "type": "string", "title": "ingress host" },
"path": { "type": "string", "title": "ingress path" },
"tls": { "type": "boolean", "title": "use TLS secret", "default": false },
"labels": { "type": "object", "title": "optional ingress labels", "default": {} },
"annotations": { "type": "object", "title": "optional ingress annotations", "default": {} }
}
}
}
}