-
Notifications
You must be signed in to change notification settings - Fork 18
/
definition-orig.k
311 lines (310 loc) · 19.3 KB
/
definition-orig.k
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
"""
This file was generated by the KCL auto-gen tool. DO NOT EDIT.
Editing this file might prove futile when you re-run the KCL auto-gen generate command.
"""
{
apiVersion = "apiextensions.crossplane.io/v1"
kind = "CompositeResourceDefinition"
metadata = {
name = "compositeclusters.devopstoolkitseries.com"
labels = {
idp = "true"
}
}
spec = {
connectionSecretKeys = [
"kubeconfig"
"value"
]
defaultCompositionRef = {
name = "cluster-aws"
}
group = "devopstoolkitseries.com"
names = {
kind = "CompositeCluster"
plural = "compositeclusters"
}
claimNames = {
kind = "ClusterClaim"
plural = "clusterclaims"
}
versions = [
{
name = "v1alpha1"
served = True
referenceable = True
$schema = {
openAPIV3Schema = {
type = "object"
properties = {
spec = {
type = "object"
properties = {
id = {
type = "string"
description = "ID of this Cluster that other objects can refer."
}
parameters = {
type = "object"
description = "Parameters used to customize the cluster"
properties = {
version = {
description = "The Kubernetes version for the cluster."
type = "string"
}
nodeSize = {
description = "The size of the nodes; small, medium, large."
type = "string"
}
minNodeCount = {
description = "The minimum number of nodes."
type = "integer"
default = 1
}
namespaces = {
description = "List of Namespaces that should be created in the cluster"
type = "array"
items = {
type = "string"
}
default = [
"dev"
"production"
]
}
apps = {
type = "object"
description = "List of apps that should be installed in the cluster"
properties = {
crossplane = {
type = "object"
description = "Install Crossplane"
properties = {
enabled = {
type = "boolean"
default = False
}
}
}
argocd = {
type = "object"
description = "Install Argo CD"
properties = {
enabled = {
type = "boolean"
default = False
}
host = {
type = "string"
default = "acme.com"
}
repoURL = {
type = "string"
default = "https://github.com/vfarcic/SOMETHING"
}
destinationNamespace = {
type = "string"
default = "argo-cd"
}
sourcePath = {
type = "string"
default = "."
}
}
}
openfunction = {
type = "object"
description = "Install OpenFunction"
properties = {
enabled = {
type = "boolean"
default = False
}
}
}
dapr = {
type = "object"
description = "Install Dapr. Do not enable it if OpenFunction is enabled since it comes with Dapr."
properties = {
enabled = {
type = "boolean"
default = False
}
}
}
traefik = {
type = "object"
description = "Install Traefik."
properties = {
enabled = {
type = "boolean"
default = False
}
}
}
dynatrace = {
type = "object"
description = "Install Dynatrace operator. A secret `dynatrace` with tokens musts exist in the `dynatrace` Namespace."
properties = {
enabled = {
type = "boolean"
default = False
}
apiUrl = {
type = "string"
description = "The URL of the Dynatrace API"
}
oathCredentialsSecretName = {
description = "The name of the secret with the OAuth credentials for the Dynatrace API."
type = "string"
}
}
}
externalSecrets = {
type = "object"
description = "Install External Secrets Operator (ESO)"
properties = {
enabled = {
type = "boolean"
default = False
}
store = {
type = "boolean"
description = "Whether to create secret store. If `true`, `creds` field needs to be set as well."
}
googleCredentialsKey = {
type = "string"
description = "The key with Google credentials in the secret. Works only with clusters in Google Cloud."
}
awsAccessKeyIDKey = {
type = "string"
default = "accessKeyID"
description = "The key with Access Key ID in the secret. Works only with clusters in AWS."
}
awsSecretAccessKeyKey = {
type = "string"
default = "secretAccessKey"
description = "The key with Secret Access Key in the secret. Works only with clusters in AWS."
}
azureVaultUrl = {
type = "string"
description = "The URL of Azure Vault. Works only with clusters in Azure."
}
secrets = {
type = "array"
description = "List of secrets to be created from the secret store. The `store` parameter must be set to `true` for this feature to work."
items = {
type = "object"
properties = {
fromSecret = {
type = "string"
description = "The name or the key of secret in the external secret store"
}
toSecret = {
type = "string"
description = "The name of the secret"
}
toNamespace = {
type = "string"
description = "The namespace of the secret"
}
type = {
type = "string"
description = "The type of the secret"
default = "Opaque"
}
}
required = [
"fromSecret"
"toSecret"
"toNamespace"
]
}
}
}
}
}
}
creds = {
type = "object"
description = "The secret with hyperscaler credentials."
properties = {
name = {
type = "string"
description = "The name of the secret"
}
namespace = {
type = "string"
description = "The namespace of the secret"
default = "crossplane-system"
}
keys = {
description = "The keys in the secret"
type = "array"
items = {
type = "string"
}
}
}
required = [
"name"
"namespace"
"keys"
]
}
}
required = [
"nodeSize"
]
}
}
required = [
"id"
"parameters"
]
}
status = {
type = "object"
properties = {
clusterName = {
description = "The name of the cluster."
type = "string"
}
controlPlaneStatus = {
description = "The status of the control plane."
type = "string"
}
nodePoolStatus = {
description = "The status of the node pool."
type = "string"
}
field1 = {
description = "A placeholder"
type = "string"
}
}
}
}
}
}
additionalPrinterColumns = [
{
name = "clusterName"
type = "string"
jsonPath = ".status.clusterName"
}
{
name = "controlPlane"
type = "string"
jsonPath = ".status.controlPlaneStatus"
}
{
name = "nodePool"
type = "string"
jsonPath = ".status.nodePoolStatus"
}
]
}
]
}
}