generated from crossplane/upjet-provider-template
/
zz_cluster_types.go
executable file
·937 lines (689 loc) · 44.2 KB
/
zz_cluster_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
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
/*
Copyright 2022 Upbound Inc.
*/
// 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 CiliumInitParameters struct {
}
type CiliumObservation struct {
}
type CiliumParameters struct {
}
type ClusterInitParameters struct {
// CIDR block. IP range for allocating pod addresses.
// It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be
// set up for this CIDR blocks in node subnets.
ClusterIPv4Range *string `json:"clusterIpv4Range,omitempty" tf:"cluster_ipv4_range,omitempty"`
// Identical to cluster_ipv4_range but for IPv6 protocol.
ClusterIPv6Range *string `json:"clusterIpv6Range,omitempty" tf:"cluster_ipv6_range,omitempty"`
// A description of the Kubernetes cluster.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The ID of the folder that the Kubernetes cluster 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:"-"`
// cluster KMS provider parameters.
KMSProvider []KMSProviderInitParameters `json:"kmsProvider,omitempty" tf:"kms_provider,omitempty"`
// A set of key/value label pairs to assign to the Kubernetes cluster.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// Kubernetes master configuration options. The structure is documented below.
Master []MasterInitParameters `json:"master,omitempty" tf:"master,omitempty"`
// Name of a specific Kubernetes cluster.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The ID of the cluster network.
// +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:"-"`
// Network Implementation options. The structure is documented below.
NetworkImplementation []NetworkImplementationInitParameters `json:"networkImplementation,omitempty" tf:"network_implementation,omitempty"`
// Network policy provider for the cluster. Possible values: CALICO.
NetworkPolicyProvider *string `json:"networkPolicyProvider,omitempty" tf:"network_policy_provider,omitempty"`
// Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
NodeIPv4CidrMaskSize *float64 `json:"nodeIpv4CidrMaskSize,omitempty" tf:"node_ipv4_cidr_mask_size,omitempty"`
// Service account to be used by the worker nodes of the Kubernetes cluster
// to access Container Registry or to push node logs and metrics.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.SecurityGroup
NodeServiceAccountID *string `json:"nodeServiceAccountId,omitempty" tf:"node_service_account_id,omitempty"`
// Reference to a SecurityGroup in vpc to populate nodeServiceAccountId.
// +kubebuilder:validation:Optional
NodeServiceAccountIDRef *v1.Reference `json:"nodeServiceAccountIdRef,omitempty" tf:"-"`
// Selector for a SecurityGroup in vpc to populate nodeServiceAccountId.
// +kubebuilder:validation:Optional
NodeServiceAccountIDSelector *v1.Selector `json:"nodeServiceAccountIdSelector,omitempty" tf:"-"`
// Cluster release channel.
ReleaseChannel *string `json:"releaseChannel,omitempty" tf:"release_channel,omitempty"`
// Service account to be used for provisioning Compute Cloud and VPC resources
// for Kubernetes cluster. Selected service account should have edit role on the folder where the Kubernetes
// cluster will be located and on the folder where selected network resides.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.SecurityGroup
ServiceAccountID *string `json:"serviceAccountId,omitempty" tf:"service_account_id,omitempty"`
// Reference to a SecurityGroup in vpc to populate serviceAccountId.
// +kubebuilder:validation:Optional
ServiceAccountIDRef *v1.Reference `json:"serviceAccountIdRef,omitempty" tf:"-"`
// Selector for a SecurityGroup in vpc to populate serviceAccountId.
// +kubebuilder:validation:Optional
ServiceAccountIDSelector *v1.Selector `json:"serviceAccountIdSelector,omitempty" tf:"-"`
// CIDR block. IP range Kubernetes service Kubernetes cluster
// IP addresses will be allocated from. It should not overlap with any subnet in the network
// the Kubernetes cluster located in.
ServiceIPv4Range *string `json:"serviceIpv4Range,omitempty" tf:"service_ipv4_range,omitempty"`
// Identical to service_ipv4_range but for IPv6 protocol.
ServiceIPv6Range *string `json:"serviceIpv6Range,omitempty" tf:"service_ipv6_range,omitempty"`
}
type ClusterObservation struct {
// CIDR block. IP range for allocating pod addresses.
// It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be
// set up for this CIDR blocks in node subnets.
ClusterIPv4Range *string `json:"clusterIpv4Range,omitempty" tf:"cluster_ipv4_range,omitempty"`
// Identical to cluster_ipv4_range but for IPv6 protocol.
ClusterIPv6Range *string `json:"clusterIpv6Range,omitempty" tf:"cluster_ipv6_range,omitempty"`
// (Computed) The Kubernetes cluster creation timestamp.
CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"`
// A description of the Kubernetes cluster.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The ID of the folder that the Kubernetes cluster belongs to.
// If it is not provided, the default provider folder is used.
FolderID *string `json:"folderId,omitempty" tf:"folder_id,omitempty"`
// (Computed) Health of the Kubernetes cluster.
Health *string `json:"health,omitempty" tf:"health,omitempty"`
// (Computed) ID of a new Kubernetes cluster.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// cluster KMS provider parameters.
KMSProvider []KMSProviderObservation `json:"kmsProvider,omitempty" tf:"kms_provider,omitempty"`
// A set of key/value label pairs to assign to the Kubernetes cluster.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// Log group where cluster stores cluster system logs, like audit, events, or controlplane logs.
LogGroupID *string `json:"logGroupId,omitempty" tf:"log_group_id,omitempty"`
// Kubernetes master configuration options. The structure is documented below.
Master []MasterObservation `json:"master,omitempty" tf:"master,omitempty"`
// Name of a specific Kubernetes cluster.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The ID of the cluster network.
NetworkID *string `json:"networkId,omitempty" tf:"network_id,omitempty"`
// Network Implementation options. The structure is documented below.
NetworkImplementation []NetworkImplementationObservation `json:"networkImplementation,omitempty" tf:"network_implementation,omitempty"`
// Network policy provider for the cluster. Possible values: CALICO.
NetworkPolicyProvider *string `json:"networkPolicyProvider,omitempty" tf:"network_policy_provider,omitempty"`
// Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
NodeIPv4CidrMaskSize *float64 `json:"nodeIpv4CidrMaskSize,omitempty" tf:"node_ipv4_cidr_mask_size,omitempty"`
// Service account to be used by the worker nodes of the Kubernetes cluster
// to access Container Registry or to push node logs and metrics.
NodeServiceAccountID *string `json:"nodeServiceAccountId,omitempty" tf:"node_service_account_id,omitempty"`
// Cluster release channel.
ReleaseChannel *string `json:"releaseChannel,omitempty" tf:"release_channel,omitempty"`
// Service account to be used for provisioning Compute Cloud and VPC resources
// for Kubernetes cluster. Selected service account should have edit role on the folder where the Kubernetes
// cluster will be located and on the folder where selected network resides.
ServiceAccountID *string `json:"serviceAccountId,omitempty" tf:"service_account_id,omitempty"`
// CIDR block. IP range Kubernetes service Kubernetes cluster
// IP addresses will be allocated from. It should not overlap with any subnet in the network
// the Kubernetes cluster located in.
ServiceIPv4Range *string `json:"serviceIpv4Range,omitempty" tf:"service_ipv4_range,omitempty"`
// Identical to service_ipv4_range but for IPv6 protocol.
ServiceIPv6Range *string `json:"serviceIpv6Range,omitempty" tf:"service_ipv6_range,omitempty"`
// (Computed)Status of the Kubernetes cluster.
Status *string `json:"status,omitempty" tf:"status,omitempty"`
}
type ClusterParameters struct {
// CIDR block. IP range for allocating pod addresses.
// It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be
// set up for this CIDR blocks in node subnets.
// +kubebuilder:validation:Optional
ClusterIPv4Range *string `json:"clusterIpv4Range,omitempty" tf:"cluster_ipv4_range,omitempty"`
// Identical to cluster_ipv4_range but for IPv6 protocol.
// +kubebuilder:validation:Optional
ClusterIPv6Range *string `json:"clusterIpv6Range,omitempty" tf:"cluster_ipv6_range,omitempty"`
// A description of the Kubernetes cluster.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The ID of the folder that the Kubernetes cluster 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:"-"`
// cluster KMS provider parameters.
// +kubebuilder:validation:Optional
KMSProvider []KMSProviderParameters `json:"kmsProvider,omitempty" tf:"kms_provider,omitempty"`
// A set of key/value label pairs to assign to the Kubernetes cluster.
// +kubebuilder:validation:Optional
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// Kubernetes master configuration options. The structure is documented below.
// +kubebuilder:validation:Optional
Master []MasterParameters `json:"master,omitempty" tf:"master,omitempty"`
// Name of a specific Kubernetes cluster.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The ID of the cluster network.
// +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:"-"`
// Network Implementation options. The structure is documented below.
// +kubebuilder:validation:Optional
NetworkImplementation []NetworkImplementationParameters `json:"networkImplementation,omitempty" tf:"network_implementation,omitempty"`
// Network policy provider for the cluster. Possible values: CALICO.
// +kubebuilder:validation:Optional
NetworkPolicyProvider *string `json:"networkPolicyProvider,omitempty" tf:"network_policy_provider,omitempty"`
// Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
// +kubebuilder:validation:Optional
NodeIPv4CidrMaskSize *float64 `json:"nodeIpv4CidrMaskSize,omitempty" tf:"node_ipv4_cidr_mask_size,omitempty"`
// Service account to be used by the worker nodes of the Kubernetes cluster
// to access Container Registry or to push node logs and metrics.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.SecurityGroup
// +kubebuilder:validation:Optional
NodeServiceAccountID *string `json:"nodeServiceAccountId,omitempty" tf:"node_service_account_id,omitempty"`
// Reference to a SecurityGroup in vpc to populate nodeServiceAccountId.
// +kubebuilder:validation:Optional
NodeServiceAccountIDRef *v1.Reference `json:"nodeServiceAccountIdRef,omitempty" tf:"-"`
// Selector for a SecurityGroup in vpc to populate nodeServiceAccountId.
// +kubebuilder:validation:Optional
NodeServiceAccountIDSelector *v1.Selector `json:"nodeServiceAccountIdSelector,omitempty" tf:"-"`
// Cluster release channel.
// +kubebuilder:validation:Optional
ReleaseChannel *string `json:"releaseChannel,omitempty" tf:"release_channel,omitempty"`
// Service account to be used for provisioning Compute Cloud and VPC resources
// for Kubernetes cluster. Selected service account should have edit role on the folder where the Kubernetes
// cluster will be located and on the folder where selected network resides.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.SecurityGroup
// +kubebuilder:validation:Optional
ServiceAccountID *string `json:"serviceAccountId,omitempty" tf:"service_account_id,omitempty"`
// Reference to a SecurityGroup in vpc to populate serviceAccountId.
// +kubebuilder:validation:Optional
ServiceAccountIDRef *v1.Reference `json:"serviceAccountIdRef,omitempty" tf:"-"`
// Selector for a SecurityGroup in vpc to populate serviceAccountId.
// +kubebuilder:validation:Optional
ServiceAccountIDSelector *v1.Selector `json:"serviceAccountIdSelector,omitempty" tf:"-"`
// CIDR block. IP range Kubernetes service Kubernetes cluster
// IP addresses will be allocated from. It should not overlap with any subnet in the network
// the Kubernetes cluster located in.
// +kubebuilder:validation:Optional
ServiceIPv4Range *string `json:"serviceIpv4Range,omitempty" tf:"service_ipv4_range,omitempty"`
// Identical to service_ipv4_range but for IPv6 protocol.
// +kubebuilder:validation:Optional
ServiceIPv6Range *string `json:"serviceIpv6Range,omitempty" tf:"service_ipv6_range,omitempty"`
}
type KMSProviderInitParameters struct {
// KMS key ID.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/kms/v1alpha1.SymmetricKey
KeyID *string `json:"keyId,omitempty" tf:"key_id,omitempty"`
// Reference to a SymmetricKey in kms to populate keyId.
// +kubebuilder:validation:Optional
KeyIDRef *v1.Reference `json:"keyIdRef,omitempty" tf:"-"`
// Selector for a SymmetricKey in kms to populate keyId.
// +kubebuilder:validation:Optional
KeyIDSelector *v1.Selector `json:"keyIdSelector,omitempty" tf:"-"`
}
type KMSProviderObservation struct {
// KMS key ID.
KeyID *string `json:"keyId,omitempty" tf:"key_id,omitempty"`
}
type KMSProviderParameters struct {
// KMS key ID.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/kms/v1alpha1.SymmetricKey
// +kubebuilder:validation:Optional
KeyID *string `json:"keyId,omitempty" tf:"key_id,omitempty"`
// Reference to a SymmetricKey in kms to populate keyId.
// +kubebuilder:validation:Optional
KeyIDRef *v1.Reference `json:"keyIdRef,omitempty" tf:"-"`
// Selector for a SymmetricKey in kms to populate keyId.
// +kubebuilder:validation:Optional
KeyIDSelector *v1.Selector `json:"keyIdSelector,omitempty" tf:"-"`
}
type LocationInitParameters struct {
// ID of the subnet. If no ID is specified, and there only one subnet in specified zone, an address in this subnet will be allocated.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.Subnet
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
// Reference to a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDRef *v1.Reference `json:"subnetIdRef,omitempty" tf:"-"`
// Selector for a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"`
// ID of the availability zone.
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type LocationObservation struct {
// ID of the subnet. If no ID is specified, and there only one subnet in specified zone, an address in this subnet will be allocated.
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
// ID of the availability zone.
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type LocationParameters struct {
// ID of the subnet. If no ID is specified, and there only one subnet in specified zone, an address in this subnet will be allocated.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.Subnet
// +kubebuilder:validation:Optional
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
// Reference to a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDRef *v1.Reference `json:"subnetIdRef,omitempty" tf:"-"`
// Selector for a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"`
// ID of the availability zone.
// +kubebuilder:validation:Optional
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type MaintenancePolicyInitParameters struct {
// Boolean flag that specifies if master can be upgraded automatically. When omitted, default value is TRUE.
AutoUpgrade *bool `json:"autoUpgrade,omitempty" tf:"auto_upgrade,omitempty"`
// (Computed) This structure specifies maintenance window, when update for master is allowed. When omitted, it defaults to any time.
// To specify time of day interval, for all days, one element should be provided, with two fields set, start_time and duration.
// Please see zonal_cluster_resource_name config example.
MaintenanceWindow []MaintenanceWindowInitParameters `json:"maintenanceWindow,omitempty" tf:"maintenance_window,omitempty"`
}
type MaintenancePolicyObservation struct {
// Boolean flag that specifies if master can be upgraded automatically. When omitted, default value is TRUE.
AutoUpgrade *bool `json:"autoUpgrade,omitempty" tf:"auto_upgrade,omitempty"`
// (Computed) This structure specifies maintenance window, when update for master is allowed. When omitted, it defaults to any time.
// To specify time of day interval, for all days, one element should be provided, with two fields set, start_time and duration.
// Please see zonal_cluster_resource_name config example.
MaintenanceWindow []MaintenanceWindowObservation `json:"maintenanceWindow,omitempty" tf:"maintenance_window,omitempty"`
}
type MaintenancePolicyParameters struct {
// Boolean flag that specifies if master can be upgraded automatically. When omitted, default value is TRUE.
// +kubebuilder:validation:Optional
AutoUpgrade *bool `json:"autoUpgrade" tf:"auto_upgrade,omitempty"`
// (Computed) This structure specifies maintenance window, when update for master is allowed. When omitted, it defaults to any time.
// To specify time of day interval, for all days, one element should be provided, with two fields set, start_time and duration.
// Please see zonal_cluster_resource_name config example.
// +kubebuilder:validation:Optional
MaintenanceWindow []MaintenanceWindowParameters `json:"maintenanceWindow,omitempty" tf:"maintenance_window,omitempty"`
}
type MaintenanceWindowInitParameters struct {
Day *string `json:"day,omitempty" tf:"day,omitempty"`
Duration *string `json:"duration,omitempty" tf:"duration,omitempty"`
StartTime *string `json:"startTime,omitempty" tf:"start_time,omitempty"`
}
type MaintenanceWindowObservation struct {
Day *string `json:"day,omitempty" tf:"day,omitempty"`
Duration *string `json:"duration,omitempty" tf:"duration,omitempty"`
StartTime *string `json:"startTime,omitempty" tf:"start_time,omitempty"`
}
type MaintenanceWindowParameters struct {
// +kubebuilder:validation:Optional
Day *string `json:"day,omitempty" tf:"day,omitempty"`
// +kubebuilder:validation:Optional
Duration *string `json:"duration" tf:"duration,omitempty"`
// +kubebuilder:validation:Optional
StartTime *string `json:"startTime" tf:"start_time,omitempty"`
}
type MasterInitParameters struct {
EtcdClusterSize *float64 `json:"etcdClusterSize,omitempty" tf:"etcd_cluster_size,omitempty"`
ExternalV6Address *string `json:"externalV6Address,omitempty" tf:"external_v6_address,omitempty"`
// (Computed) Maintenance policy for Kubernetes master.
// If policy is omitted, automatic revision upgrades of the kubernetes master are enabled and could happen at any time.
// Revision upgrades are performed only within the same minor version, e.g. 1.13.
// Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
MaintenancePolicy []MaintenancePolicyInitParameters `json:"maintenancePolicy,omitempty" tf:"maintenance_policy,omitempty"`
// Cluster master's instances locations array (zone and subnet).
// Cannot be used together with zonal or regional. Currently, supports either one, for zonal master, or three instances of master_location.
// Can be updated inplace. When creating regional cluster (three master instances), its region will be evaluated automatically by backend.
// The structure is documented below.
MasterLocation []MasterLocationInitParameters `json:"masterLocation,omitempty" tf:"master_location,omitempty"`
// Master Logging options. The structure is documented below.
MasterLogging []MasterLoggingInitParameters `json:"masterLogging,omitempty" tf:"master_logging,omitempty"`
// (Computed) Boolean flag. When true, Kubernetes master will have visible ipv4 address.
PublicIP *bool `json:"publicIp,omitempty" tf:"public_ip,omitempty"`
// Initialize parameters for Regional Master (highly available master). The structure is documented below.
Regional []RegionalInitParameters `json:"regional,omitempty" tf:"regional,omitempty"`
// List of security group IDs to which the Kubernetes cluster belongs.
// +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:"-"`
// (Computed) Version of Kubernetes that will be used for master.
Version *string `json:"version,omitempty" tf:"version,omitempty"`
// Initialize parameters for Zonal Master (single node master). The structure is documented below.
Zonal []ZonalInitParameters `json:"zonal,omitempty" tf:"zonal,omitempty"`
}
type MasterLocationInitParameters struct {
// ID of the subnet. If no ID is specified, and there only one subnet in specified zone, an address in this subnet will be allocated.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.Subnet
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
// Reference to a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDRef *v1.Reference `json:"subnetIdRef,omitempty" tf:"-"`
// Selector for a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"`
// ID of the availability zone.
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type MasterLocationObservation struct {
// ID of the subnet. If no ID is specified, and there only one subnet in specified zone, an address in this subnet will be allocated.
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
// ID of the availability zone.
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type MasterLocationParameters struct {
// ID of the subnet. If no ID is specified, and there only one subnet in specified zone, an address in this subnet will be allocated.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.Subnet
// +kubebuilder:validation:Optional
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
// Reference to a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDRef *v1.Reference `json:"subnetIdRef,omitempty" tf:"-"`
// Selector for a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"`
// ID of the availability zone.
// +kubebuilder:validation:Optional
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type MasterLoggingInitParameters struct {
// Boolean flag that specifies if kube-apiserver audit logs should be sent to Yandex Cloud Logging.
AuditEnabled *bool `json:"auditEnabled,omitempty" tf:"audit_enabled,omitempty"`
// Boolean flag that specifies if cluster-autoscaler logs should be sent to Yandex Cloud Logging.
ClusterAutoscalerEnabled *bool `json:"clusterAutoscalerEnabled,omitempty" tf:"cluster_autoscaler_enabled,omitempty"`
// Boolean flag that specifies if master components logs should be sent to Yandex Cloud Logging. The exact components that will send their logs must be configured via the options described below.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Boolean flag that specifies if kubernetes cluster events should be sent to Yandex Cloud Logging.
EventsEnabled *bool `json:"eventsEnabled,omitempty" tf:"events_enabled,omitempty"`
// ID of the folder default Log group of which should be used to collect logs.
FolderID *string `json:"folderId,omitempty" tf:"folder_id,omitempty"`
// Boolean flag that specifies if kube-apiserver logs should be sent to Yandex Cloud Logging.
KubeApiserverEnabled *bool `json:"kubeApiserverEnabled,omitempty" tf:"kube_apiserver_enabled,omitempty"`
// ID of the Yandex Cloud Logging Log group.
LogGroupID *string `json:"logGroupId,omitempty" tf:"log_group_id,omitempty"`
}
type MasterLoggingObservation struct {
// Boolean flag that specifies if kube-apiserver audit logs should be sent to Yandex Cloud Logging.
AuditEnabled *bool `json:"auditEnabled,omitempty" tf:"audit_enabled,omitempty"`
// Boolean flag that specifies if cluster-autoscaler logs should be sent to Yandex Cloud Logging.
ClusterAutoscalerEnabled *bool `json:"clusterAutoscalerEnabled,omitempty" tf:"cluster_autoscaler_enabled,omitempty"`
// Boolean flag that specifies if master components logs should be sent to Yandex Cloud Logging. The exact components that will send their logs must be configured via the options described below.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Boolean flag that specifies if kubernetes cluster events should be sent to Yandex Cloud Logging.
EventsEnabled *bool `json:"eventsEnabled,omitempty" tf:"events_enabled,omitempty"`
// ID of the folder default Log group of which should be used to collect logs.
FolderID *string `json:"folderId,omitempty" tf:"folder_id,omitempty"`
// Boolean flag that specifies if kube-apiserver logs should be sent to Yandex Cloud Logging.
KubeApiserverEnabled *bool `json:"kubeApiserverEnabled,omitempty" tf:"kube_apiserver_enabled,omitempty"`
// ID of the Yandex Cloud Logging Log group.
LogGroupID *string `json:"logGroupId,omitempty" tf:"log_group_id,omitempty"`
}
type MasterLoggingParameters struct {
// Boolean flag that specifies if kube-apiserver audit logs should be sent to Yandex Cloud Logging.
// +kubebuilder:validation:Optional
AuditEnabled *bool `json:"auditEnabled,omitempty" tf:"audit_enabled,omitempty"`
// Boolean flag that specifies if cluster-autoscaler logs should be sent to Yandex Cloud Logging.
// +kubebuilder:validation:Optional
ClusterAutoscalerEnabled *bool `json:"clusterAutoscalerEnabled,omitempty" tf:"cluster_autoscaler_enabled,omitempty"`
// Boolean flag that specifies if master components logs should be sent to Yandex Cloud Logging. The exact components that will send their logs must be configured via the options described below.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Boolean flag that specifies if kubernetes cluster events should be sent to Yandex Cloud Logging.
// +kubebuilder:validation:Optional
EventsEnabled *bool `json:"eventsEnabled,omitempty" tf:"events_enabled,omitempty"`
// ID of the folder default Log group of which should be used to collect logs.
// +kubebuilder:validation:Optional
FolderID *string `json:"folderId,omitempty" tf:"folder_id,omitempty"`
// Boolean flag that specifies if kube-apiserver logs should be sent to Yandex Cloud Logging.
// +kubebuilder:validation:Optional
KubeApiserverEnabled *bool `json:"kubeApiserverEnabled,omitempty" tf:"kube_apiserver_enabled,omitempty"`
// ID of the Yandex Cloud Logging Log group.
// +kubebuilder:validation:Optional
LogGroupID *string `json:"logGroupId,omitempty" tf:"log_group_id,omitempty"`
}
type MasterObservation struct {
// (Computed) PEM-encoded public certificate that is the root of trust for the Kubernetes cluster.
ClusterCACertificate *string `json:"clusterCaCertificate,omitempty" tf:"cluster_ca_certificate,omitempty"`
EtcdClusterSize *float64 `json:"etcdClusterSize,omitempty" tf:"etcd_cluster_size,omitempty"`
// (Computed) An IPv4 external network address that is assigned to the master.
ExternalV4Address *string `json:"externalV4Address,omitempty" tf:"external_v4_address,omitempty"`
// (Computed) External endpoint that can be used to access Kubernetes cluster API from the internet (outside of the cloud).
ExternalV4Endpoint *string `json:"externalV4Endpoint,omitempty" tf:"external_v4_endpoint,omitempty"`
ExternalV6Address *string `json:"externalV6Address,omitempty" tf:"external_v6_address,omitempty"`
ExternalV6Endpoint *string `json:"externalV6Endpoint,omitempty" tf:"external_v6_endpoint,omitempty"`
// (Computed) An IPv4 internal network address that is assigned to the master.
InternalV4Address *string `json:"internalV4Address,omitempty" tf:"internal_v4_address,omitempty"`
// (Computed) Internal endpoint that can be used to connect to the master from cloud networks.
InternalV4Endpoint *string `json:"internalV4Endpoint,omitempty" tf:"internal_v4_endpoint,omitempty"`
// (Computed) Maintenance policy for Kubernetes master.
// If policy is omitted, automatic revision upgrades of the kubernetes master are enabled and could happen at any time.
// Revision upgrades are performed only within the same minor version, e.g. 1.13.
// Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
MaintenancePolicy []MaintenancePolicyObservation `json:"maintenancePolicy,omitempty" tf:"maintenance_policy,omitempty"`
// Cluster master's instances locations array (zone and subnet).
// Cannot be used together with zonal or regional. Currently, supports either one, for zonal master, or three instances of master_location.
// Can be updated inplace. When creating regional cluster (three master instances), its region will be evaluated automatically by backend.
// The structure is documented below.
MasterLocation []MasterLocationObservation `json:"masterLocation,omitempty" tf:"master_location,omitempty"`
// Master Logging options. The structure is documented below.
MasterLogging []MasterLoggingObservation `json:"masterLogging,omitempty" tf:"master_logging,omitempty"`
// (Computed) Boolean flag. When true, Kubernetes master will have visible ipv4 address.
PublicIP *bool `json:"publicIp,omitempty" tf:"public_ip,omitempty"`
// Initialize parameters for Regional Master (highly available master). The structure is documented below.
Regional []RegionalObservation `json:"regional,omitempty" tf:"regional,omitempty"`
// List of security group IDs to which the Kubernetes cluster belongs.
// +listType=set
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// (Computed) Version of Kubernetes that will be used for master.
Version *string `json:"version,omitempty" tf:"version,omitempty"`
// (Computed) Information about cluster version. The structure is documented below.
VersionInfo []VersionInfoObservation `json:"versionInfo,omitempty" tf:"version_info,omitempty"`
// Initialize parameters for Zonal Master (single node master). The structure is documented below.
Zonal []ZonalObservation `json:"zonal,omitempty" tf:"zonal,omitempty"`
}
type MasterParameters struct {
// +kubebuilder:validation:Optional
EtcdClusterSize *float64 `json:"etcdClusterSize,omitempty" tf:"etcd_cluster_size,omitempty"`
// +kubebuilder:validation:Optional
ExternalV6Address *string `json:"externalV6Address,omitempty" tf:"external_v6_address,omitempty"`
// (Computed) Maintenance policy for Kubernetes master.
// If policy is omitted, automatic revision upgrades of the kubernetes master are enabled and could happen at any time.
// Revision upgrades are performed only within the same minor version, e.g. 1.13.
// Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
// +kubebuilder:validation:Optional
MaintenancePolicy []MaintenancePolicyParameters `json:"maintenancePolicy,omitempty" tf:"maintenance_policy,omitempty"`
// Cluster master's instances locations array (zone and subnet).
// Cannot be used together with zonal or regional. Currently, supports either one, for zonal master, or three instances of master_location.
// Can be updated inplace. When creating regional cluster (three master instances), its region will be evaluated automatically by backend.
// The structure is documented below.
// +kubebuilder:validation:Optional
MasterLocation []MasterLocationParameters `json:"masterLocation,omitempty" tf:"master_location,omitempty"`
// Master Logging options. The structure is documented below.
// +kubebuilder:validation:Optional
MasterLogging []MasterLoggingParameters `json:"masterLogging,omitempty" tf:"master_logging,omitempty"`
// (Computed) Boolean flag. When true, Kubernetes master will have visible ipv4 address.
// +kubebuilder:validation:Optional
PublicIP *bool `json:"publicIp,omitempty" tf:"public_ip,omitempty"`
// Initialize parameters for Regional Master (highly available master). The structure is documented below.
// +kubebuilder:validation:Optional
Regional []RegionalParameters `json:"regional,omitempty" tf:"regional,omitempty"`
// List of security group IDs to which the Kubernetes cluster belongs.
// +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:"-"`
// (Computed) Version of Kubernetes that will be used for master.
// +kubebuilder:validation:Optional
Version *string `json:"version,omitempty" tf:"version,omitempty"`
// Initialize parameters for Zonal Master (single node master). The structure is documented below.
// +kubebuilder:validation:Optional
Zonal []ZonalParameters `json:"zonal,omitempty" tf:"zonal,omitempty"`
}
type NetworkImplementationInitParameters struct {
// Cilium network implementation configuration. No options exist.
Cilium []CiliumInitParameters `json:"cilium,omitempty" tf:"cilium,omitempty"`
}
type NetworkImplementationObservation struct {
// Cilium network implementation configuration. No options exist.
Cilium []CiliumParameters `json:"cilium,omitempty" tf:"cilium,omitempty"`
}
type NetworkImplementationParameters struct {
// Cilium network implementation configuration. No options exist.
// +kubebuilder:validation:Optional
Cilium []CiliumParameters `json:"cilium,omitempty" tf:"cilium,omitempty"`
}
type RegionalInitParameters struct {
// Array of locations, where master instances will be allocated. The structure is documented below.
Location []LocationInitParameters `json:"location,omitempty" tf:"location,omitempty"`
// Name of availability region (e.g. "ru-central1"), where master instances will be allocated.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
}
type RegionalObservation struct {
// Array of locations, where master instances will be allocated. The structure is documented below.
Location []LocationObservation `json:"location,omitempty" tf:"location,omitempty"`
// Name of availability region (e.g. "ru-central1"), where master instances will be allocated.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
}
type RegionalParameters struct {
// Array of locations, where master instances will be allocated. The structure is documented below.
// +kubebuilder:validation:Optional
Location []LocationParameters `json:"location,omitempty" tf:"location,omitempty"`
// Name of availability region (e.g. "ru-central1"), where master instances will be allocated.
// +kubebuilder:validation:Optional
Region *string `json:"region" tf:"region,omitempty"`
}
type VersionInfoInitParameters struct {
}
type VersionInfoObservation struct {
// Current Kubernetes version, major.minor (e.g. 1.15).
CurrentVersion *string `json:"currentVersion,omitempty" tf:"current_version,omitempty"`
// Boolean flag.
// Newer revisions may include Kubernetes patches (e.g 1.15.1 -> 1.15.2) as well
// as some internal component updates - new features or bug fixes in yandex-specific
// components either on the master or nodes.
NewRevisionAvailable *bool `json:"newRevisionAvailable,omitempty" tf:"new_revision_available,omitempty"`
// Human readable description of the changes to be applied
// when updating to the latest revision. Empty if new_revision_available is false.
NewRevisionSummary *string `json:"newRevisionSummary,omitempty" tf:"new_revision_summary,omitempty"`
// Boolean flag. The current version is on the deprecation schedule,
// component (master or node group) should be upgraded.
VersionDeprecated *bool `json:"versionDeprecated,omitempty" tf:"version_deprecated,omitempty"`
}
type VersionInfoParameters struct {
}
type ZonalInitParameters struct {
// ID of the subnet. If no ID is specified, and there only one subnet in specified zone, an address in this subnet will be allocated.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.Subnet
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
// Reference to a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDRef *v1.Reference `json:"subnetIdRef,omitempty" tf:"-"`
// Selector for a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"`
// ID of the availability zone.
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type ZonalObservation struct {
// ID of the subnet. If no ID is specified, and there only one subnet in specified zone, an address in this subnet will be allocated.
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
// ID of the availability zone.
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type ZonalParameters struct {
// ID of the subnet. If no ID is specified, and there only one subnet in specified zone, an address in this subnet will be allocated.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.Subnet
// +kubebuilder:validation:Optional
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
// Reference to a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDRef *v1.Reference `json:"subnetIdRef,omitempty" tf:"-"`
// Selector for a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"`
// ID of the availability zone.
// +kubebuilder:validation:Optional
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
// ClusterSpec defines the desired state of Cluster
type ClusterSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ClusterParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unless the Management Policies feature flag is disabled.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider ClusterInitParameters `json:"initProvider,omitempty"`
}
// ClusterStatus defines the observed state of Cluster.
type ClusterStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ClusterObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// Cluster is the Schema for the Clusters API. Allows management of Yandex Kubernetes Cluster. For more information, see
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,yandex-cloud}
type Cluster struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.master) || (has(self.initProvider) && has(self.initProvider.master))",message="spec.forProvider.master is a required parameter"
Spec ClusterSpec `json:"spec"`
Status ClusterStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ClusterList contains a list of Clusters
type ClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Cluster `json:"items"`
}
// Repository type metadata.
var (
Cluster_Kind = "Cluster"
Cluster_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Cluster_Kind}.String()
Cluster_KindAPIVersion = Cluster_Kind + "." + CRDGroupVersion.String()
Cluster_GroupVersionKind = CRDGroupVersion.WithKind(Cluster_Kind)
)
func init() {
SchemeBuilder.Register(&Cluster{}, &ClusterList{})
}