generated from crossplane/upjet-provider-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
zz_clickhousecluster_types.go
executable file
·3341 lines (2324 loc) · 182 KB
/
zz_clickhousecluster_types.go
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
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by upjet. DO NOT EDIT.
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type AccessInitParameters struct {
// Allow access for DataLens. Can be either true or false.
DataLens *bool `json:"dataLens,omitempty" tf:"data_lens,omitempty"`
// Allow access for DataTransfer. Can be either true or false.
DataTransfer *bool `json:"dataTransfer,omitempty" tf:"data_transfer,omitempty"`
// Allow access for Yandex.Metrika. Can be either true or false.
Metrika *bool `json:"metrika,omitempty" tf:"metrika,omitempty"`
// Allow access for Serverless. Can be either true or false.
Serverless *bool `json:"serverless,omitempty" tf:"serverless,omitempty"`
// Allow access for Web SQL. Can be either true or false.
WebSQL *bool `json:"webSql,omitempty" tf:"web_sql,omitempty"`
// Allow access for YandexQuery. Can be either true or false.
YandexQuery *bool `json:"yandexQuery,omitempty" tf:"yandex_query,omitempty"`
}
type AccessObservation struct {
// Allow access for DataLens. Can be either true or false.
DataLens *bool `json:"dataLens,omitempty" tf:"data_lens,omitempty"`
// Allow access for DataTransfer. Can be either true or false.
DataTransfer *bool `json:"dataTransfer,omitempty" tf:"data_transfer,omitempty"`
// Allow access for Yandex.Metrika. Can be either true or false.
Metrika *bool `json:"metrika,omitempty" tf:"metrika,omitempty"`
// Allow access for Serverless. Can be either true or false.
Serverless *bool `json:"serverless,omitempty" tf:"serverless,omitempty"`
// Allow access for Web SQL. Can be either true or false.
WebSQL *bool `json:"webSql,omitempty" tf:"web_sql,omitempty"`
// Allow access for YandexQuery. Can be either true or false.
YandexQuery *bool `json:"yandexQuery,omitempty" tf:"yandex_query,omitempty"`
}
type AccessParameters struct {
// Allow access for DataLens. Can be either true or false.
// +kubebuilder:validation:Optional
DataLens *bool `json:"dataLens,omitempty" tf:"data_lens,omitempty"`
// Allow access for DataTransfer. Can be either true or false.
// +kubebuilder:validation:Optional
DataTransfer *bool `json:"dataTransfer,omitempty" tf:"data_transfer,omitempty"`
// Allow access for Yandex.Metrika. Can be either true or false.
// +kubebuilder:validation:Optional
Metrika *bool `json:"metrika,omitempty" tf:"metrika,omitempty"`
// Allow access for Serverless. Can be either true or false.
// +kubebuilder:validation:Optional
Serverless *bool `json:"serverless,omitempty" tf:"serverless,omitempty"`
// Allow access for Web SQL. Can be either true or false.
// +kubebuilder:validation:Optional
WebSQL *bool `json:"webSql,omitempty" tf:"web_sql,omitempty"`
// Allow access for YandexQuery. Can be either true or false.
// +kubebuilder:validation:Optional
YandexQuery *bool `json:"yandexQuery,omitempty" tf:"yandex_query,omitempty"`
}
type BackupWindowStartInitParameters struct {
// The hour at which backup will be started.
Hours *float64 `json:"hours,omitempty" tf:"hours,omitempty"`
// The minute at which backup will be started.
Minutes *float64 `json:"minutes,omitempty" tf:"minutes,omitempty"`
}
type BackupWindowStartObservation struct {
// The hour at which backup will be started.
Hours *float64 `json:"hours,omitempty" tf:"hours,omitempty"`
// The minute at which backup will be started.
Minutes *float64 `json:"minutes,omitempty" tf:"minutes,omitempty"`
}
type BackupWindowStartParameters struct {
// The hour at which backup will be started.
// +kubebuilder:validation:Optional
Hours *float64 `json:"hours,omitempty" tf:"hours,omitempty"`
// The minute at which backup will be started.
// +kubebuilder:validation:Optional
Minutes *float64 `json:"minutes,omitempty" tf:"minutes,omitempty"`
}
type ClickhouseClusterInitParameters struct {
// Access policy to the ClickHouse cluster. The structure is documented below.
Access []AccessInitParameters `json:"access,omitempty" tf:"access,omitempty"`
// Time to start the daily backup, in the UTC timezone. The structure is documented below.
BackupWindowStart []BackupWindowStartInitParameters `json:"backupWindowStart,omitempty" tf:"backup_window_start,omitempty"`
// Configuration of the ClickHouse subcluster. The structure is documented below.
Clickhouse []ClickhouseInitParameters `json:"clickhouse,omitempty" tf:"clickhouse,omitempty"`
// Minimum data age in seconds.
CloudStorage []CloudStorageInitParameters `json:"cloudStorage,omitempty" tf:"cloud_storage,omitempty"`
ClusterID *string `json:"clusterId,omitempty" tf:"cluster_id,omitempty"`
// Whether to copy schema on new ClickHouse hosts.
CopySchemaOnNewHosts *bool `json:"copySchemaOnNewHosts,omitempty" tf:"copy_schema_on_new_hosts,omitempty"`
// A database of the ClickHouse cluster. The structure is documented below.
Database []DatabaseInitParameters `json:"database,omitempty" tf:"database,omitempty"`
// Inhibits deletion of the cluster. Can be either true or false.
DeletionProtection *bool `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// Description of the ClickHouse cluster.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Whether to use ClickHouse Keeper as a coordination system and place it on the same hosts with ClickHouse. If not, it's used ZooKeeper with placement on separate hosts.
EmbeddedKeeper *bool `json:"embeddedKeeper,omitempty" tf:"embedded_keeper,omitempty"`
// Deployment environment of the ClickHouse cluster. Can be either PRESTABLE or PRODUCTION.
Environment *string `json:"environment,omitempty" tf:"environment,omitempty"`
// The ID of the folder that the resource belongs to. If it
// is not provided, the default provider folder is used.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/resourcemanager/v1alpha1.Folder
FolderID *string `json:"folderId,omitempty" tf:"folder_id,omitempty"`
// Reference to a Folder in resourcemanager to populate folderId.
// +kubebuilder:validation:Optional
FolderIDRef *v1.Reference `json:"folderIdRef,omitempty" tf:"-"`
// Selector for a Folder in resourcemanager to populate folderId.
// +kubebuilder:validation:Optional
FolderIDSelector *v1.Selector `json:"folderIdSelector,omitempty" tf:"-"`
// A set of protobuf or capnproto format schemas. The structure is documented below.
FormatSchema []FormatSchemaInitParameters `json:"formatSchema,omitempty" tf:"format_schema,omitempty"`
// A host of the ClickHouse cluster. The structure is documented below.
Host []HostInitParameters `json:"host,omitempty" tf:"host,omitempty"`
// A set of key/value label pairs to assign to the ClickHouse cluster.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// A group of machine learning models. The structure is documented below
MLModel []MLModelInitParameters `json:"mlModel,omitempty" tf:"ml_model,omitempty"`
MaintenanceWindow []MaintenanceWindowInitParameters `json:"maintenanceWindow,omitempty" tf:"maintenance_window,omitempty"`
// Name of the ClickHouse cluster. Provided by the client when the cluster is created.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// ID of the network, to which the ClickHouse cluster belongs.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.Network
NetworkID *string `json:"networkId,omitempty" tf:"network_id,omitempty"`
// Reference to a Network in vpc to populate networkId.
// +kubebuilder:validation:Optional
NetworkIDRef *v1.Reference `json:"networkIdRef,omitempty" tf:"-"`
// Selector for a Network in vpc to populate networkId.
// +kubebuilder:validation:Optional
NetworkIDSelector *v1.Selector `json:"networkIdSelector,omitempty" tf:"-"`
// Grants admin user database management permission.
SQLDatabaseManagement *bool `json:"sqlDatabaseManagement,omitempty" tf:"sql_database_management,omitempty"`
// Enables admin user with user management permission.
SQLUserManagement *bool `json:"sqlUserManagement,omitempty" tf:"sql_user_management,omitempty"`
// A set of ids of security groups assigned to hosts of the cluster.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.SecurityGroup
// +listType=set
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// References to SecurityGroup in vpc to populate securityGroupIds.
// +kubebuilder:validation:Optional
SecurityGroupIdsRefs []v1.Reference `json:"securityGroupIdsRefs,omitempty" tf:"-"`
// Selector for a list of SecurityGroup in vpc to populate securityGroupIds.
// +kubebuilder:validation:Optional
SecurityGroupIdsSelector *v1.Selector `json:"securityGroupIdsSelector,omitempty" tf:"-"`
// ID of the service account used for access to Yandex Object Storage.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/iam/v1alpha1.ServiceAccount
ServiceAccountID *string `json:"serviceAccountId,omitempty" tf:"service_account_id,omitempty"`
// Reference to a ServiceAccount in iam to populate serviceAccountId.
// +kubebuilder:validation:Optional
ServiceAccountIDRef *v1.Reference `json:"serviceAccountIdRef,omitempty" tf:"-"`
// Selector for a ServiceAccount in iam to populate serviceAccountId.
// +kubebuilder:validation:Optional
ServiceAccountIDSelector *v1.Selector `json:"serviceAccountIdSelector,omitempty" tf:"-"`
Shard []ShardInitParameters `json:"shard,omitempty" tf:"shard,omitempty"`
// A group of clickhouse shards. The structure is documented below.
ShardGroup []ShardGroupInitParameters `json:"shardGroup,omitempty" tf:"shard_group,omitempty"`
// A user of the ClickHouse cluster. The structure is documented below.
User []UserInitParameters `json:"user,omitempty" tf:"user,omitempty"`
// Version of the ClickHouse server software.
Version *string `json:"version,omitempty" tf:"version,omitempty"`
// Configuration of the ZooKeeper subcluster. The structure is documented below.
Zookeeper []ZookeeperInitParameters `json:"zookeeper,omitempty" tf:"zookeeper,omitempty"`
}
type ClickhouseClusterObservation struct {
// Access policy to the ClickHouse cluster. The structure is documented below.
Access []AccessObservation `json:"access,omitempty" tf:"access,omitempty"`
// Time to start the daily backup, in the UTC timezone. The structure is documented below.
BackupWindowStart []BackupWindowStartObservation `json:"backupWindowStart,omitempty" tf:"backup_window_start,omitempty"`
// Configuration of the ClickHouse subcluster. The structure is documented below.
Clickhouse []ClickhouseObservation `json:"clickhouse,omitempty" tf:"clickhouse,omitempty"`
// Minimum data age in seconds.
CloudStorage []CloudStorageObservation `json:"cloudStorage,omitempty" tf:"cloud_storage,omitempty"`
ClusterID *string `json:"clusterId,omitempty" tf:"cluster_id,omitempty"`
// Whether to copy schema on new ClickHouse hosts.
CopySchemaOnNewHosts *bool `json:"copySchemaOnNewHosts,omitempty" tf:"copy_schema_on_new_hosts,omitempty"`
// Timestamp of cluster creation.
CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"`
// A database of the ClickHouse cluster. The structure is documented below.
Database []DatabaseObservation `json:"database,omitempty" tf:"database,omitempty"`
// Inhibits deletion of the cluster. Can be either true or false.
DeletionProtection *bool `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// Description of the ClickHouse cluster.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Whether to use ClickHouse Keeper as a coordination system and place it on the same hosts with ClickHouse. If not, it's used ZooKeeper with placement on separate hosts.
EmbeddedKeeper *bool `json:"embeddedKeeper,omitempty" tf:"embedded_keeper,omitempty"`
// Deployment environment of the ClickHouse cluster. Can be either PRESTABLE or PRODUCTION.
Environment *string `json:"environment,omitempty" tf:"environment,omitempty"`
// The ID of the folder that the resource belongs to. If it
// is not provided, the default provider folder is used.
FolderID *string `json:"folderId,omitempty" tf:"folder_id,omitempty"`
// A set of protobuf or capnproto format schemas. The structure is documented below.
FormatSchema []FormatSchemaObservation `json:"formatSchema,omitempty" tf:"format_schema,omitempty"`
// Aggregated health of the cluster. Can be ALIVE, DEGRADED, DEAD or HEALTH_UNKNOWN.
// For more information see health field of JSON representation in the official documentation.
Health *string `json:"health,omitempty" tf:"health,omitempty"`
// A host of the ClickHouse cluster. The structure is documented below.
Host []HostObservation `json:"host,omitempty" tf:"host,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// A set of key/value label pairs to assign to the ClickHouse cluster.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// A group of machine learning models. The structure is documented below
MLModel []MLModelObservation `json:"mlModel,omitempty" tf:"ml_model,omitempty"`
MaintenanceWindow []MaintenanceWindowObservation `json:"maintenanceWindow,omitempty" tf:"maintenance_window,omitempty"`
// Name of the ClickHouse cluster. Provided by the client when the cluster is created.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// ID of the network, to which the ClickHouse cluster belongs.
NetworkID *string `json:"networkId,omitempty" tf:"network_id,omitempty"`
// Grants admin user database management permission.
SQLDatabaseManagement *bool `json:"sqlDatabaseManagement,omitempty" tf:"sql_database_management,omitempty"`
// Enables admin user with user management permission.
SQLUserManagement *bool `json:"sqlUserManagement,omitempty" tf:"sql_user_management,omitempty"`
// A set of ids of security groups assigned to hosts of the cluster.
// +listType=set
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// ID of the service account used for access to Yandex Object Storage.
ServiceAccountID *string `json:"serviceAccountId,omitempty" tf:"service_account_id,omitempty"`
Shard []ShardObservation `json:"shard,omitempty" tf:"shard,omitempty"`
// A group of clickhouse shards. The structure is documented below.
ShardGroup []ShardGroupObservation `json:"shardGroup,omitempty" tf:"shard_group,omitempty"`
// Status of the cluster. Can be CREATING, STARTING, RUNNING, UPDATING, STOPPING, STOPPED, ERROR or STATUS_UNKNOWN.
// For more information see status field of JSON representation in the official documentation.
Status *string `json:"status,omitempty" tf:"status,omitempty"`
// A user of the ClickHouse cluster. The structure is documented below.
User []UserObservation `json:"user,omitempty" tf:"user,omitempty"`
// Version of the ClickHouse server software.
Version *string `json:"version,omitempty" tf:"version,omitempty"`
// Configuration of the ZooKeeper subcluster. The structure is documented below.
Zookeeper []ZookeeperObservation `json:"zookeeper,omitempty" tf:"zookeeper,omitempty"`
}
type ClickhouseClusterParameters struct {
// Access policy to the ClickHouse cluster. The structure is documented below.
// +kubebuilder:validation:Optional
Access []AccessParameters `json:"access,omitempty" tf:"access,omitempty"`
// A password used to authorize as user admin when sql_user_management enabled.
// +kubebuilder:validation:Optional
AdminPasswordSecretRef *v1.SecretKeySelector `json:"adminPasswordSecretRef,omitempty" tf:"-"`
// Time to start the daily backup, in the UTC timezone. The structure is documented below.
// +kubebuilder:validation:Optional
BackupWindowStart []BackupWindowStartParameters `json:"backupWindowStart,omitempty" tf:"backup_window_start,omitempty"`
// Configuration of the ClickHouse subcluster. The structure is documented below.
// +kubebuilder:validation:Optional
Clickhouse []ClickhouseParameters `json:"clickhouse,omitempty" tf:"clickhouse,omitempty"`
// Minimum data age in seconds.
// +kubebuilder:validation:Optional
CloudStorage []CloudStorageParameters `json:"cloudStorage,omitempty" tf:"cloud_storage,omitempty"`
// +kubebuilder:validation:Optional
ClusterID *string `json:"clusterId,omitempty" tf:"cluster_id,omitempty"`
// Whether to copy schema on new ClickHouse hosts.
// +kubebuilder:validation:Optional
CopySchemaOnNewHosts *bool `json:"copySchemaOnNewHosts,omitempty" tf:"copy_schema_on_new_hosts,omitempty"`
// A database of the ClickHouse cluster. The structure is documented below.
// +kubebuilder:validation:Optional
Database []DatabaseParameters `json:"database,omitempty" tf:"database,omitempty"`
// Inhibits deletion of the cluster. Can be either true or false.
// +kubebuilder:validation:Optional
DeletionProtection *bool `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// Description of the ClickHouse cluster.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Whether to use ClickHouse Keeper as a coordination system and place it on the same hosts with ClickHouse. If not, it's used ZooKeeper with placement on separate hosts.
// +kubebuilder:validation:Optional
EmbeddedKeeper *bool `json:"embeddedKeeper,omitempty" tf:"embedded_keeper,omitempty"`
// Deployment environment of the ClickHouse cluster. Can be either PRESTABLE or PRODUCTION.
// +kubebuilder:validation:Optional
Environment *string `json:"environment,omitempty" tf:"environment,omitempty"`
// The ID of the folder that the resource belongs to. If it
// is not provided, the default provider folder is used.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/resourcemanager/v1alpha1.Folder
// +kubebuilder:validation:Optional
FolderID *string `json:"folderId,omitempty" tf:"folder_id,omitempty"`
// Reference to a Folder in resourcemanager to populate folderId.
// +kubebuilder:validation:Optional
FolderIDRef *v1.Reference `json:"folderIdRef,omitempty" tf:"-"`
// Selector for a Folder in resourcemanager to populate folderId.
// +kubebuilder:validation:Optional
FolderIDSelector *v1.Selector `json:"folderIdSelector,omitempty" tf:"-"`
// A set of protobuf or capnproto format schemas. The structure is documented below.
// +kubebuilder:validation:Optional
FormatSchema []FormatSchemaParameters `json:"formatSchema,omitempty" tf:"format_schema,omitempty"`
// A host of the ClickHouse cluster. The structure is documented below.
// +kubebuilder:validation:Optional
Host []HostParameters `json:"host,omitempty" tf:"host,omitempty"`
// A set of key/value label pairs to assign to the ClickHouse cluster.
// +kubebuilder:validation:Optional
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// A group of machine learning models. The structure is documented below
// +kubebuilder:validation:Optional
MLModel []MLModelParameters `json:"mlModel,omitempty" tf:"ml_model,omitempty"`
// +kubebuilder:validation:Optional
MaintenanceWindow []MaintenanceWindowParameters `json:"maintenanceWindow,omitempty" tf:"maintenance_window,omitempty"`
// Name of the ClickHouse cluster. Provided by the client when the cluster is created.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// ID of the network, to which the ClickHouse cluster belongs.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.Network
// +kubebuilder:validation:Optional
NetworkID *string `json:"networkId,omitempty" tf:"network_id,omitempty"`
// Reference to a Network in vpc to populate networkId.
// +kubebuilder:validation:Optional
NetworkIDRef *v1.Reference `json:"networkIdRef,omitempty" tf:"-"`
// Selector for a Network in vpc to populate networkId.
// +kubebuilder:validation:Optional
NetworkIDSelector *v1.Selector `json:"networkIdSelector,omitempty" tf:"-"`
// Grants admin user database management permission.
// +kubebuilder:validation:Optional
SQLDatabaseManagement *bool `json:"sqlDatabaseManagement,omitempty" tf:"sql_database_management,omitempty"`
// Enables admin user with user management permission.
// +kubebuilder:validation:Optional
SQLUserManagement *bool `json:"sqlUserManagement,omitempty" tf:"sql_user_management,omitempty"`
// A set of ids of security groups assigned to hosts of the cluster.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.SecurityGroup
// +kubebuilder:validation:Optional
// +listType=set
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// References to SecurityGroup in vpc to populate securityGroupIds.
// +kubebuilder:validation:Optional
SecurityGroupIdsRefs []v1.Reference `json:"securityGroupIdsRefs,omitempty" tf:"-"`
// Selector for a list of SecurityGroup in vpc to populate securityGroupIds.
// +kubebuilder:validation:Optional
SecurityGroupIdsSelector *v1.Selector `json:"securityGroupIdsSelector,omitempty" tf:"-"`
// ID of the service account used for access to Yandex Object Storage.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/iam/v1alpha1.ServiceAccount
// +kubebuilder:validation:Optional
ServiceAccountID *string `json:"serviceAccountId,omitempty" tf:"service_account_id,omitempty"`
// Reference to a ServiceAccount in iam to populate serviceAccountId.
// +kubebuilder:validation:Optional
ServiceAccountIDRef *v1.Reference `json:"serviceAccountIdRef,omitempty" tf:"-"`
// Selector for a ServiceAccount in iam to populate serviceAccountId.
// +kubebuilder:validation:Optional
ServiceAccountIDSelector *v1.Selector `json:"serviceAccountIdSelector,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
Shard []ShardParameters `json:"shard,omitempty" tf:"shard,omitempty"`
// A group of clickhouse shards. The structure is documented below.
// +kubebuilder:validation:Optional
ShardGroup []ShardGroupParameters `json:"shardGroup,omitempty" tf:"shard_group,omitempty"`
// A user of the ClickHouse cluster. The structure is documented below.
// +kubebuilder:validation:Optional
User []UserParameters `json:"user,omitempty" tf:"user,omitempty"`
// Version of the ClickHouse server software.
// +kubebuilder:validation:Optional
Version *string `json:"version,omitempty" tf:"version,omitempty"`
// Configuration of the ZooKeeper subcluster. The structure is documented below.
// +kubebuilder:validation:Optional
Zookeeper []ZookeeperParameters `json:"zookeeper,omitempty" tf:"zookeeper,omitempty"`
}
type ClickhouseInitParameters struct {
// Main ClickHouse cluster configuration.
Config []ConfigInitParameters `json:"config,omitempty" tf:"config,omitempty"`
// Resources allocated to hosts of the ClickHouse subcluster. The structure is documented below.
Resources []ResourcesInitParameters `json:"resources,omitempty" tf:"resources,omitempty"`
}
type ClickhouseObservation struct {
// Main ClickHouse cluster configuration.
Config []ConfigObservation `json:"config,omitempty" tf:"config,omitempty"`
// Resources allocated to hosts of the ClickHouse subcluster. The structure is documented below.
Resources []ResourcesObservation `json:"resources,omitempty" tf:"resources,omitempty"`
}
type ClickhouseParameters struct {
// Main ClickHouse cluster configuration.
// +kubebuilder:validation:Optional
Config []ConfigParameters `json:"config,omitempty" tf:"config,omitempty"`
// Resources allocated to hosts of the ClickHouse subcluster. The structure is documented below.
// +kubebuilder:validation:Optional
Resources []ResourcesParameters `json:"resources,omitempty" tf:"resources,omitempty"`
}
type CloudStorageInitParameters struct {
// Enables temporary storage in the cluster repository of data requested from the object repository.
DataCacheEnabled *bool `json:"dataCacheEnabled,omitempty" tf:"data_cache_enabled,omitempty"`
// Defines the maximum amount of memory (in bytes) allocated in the cluster storage for temporary storage of data requested from the object storage.
DataCacheMaxSize *float64 `json:"dataCacheMaxSize,omitempty" tf:"data_cache_max_size,omitempty"`
// Whether to use Yandex Object Storage for storing ClickHouse data. Can be either true or false.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Sets the minimum free space ratio in the cluster storage. If the free space is lower than this value, the data is transferred to Yandex Object Storage. Acceptable values are 0 to 1, inclusive.
MoveFactor *float64 `json:"moveFactor,omitempty" tf:"move_factor,omitempty"`
// Disables merging of data parts in Yandex Object Storage.
PreferNotToMerge *bool `json:"preferNotToMerge,omitempty" tf:"prefer_not_to_merge,omitempty"`
}
type CloudStorageObservation struct {
// Enables temporary storage in the cluster repository of data requested from the object repository.
DataCacheEnabled *bool `json:"dataCacheEnabled,omitempty" tf:"data_cache_enabled,omitempty"`
// Defines the maximum amount of memory (in bytes) allocated in the cluster storage for temporary storage of data requested from the object storage.
DataCacheMaxSize *float64 `json:"dataCacheMaxSize,omitempty" tf:"data_cache_max_size,omitempty"`
// Whether to use Yandex Object Storage for storing ClickHouse data. Can be either true or false.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Sets the minimum free space ratio in the cluster storage. If the free space is lower than this value, the data is transferred to Yandex Object Storage. Acceptable values are 0 to 1, inclusive.
MoveFactor *float64 `json:"moveFactor,omitempty" tf:"move_factor,omitempty"`
// Disables merging of data parts in Yandex Object Storage.
PreferNotToMerge *bool `json:"preferNotToMerge,omitempty" tf:"prefer_not_to_merge,omitempty"`
}
type CloudStorageParameters struct {
// Enables temporary storage in the cluster repository of data requested from the object repository.
// +kubebuilder:validation:Optional
DataCacheEnabled *bool `json:"dataCacheEnabled,omitempty" tf:"data_cache_enabled,omitempty"`
// Defines the maximum amount of memory (in bytes) allocated in the cluster storage for temporary storage of data requested from the object storage.
// +kubebuilder:validation:Optional
DataCacheMaxSize *float64 `json:"dataCacheMaxSize,omitempty" tf:"data_cache_max_size,omitempty"`
// Whether to use Yandex Object Storage for storing ClickHouse data. Can be either true or false.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled" tf:"enabled,omitempty"`
// Sets the minimum free space ratio in the cluster storage. If the free space is lower than this value, the data is transferred to Yandex Object Storage. Acceptable values are 0 to 1, inclusive.
// +kubebuilder:validation:Optional
MoveFactor *float64 `json:"moveFactor,omitempty" tf:"move_factor,omitempty"`
// Disables merging of data parts in Yandex Object Storage.
// +kubebuilder:validation:Optional
PreferNotToMerge *bool `json:"preferNotToMerge,omitempty" tf:"prefer_not_to_merge,omitempty"`
}
type CompressionInitParameters struct {
// Compression level for ZSTD method.
Level *float64 `json:"level,omitempty" tf:"level,omitempty"`
// Method: Compression method. Two methods are available: LZ4 and zstd.
Method *string `json:"method,omitempty" tf:"method,omitempty"`
// Min part size: Minimum size (in bytes) of a data part in a table. ClickHouse only applies the rule to tables with data parts greater than or equal to the Min part size value.
MinPartSize *float64 `json:"minPartSize,omitempty" tf:"min_part_size,omitempty"`
// Min part size ratio: Minimum table part size to total table size ratio. ClickHouse only applies the rule to tables in which this ratio is greater than or equal to the Min part size ratio value.
MinPartSizeRatio *float64 `json:"minPartSizeRatio,omitempty" tf:"min_part_size_ratio,omitempty"`
}
type CompressionObservation struct {
// Compression level for ZSTD method.
Level *float64 `json:"level,omitempty" tf:"level,omitempty"`
// Method: Compression method. Two methods are available: LZ4 and zstd.
Method *string `json:"method,omitempty" tf:"method,omitempty"`
// Min part size: Minimum size (in bytes) of a data part in a table. ClickHouse only applies the rule to tables with data parts greater than or equal to the Min part size value.
MinPartSize *float64 `json:"minPartSize,omitempty" tf:"min_part_size,omitempty"`
// Min part size ratio: Minimum table part size to total table size ratio. ClickHouse only applies the rule to tables in which this ratio is greater than or equal to the Min part size ratio value.
MinPartSizeRatio *float64 `json:"minPartSizeRatio,omitempty" tf:"min_part_size_ratio,omitempty"`
}
type CompressionParameters struct {
// Compression level for ZSTD method.
// +kubebuilder:validation:Optional
Level *float64 `json:"level,omitempty" tf:"level,omitempty"`
// Method: Compression method. Two methods are available: LZ4 and zstd.
// +kubebuilder:validation:Optional
Method *string `json:"method" tf:"method,omitempty"`
// Min part size: Minimum size (in bytes) of a data part in a table. ClickHouse only applies the rule to tables with data parts greater than or equal to the Min part size value.
// +kubebuilder:validation:Optional
MinPartSize *float64 `json:"minPartSize" tf:"min_part_size,omitempty"`
// Min part size ratio: Minimum table part size to total table size ratio. ClickHouse only applies the rule to tables in which this ratio is greater than or equal to the Min part size ratio value.
// +kubebuilder:validation:Optional
MinPartSizeRatio *float64 `json:"minPartSizeRatio" tf:"min_part_size_ratio,omitempty"`
}
type ConfigInitParameters struct {
BackgroundFetchesPoolSize *float64 `json:"backgroundFetchesPoolSize,omitempty" tf:"background_fetches_pool_size,omitempty"`
BackgroundMergesMutationsConcurrencyRatio *float64 `json:"backgroundMergesMutationsConcurrencyRatio,omitempty" tf:"background_merges_mutations_concurrency_ratio,omitempty"`
BackgroundMessageBrokerSchedulePoolSize *float64 `json:"backgroundMessageBrokerSchedulePoolSize,omitempty" tf:"background_message_broker_schedule_pool_size,omitempty"`
BackgroundPoolSize *float64 `json:"backgroundPoolSize,omitempty" tf:"background_pool_size,omitempty"`
BackgroundSchedulePoolSize *float64 `json:"backgroundSchedulePoolSize,omitempty" tf:"background_schedule_pool_size,omitempty"`
// Data compression configuration. The structure is documented below.
Compression []CompressionInitParameters `json:"compression,omitempty" tf:"compression,omitempty"`
// A database of the ClickHouse cluster. The structure is documented below.
DefaultDatabase *string `json:"defaultDatabase,omitempty" tf:"default_database,omitempty"`
GeobaseEnabled *bool `json:"geobaseEnabled,omitempty" tf:"geobase_enabled,omitempty"`
GeobaseURI *string `json:"geobaseUri,omitempty" tf:"geobase_uri,omitempty"`
// Graphite rollup configuration. The structure is documented below.
GraphiteRollup []GraphiteRollupInitParameters `json:"graphiteRollup,omitempty" tf:"graphite_rollup,omitempty"`
// Kafka connection configuration. The structure is documented below.
Kafka []KafkaInitParameters `json:"kafka,omitempty" tf:"kafka,omitempty"`
// Kafka topic connection configuration. The structure is documented below.
KafkaTopic []KafkaTopicInitParameters `json:"kafkaTopic,omitempty" tf:"kafka_topic,omitempty"`
KeepAliveTimeout *float64 `json:"keepAliveTimeout,omitempty" tf:"keep_alive_timeout,omitempty"`
// ClickHouse server parameters. For more information, see
// the official documentation.
LogLevel *string `json:"logLevel,omitempty" tf:"log_level,omitempty"`
MarkCacheSize *float64 `json:"markCacheSize,omitempty" tf:"mark_cache_size,omitempty"`
MaxConcurrentQueries *float64 `json:"maxConcurrentQueries,omitempty" tf:"max_concurrent_queries,omitempty"`
MaxConnections *float64 `json:"maxConnections,omitempty" tf:"max_connections,omitempty"`
MaxPartitionSizeToDrop *float64 `json:"maxPartitionSizeToDrop,omitempty" tf:"max_partition_size_to_drop,omitempty"`
MaxTableSizeToDrop *float64 `json:"maxTableSizeToDrop,omitempty" tf:"max_table_size_to_drop,omitempty"`
// MergeTree engine configuration. The structure is documented below.
MergeTree []MergeTreeInitParameters `json:"mergeTree,omitempty" tf:"merge_tree,omitempty"`
MetricLogEnabled *bool `json:"metricLogEnabled,omitempty" tf:"metric_log_enabled,omitempty"`
MetricLogRetentionSize *float64 `json:"metricLogRetentionSize,omitempty" tf:"metric_log_retention_size,omitempty"`
MetricLogRetentionTime *float64 `json:"metricLogRetentionTime,omitempty" tf:"metric_log_retention_time,omitempty"`
PartLogRetentionSize *float64 `json:"partLogRetentionSize,omitempty" tf:"part_log_retention_size,omitempty"`
PartLogRetentionTime *float64 `json:"partLogRetentionTime,omitempty" tf:"part_log_retention_time,omitempty"`
QueryLogRetentionSize *float64 `json:"queryLogRetentionSize,omitempty" tf:"query_log_retention_size,omitempty"`
QueryLogRetentionTime *float64 `json:"queryLogRetentionTime,omitempty" tf:"query_log_retention_time,omitempty"`
QueryThreadLogEnabled *bool `json:"queryThreadLogEnabled,omitempty" tf:"query_thread_log_enabled,omitempty"`
QueryThreadLogRetentionSize *float64 `json:"queryThreadLogRetentionSize,omitempty" tf:"query_thread_log_retention_size,omitempty"`
QueryThreadLogRetentionTime *float64 `json:"queryThreadLogRetentionTime,omitempty" tf:"query_thread_log_retention_time,omitempty"`
// RabbitMQ connection configuration. The structure is documented below.
Rabbitmq []RabbitmqInitParameters `json:"rabbitmq,omitempty" tf:"rabbitmq,omitempty"`
TextLogEnabled *bool `json:"textLogEnabled,omitempty" tf:"text_log_enabled,omitempty"`
TextLogLevel *string `json:"textLogLevel,omitempty" tf:"text_log_level,omitempty"`
TextLogRetentionSize *float64 `json:"textLogRetentionSize,omitempty" tf:"text_log_retention_size,omitempty"`
TextLogRetentionTime *float64 `json:"textLogRetentionTime,omitempty" tf:"text_log_retention_time,omitempty"`
Timezone *string `json:"timezone,omitempty" tf:"timezone,omitempty"`
TotalMemoryProfilerStep *float64 `json:"totalMemoryProfilerStep,omitempty" tf:"total_memory_profiler_step,omitempty"`
TraceLogEnabled *bool `json:"traceLogEnabled,omitempty" tf:"trace_log_enabled,omitempty"`
TraceLogRetentionSize *float64 `json:"traceLogRetentionSize,omitempty" tf:"trace_log_retention_size,omitempty"`
TraceLogRetentionTime *float64 `json:"traceLogRetentionTime,omitempty" tf:"trace_log_retention_time,omitempty"`
UncompressedCacheSize *float64 `json:"uncompressedCacheSize,omitempty" tf:"uncompressed_cache_size,omitempty"`
}
type ConfigObservation struct {
BackgroundFetchesPoolSize *float64 `json:"backgroundFetchesPoolSize,omitempty" tf:"background_fetches_pool_size,omitempty"`
BackgroundMergesMutationsConcurrencyRatio *float64 `json:"backgroundMergesMutationsConcurrencyRatio,omitempty" tf:"background_merges_mutations_concurrency_ratio,omitempty"`
BackgroundMessageBrokerSchedulePoolSize *float64 `json:"backgroundMessageBrokerSchedulePoolSize,omitempty" tf:"background_message_broker_schedule_pool_size,omitempty"`
BackgroundPoolSize *float64 `json:"backgroundPoolSize,omitempty" tf:"background_pool_size,omitempty"`
BackgroundSchedulePoolSize *float64 `json:"backgroundSchedulePoolSize,omitempty" tf:"background_schedule_pool_size,omitempty"`
// Data compression configuration. The structure is documented below.
Compression []CompressionObservation `json:"compression,omitempty" tf:"compression,omitempty"`
// A database of the ClickHouse cluster. The structure is documented below.
DefaultDatabase *string `json:"defaultDatabase,omitempty" tf:"default_database,omitempty"`
GeobaseEnabled *bool `json:"geobaseEnabled,omitempty" tf:"geobase_enabled,omitempty"`
GeobaseURI *string `json:"geobaseUri,omitempty" tf:"geobase_uri,omitempty"`
// Graphite rollup configuration. The structure is documented below.
GraphiteRollup []GraphiteRollupObservation `json:"graphiteRollup,omitempty" tf:"graphite_rollup,omitempty"`
// Kafka connection configuration. The structure is documented below.
Kafka []KafkaObservation `json:"kafka,omitempty" tf:"kafka,omitempty"`
// Kafka topic connection configuration. The structure is documented below.
KafkaTopic []KafkaTopicObservation `json:"kafkaTopic,omitempty" tf:"kafka_topic,omitempty"`
KeepAliveTimeout *float64 `json:"keepAliveTimeout,omitempty" tf:"keep_alive_timeout,omitempty"`
// ClickHouse server parameters. For more information, see
// the official documentation.
LogLevel *string `json:"logLevel,omitempty" tf:"log_level,omitempty"`
MarkCacheSize *float64 `json:"markCacheSize,omitempty" tf:"mark_cache_size,omitempty"`
MaxConcurrentQueries *float64 `json:"maxConcurrentQueries,omitempty" tf:"max_concurrent_queries,omitempty"`
MaxConnections *float64 `json:"maxConnections,omitempty" tf:"max_connections,omitempty"`
MaxPartitionSizeToDrop *float64 `json:"maxPartitionSizeToDrop,omitempty" tf:"max_partition_size_to_drop,omitempty"`
MaxTableSizeToDrop *float64 `json:"maxTableSizeToDrop,omitempty" tf:"max_table_size_to_drop,omitempty"`
// MergeTree engine configuration. The structure is documented below.
MergeTree []MergeTreeObservation `json:"mergeTree,omitempty" tf:"merge_tree,omitempty"`
MetricLogEnabled *bool `json:"metricLogEnabled,omitempty" tf:"metric_log_enabled,omitempty"`
MetricLogRetentionSize *float64 `json:"metricLogRetentionSize,omitempty" tf:"metric_log_retention_size,omitempty"`
MetricLogRetentionTime *float64 `json:"metricLogRetentionTime,omitempty" tf:"metric_log_retention_time,omitempty"`
PartLogRetentionSize *float64 `json:"partLogRetentionSize,omitempty" tf:"part_log_retention_size,omitempty"`
PartLogRetentionTime *float64 `json:"partLogRetentionTime,omitempty" tf:"part_log_retention_time,omitempty"`
QueryLogRetentionSize *float64 `json:"queryLogRetentionSize,omitempty" tf:"query_log_retention_size,omitempty"`
QueryLogRetentionTime *float64 `json:"queryLogRetentionTime,omitempty" tf:"query_log_retention_time,omitempty"`
QueryThreadLogEnabled *bool `json:"queryThreadLogEnabled,omitempty" tf:"query_thread_log_enabled,omitempty"`
QueryThreadLogRetentionSize *float64 `json:"queryThreadLogRetentionSize,omitempty" tf:"query_thread_log_retention_size,omitempty"`
QueryThreadLogRetentionTime *float64 `json:"queryThreadLogRetentionTime,omitempty" tf:"query_thread_log_retention_time,omitempty"`
// RabbitMQ connection configuration. The structure is documented below.
Rabbitmq []RabbitmqObservation `json:"rabbitmq,omitempty" tf:"rabbitmq,omitempty"`
TextLogEnabled *bool `json:"textLogEnabled,omitempty" tf:"text_log_enabled,omitempty"`
TextLogLevel *string `json:"textLogLevel,omitempty" tf:"text_log_level,omitempty"`
TextLogRetentionSize *float64 `json:"textLogRetentionSize,omitempty" tf:"text_log_retention_size,omitempty"`
TextLogRetentionTime *float64 `json:"textLogRetentionTime,omitempty" tf:"text_log_retention_time,omitempty"`
Timezone *string `json:"timezone,omitempty" tf:"timezone,omitempty"`
TotalMemoryProfilerStep *float64 `json:"totalMemoryProfilerStep,omitempty" tf:"total_memory_profiler_step,omitempty"`
TraceLogEnabled *bool `json:"traceLogEnabled,omitempty" tf:"trace_log_enabled,omitempty"`
TraceLogRetentionSize *float64 `json:"traceLogRetentionSize,omitempty" tf:"trace_log_retention_size,omitempty"`
TraceLogRetentionTime *float64 `json:"traceLogRetentionTime,omitempty" tf:"trace_log_retention_time,omitempty"`
UncompressedCacheSize *float64 `json:"uncompressedCacheSize,omitempty" tf:"uncompressed_cache_size,omitempty"`
}
type ConfigParameters struct {
// +kubebuilder:validation:Optional
BackgroundFetchesPoolSize *float64 `json:"backgroundFetchesPoolSize,omitempty" tf:"background_fetches_pool_size,omitempty"`
// +kubebuilder:validation:Optional
BackgroundMergesMutationsConcurrencyRatio *float64 `json:"backgroundMergesMutationsConcurrencyRatio,omitempty" tf:"background_merges_mutations_concurrency_ratio,omitempty"`
// +kubebuilder:validation:Optional
BackgroundMessageBrokerSchedulePoolSize *float64 `json:"backgroundMessageBrokerSchedulePoolSize,omitempty" tf:"background_message_broker_schedule_pool_size,omitempty"`
// +kubebuilder:validation:Optional
BackgroundPoolSize *float64 `json:"backgroundPoolSize,omitempty" tf:"background_pool_size,omitempty"`
// +kubebuilder:validation:Optional
BackgroundSchedulePoolSize *float64 `json:"backgroundSchedulePoolSize,omitempty" tf:"background_schedule_pool_size,omitempty"`
// Data compression configuration. The structure is documented below.
// +kubebuilder:validation:Optional
Compression []CompressionParameters `json:"compression,omitempty" tf:"compression,omitempty"`
// A database of the ClickHouse cluster. The structure is documented below.
// +kubebuilder:validation:Optional
DefaultDatabase *string `json:"defaultDatabase,omitempty" tf:"default_database,omitempty"`
// +kubebuilder:validation:Optional
GeobaseEnabled *bool `json:"geobaseEnabled,omitempty" tf:"geobase_enabled,omitempty"`
// +kubebuilder:validation:Optional
GeobaseURI *string `json:"geobaseUri,omitempty" tf:"geobase_uri,omitempty"`
// Graphite rollup configuration. The structure is documented below.
// +kubebuilder:validation:Optional
GraphiteRollup []GraphiteRollupParameters `json:"graphiteRollup,omitempty" tf:"graphite_rollup,omitempty"`
// Kafka connection configuration. The structure is documented below.
// +kubebuilder:validation:Optional
Kafka []KafkaParameters `json:"kafka,omitempty" tf:"kafka,omitempty"`
// Kafka topic connection configuration. The structure is documented below.
// +kubebuilder:validation:Optional
KafkaTopic []KafkaTopicParameters `json:"kafkaTopic,omitempty" tf:"kafka_topic,omitempty"`
// +kubebuilder:validation:Optional
KeepAliveTimeout *float64 `json:"keepAliveTimeout,omitempty" tf:"keep_alive_timeout,omitempty"`
// ClickHouse server parameters. For more information, see
// the official documentation.
// +kubebuilder:validation:Optional
LogLevel *string `json:"logLevel,omitempty" tf:"log_level,omitempty"`
// +kubebuilder:validation:Optional
MarkCacheSize *float64 `json:"markCacheSize,omitempty" tf:"mark_cache_size,omitempty"`
// +kubebuilder:validation:Optional
MaxConcurrentQueries *float64 `json:"maxConcurrentQueries,omitempty" tf:"max_concurrent_queries,omitempty"`
// +kubebuilder:validation:Optional
MaxConnections *float64 `json:"maxConnections,omitempty" tf:"max_connections,omitempty"`
// +kubebuilder:validation:Optional
MaxPartitionSizeToDrop *float64 `json:"maxPartitionSizeToDrop,omitempty" tf:"max_partition_size_to_drop,omitempty"`
// +kubebuilder:validation:Optional
MaxTableSizeToDrop *float64 `json:"maxTableSizeToDrop,omitempty" tf:"max_table_size_to_drop,omitempty"`
// MergeTree engine configuration. The structure is documented below.
// +kubebuilder:validation:Optional
MergeTree []MergeTreeParameters `json:"mergeTree,omitempty" tf:"merge_tree,omitempty"`
// +kubebuilder:validation:Optional
MetricLogEnabled *bool `json:"metricLogEnabled,omitempty" tf:"metric_log_enabled,omitempty"`
// +kubebuilder:validation:Optional
MetricLogRetentionSize *float64 `json:"metricLogRetentionSize,omitempty" tf:"metric_log_retention_size,omitempty"`
// +kubebuilder:validation:Optional
MetricLogRetentionTime *float64 `json:"metricLogRetentionTime,omitempty" tf:"metric_log_retention_time,omitempty"`
// +kubebuilder:validation:Optional
PartLogRetentionSize *float64 `json:"partLogRetentionSize,omitempty" tf:"part_log_retention_size,omitempty"`
// +kubebuilder:validation:Optional
PartLogRetentionTime *float64 `json:"partLogRetentionTime,omitempty" tf:"part_log_retention_time,omitempty"`
// +kubebuilder:validation:Optional
QueryLogRetentionSize *float64 `json:"queryLogRetentionSize,omitempty" tf:"query_log_retention_size,omitempty"`
// +kubebuilder:validation:Optional
QueryLogRetentionTime *float64 `json:"queryLogRetentionTime,omitempty" tf:"query_log_retention_time,omitempty"`
// +kubebuilder:validation:Optional
QueryThreadLogEnabled *bool `json:"queryThreadLogEnabled,omitempty" tf:"query_thread_log_enabled,omitempty"`
// +kubebuilder:validation:Optional
QueryThreadLogRetentionSize *float64 `json:"queryThreadLogRetentionSize,omitempty" tf:"query_thread_log_retention_size,omitempty"`
// +kubebuilder:validation:Optional
QueryThreadLogRetentionTime *float64 `json:"queryThreadLogRetentionTime,omitempty" tf:"query_thread_log_retention_time,omitempty"`
// RabbitMQ connection configuration. The structure is documented below.
// +kubebuilder:validation:Optional
Rabbitmq []RabbitmqParameters `json:"rabbitmq,omitempty" tf:"rabbitmq,omitempty"`
// +kubebuilder:validation:Optional
TextLogEnabled *bool `json:"textLogEnabled,omitempty" tf:"text_log_enabled,omitempty"`
// +kubebuilder:validation:Optional
TextLogLevel *string `json:"textLogLevel,omitempty" tf:"text_log_level,omitempty"`
// +kubebuilder:validation:Optional
TextLogRetentionSize *float64 `json:"textLogRetentionSize,omitempty" tf:"text_log_retention_size,omitempty"`
// +kubebuilder:validation:Optional
TextLogRetentionTime *float64 `json:"textLogRetentionTime,omitempty" tf:"text_log_retention_time,omitempty"`
// +kubebuilder:validation:Optional
Timezone *string `json:"timezone,omitempty" tf:"timezone,omitempty"`
// +kubebuilder:validation:Optional
TotalMemoryProfilerStep *float64 `json:"totalMemoryProfilerStep,omitempty" tf:"total_memory_profiler_step,omitempty"`
// +kubebuilder:validation:Optional
TraceLogEnabled *bool `json:"traceLogEnabled,omitempty" tf:"trace_log_enabled,omitempty"`
// +kubebuilder:validation:Optional
TraceLogRetentionSize *float64 `json:"traceLogRetentionSize,omitempty" tf:"trace_log_retention_size,omitempty"`
// +kubebuilder:validation:Optional
TraceLogRetentionTime *float64 `json:"traceLogRetentionTime,omitempty" tf:"trace_log_retention_time,omitempty"`
// +kubebuilder:validation:Optional
UncompressedCacheSize *float64 `json:"uncompressedCacheSize,omitempty" tf:"uncompressed_cache_size,omitempty"`
}
type DatabaseInitParameters struct {
// The name of the database.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type DatabaseObservation struct {
// The name of the database.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type DatabaseParameters struct {
// The name of the database.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
}
type FormatSchemaInitParameters struct {
// The name of the format schema.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Type of the format schema.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
// Format schema file URL. You can only use format schemas stored in Yandex Object Storage.
URI *string `json:"uri,omitempty" tf:"uri,omitempty"`
}
type FormatSchemaObservation struct {
// The name of the format schema.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Type of the format schema.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
// Format schema file URL. You can only use format schemas stored in Yandex Object Storage.
URI *string `json:"uri,omitempty" tf:"uri,omitempty"`
}
type FormatSchemaParameters struct {
// The name of the format schema.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// Type of the format schema.
// +kubebuilder:validation:Optional
Type *string `json:"type" tf:"type,omitempty"`
// Format schema file URL. You can only use format schemas stored in Yandex Object Storage.
// +kubebuilder:validation:Optional