This repository has been archived by the owner on Feb 9, 2024. It is now read-only.
forked from eshepelyuk/cmak-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.schema.json
167 lines (164 loc) · 6.82 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
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
{
"$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": {} }
}
},
"tls": {
"type": ["null", "object"], "title": "use TLS secret", "default": null,
"properties": {
"secret": { "type": "string", "title": "Secret name to attach to the ingress object" }
}
},
"consumerSsl": {
"type": "object", "title": "Consumer SSL configuration", "default": null,
"properties": {
"keystore": {
"type": "object", "title": "keystore configuration",
"properties": {
"type": { "type": "string" },
"password": { "type": "string" },
"value": { "type": "string", "description": "base64 encoded keystore" }
}
},
"truststore": {
"type": "object", "title": "truststore configuration",
"properties": {
"type": { "type": "string" },
"password": { "type": "string" },
"value": { "type": "string", "description": "base64 encoded truststore" }
}
}
}
}
},
"type": "object", "required": ["cmak", "reconcile", "ui", "zk"],
"properties": {
"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": "*/3 * * * *", "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" },
"consumerProperties": { "type": "object", "title": "provide key value base pairs for consumer properties according to java docs", "default": {} },
"consumerPropertiesSsl": { "$ref": "#/definitions/consumerSsl" }
}
},
"zk": {
"type": "object", "title": "zk container k8s settings", "additionalProperties": false,
"required": ["version"],
"properties": {
"resources": { "$ref": "#/definitions/resources" },
"version": { "type": "string", "title": "zk version", "default": "3.6.1" }
}
},
"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": { "$ref": "#/definitions/tls" },
"labels": { "type": "object", "title": "optional ingress labels", "default": {} },
"annotations": { "type": "object", "title": "optional ingress annotations", "default": {} }
}
}
}
}