-
Notifications
You must be signed in to change notification settings - Fork 64
/
zz_cluster_types.go
executable file
·764 lines (542 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
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by upjet. DO NOT EDIT.
package v1beta2
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 AdminGroupsInitParameters struct {
// The name of the group, e.g. my-group@domain.com.
Group *string `json:"group,omitempty" tf:"group,omitempty"`
}
type AdminGroupsObservation struct {
// The name of the group, e.g. my-group@domain.com.
Group *string `json:"group,omitempty" tf:"group,omitempty"`
}
type AdminGroupsParameters struct {
// The name of the group, e.g. my-group@domain.com.
// +kubebuilder:validation:Optional
Group *string `json:"group" tf:"group,omitempty"`
}
type AdminUsersInitParameters struct {
// The name of the user, e.g. my-gcp-id@gmail.com.
Username *string `json:"username,omitempty" tf:"username,omitempty"`
}
type AdminUsersObservation struct {
// The name of the user, e.g. my-gcp-id@gmail.com.
Username *string `json:"username,omitempty" tf:"username,omitempty"`
}
type AdminUsersParameters struct {
// The name of the user, e.g. my-gcp-id@gmail.com.
// +kubebuilder:validation:Optional
Username *string `json:"username" tf:"username,omitempty"`
}
type AuthorizationInitParameters struct {
// Groups of users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the groups. Up to ten admin groups can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
AdminGroups []AdminGroupsInitParameters `json:"adminGroups,omitempty" tf:"admin_groups,omitempty"`
// Users to perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
AdminUsers []AdminUsersInitParameters `json:"adminUsers,omitempty" tf:"admin_users,omitempty"`
}
type AuthorizationObservation struct {
// Groups of users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the groups. Up to ten admin groups can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
AdminGroups []AdminGroupsObservation `json:"adminGroups,omitempty" tf:"admin_groups,omitempty"`
// Users to perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
AdminUsers []AdminUsersObservation `json:"adminUsers,omitempty" tf:"admin_users,omitempty"`
}
type AuthorizationParameters struct {
// Groups of users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the groups. Up to ten admin groups can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
// +kubebuilder:validation:Optional
AdminGroups []AdminGroupsParameters `json:"adminGroups,omitempty" tf:"admin_groups,omitempty"`
// Users to perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
// +kubebuilder:validation:Optional
AdminUsers []AdminUsersParameters `json:"adminUsers" tf:"admin_users,omitempty"`
}
type AwsServicesAuthenticationInitParameters struct {
// The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API will assume when managing AWS resources on your account.
RoleArn *string `json:"roleArn,omitempty" tf:"role_arn,omitempty"`
// Optional. An identifier for the assumed role session. When unspecified, it defaults to multicloud-service-agent.
RoleSessionName *string `json:"roleSessionName,omitempty" tf:"role_session_name,omitempty"`
}
type AwsServicesAuthenticationObservation struct {
// The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API will assume when managing AWS resources on your account.
RoleArn *string `json:"roleArn,omitempty" tf:"role_arn,omitempty"`
// Optional. An identifier for the assumed role session. When unspecified, it defaults to multicloud-service-agent.
RoleSessionName *string `json:"roleSessionName,omitempty" tf:"role_session_name,omitempty"`
}
type AwsServicesAuthenticationParameters struct {
// The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API will assume when managing AWS resources on your account.
// +kubebuilder:validation:Optional
RoleArn *string `json:"roleArn" tf:"role_arn,omitempty"`
// Optional. An identifier for the assumed role session. When unspecified, it defaults to multicloud-service-agent.
// +kubebuilder:validation:Optional
RoleSessionName *string `json:"roleSessionName,omitempty" tf:"role_session_name,omitempty"`
}
type BinaryAuthorizationInitParameters struct {
// Mode of operation for Binary Authorization policy evaluation. Possible values: DISABLED, PROJECT_SINGLETON_POLICY_ENFORCE
EvaluationMode *string `json:"evaluationMode,omitempty" tf:"evaluation_mode,omitempty"`
}
type BinaryAuthorizationObservation struct {
// Mode of operation for Binary Authorization policy evaluation. Possible values: DISABLED, PROJECT_SINGLETON_POLICY_ENFORCE
EvaluationMode *string `json:"evaluationMode,omitempty" tf:"evaluation_mode,omitempty"`
}
type BinaryAuthorizationParameters struct {
// Mode of operation for Binary Authorization policy evaluation. Possible values: DISABLED, PROJECT_SINGLETON_POLICY_ENFORCE
// +kubebuilder:validation:Optional
EvaluationMode *string `json:"evaluationMode,omitempty" tf:"evaluation_mode,omitempty"`
}
type ClusterInitParameters struct {
// Optional. Annotations on the cluster. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix and name , separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.
// +mapType=granular
Annotations map[string]*string `json:"annotations,omitempty" tf:"annotations,omitempty"`
// Configuration related to the cluster RBAC settings.
Authorization *AuthorizationInitParameters `json:"authorization,omitempty" tf:"authorization,omitempty"`
// The AWS region where the cluster runs. Each Google Cloud region supports a subset of nearby AWS regions. You can call to list all supported AWS regions within a given Google Cloud region.
AwsRegion *string `json:"awsRegion,omitempty" tf:"aws_region,omitempty"`
// Configuration options for the Binary Authorization feature.
BinaryAuthorization *BinaryAuthorizationInitParameters `json:"binaryAuthorization,omitempty" tf:"binary_authorization,omitempty"`
// Configuration related to the cluster control plane.
ControlPlane *ControlPlaneInitParameters `json:"controlPlane,omitempty" tf:"control_plane,omitempty"`
// Optional. A human readable description of this cluster. Cannot be longer than 255 UTF-8 encoded bytes.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Fleet configuration.
Fleet *FleetInitParameters `json:"fleet,omitempty" tf:"fleet,omitempty"`
// Cluster-wide networking configuration.
Networking *NetworkingInitParameters `json:"networking,omitempty" tf:"networking,omitempty"`
// The project for the resource
Project *string `json:"project,omitempty" tf:"project,omitempty"`
}
type ClusterObservation struct {
// Optional. Annotations on the cluster. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix and name , separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.
// +mapType=granular
Annotations map[string]*string `json:"annotations,omitempty" tf:"annotations,omitempty"`
// Configuration related to the cluster RBAC settings.
Authorization *AuthorizationObservation `json:"authorization,omitempty" tf:"authorization,omitempty"`
// The AWS region where the cluster runs. Each Google Cloud region supports a subset of nearby AWS regions. You can call to list all supported AWS regions within a given Google Cloud region.
AwsRegion *string `json:"awsRegion,omitempty" tf:"aws_region,omitempty"`
// Configuration options for the Binary Authorization feature.
BinaryAuthorization *BinaryAuthorizationObservation `json:"binaryAuthorization,omitempty" tf:"binary_authorization,omitempty"`
// Configuration related to the cluster control plane.
ControlPlane *ControlPlaneObservation `json:"controlPlane,omitempty" tf:"control_plane,omitempty"`
// Output only. The time at which this cluster was created.
CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"`
// Optional. A human readable description of this cluster. Cannot be longer than 255 UTF-8 encoded bytes.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// +mapType=granular
EffectiveAnnotations map[string]*string `json:"effectiveAnnotations,omitempty" tf:"effective_annotations,omitempty"`
// Output only. The endpoint of the cluster's API server.
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
// Allows clients to perform consistent read-modify-writes through optimistic concurrency control. May be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
Etag *string `json:"etag,omitempty" tf:"etag,omitempty"`
// Fleet configuration.
Fleet *FleetObservation `json:"fleet,omitempty" tf:"fleet,omitempty"`
// an identifier for the resource with format projects/{{project}}/locations/{{location}}/awsClusters/{{name}}
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The location for the resource
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// Cluster-wide networking configuration.
Networking *NetworkingObservation `json:"networking,omitempty" tf:"networking,omitempty"`
// The project for the resource
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// Output only. If set, there are currently changes in flight to the cluster.
Reconciling *bool `json:"reconciling,omitempty" tf:"reconciling,omitempty"`
// Output only. The current state of the cluster. Possible values: STATE_UNSPECIFIED, PROVISIONING, RUNNING, RECONCILING, STOPPING, ERROR, DEGRADED
State *string `json:"state,omitempty" tf:"state,omitempty"`
// Output only. A globally unique identifier for the cluster.
UID *string `json:"uid,omitempty" tf:"uid,omitempty"`
// Output only. The time at which this cluster was last updated.
UpdateTime *string `json:"updateTime,omitempty" tf:"update_time,omitempty"`
// Output only. Workload Identity settings.
WorkloadIdentityConfig []WorkloadIdentityConfigObservation `json:"workloadIdentityConfig,omitempty" tf:"workload_identity_config,omitempty"`
}
type ClusterParameters struct {
// Optional. Annotations on the cluster. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix and name , separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.
// +kubebuilder:validation:Optional
// +mapType=granular
Annotations map[string]*string `json:"annotations,omitempty" tf:"annotations,omitempty"`
// Configuration related to the cluster RBAC settings.
// +kubebuilder:validation:Optional
Authorization *AuthorizationParameters `json:"authorization,omitempty" tf:"authorization,omitempty"`
// The AWS region where the cluster runs. Each Google Cloud region supports a subset of nearby AWS regions. You can call to list all supported AWS regions within a given Google Cloud region.
// +kubebuilder:validation:Optional
AwsRegion *string `json:"awsRegion,omitempty" tf:"aws_region,omitempty"`
// Configuration options for the Binary Authorization feature.
// +kubebuilder:validation:Optional
BinaryAuthorization *BinaryAuthorizationParameters `json:"binaryAuthorization,omitempty" tf:"binary_authorization,omitempty"`
// Configuration related to the cluster control plane.
// +kubebuilder:validation:Optional
ControlPlane *ControlPlaneParameters `json:"controlPlane,omitempty" tf:"control_plane,omitempty"`
// Optional. A human readable description of this cluster. Cannot be longer than 255 UTF-8 encoded bytes.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Fleet configuration.
// +kubebuilder:validation:Optional
Fleet *FleetParameters `json:"fleet,omitempty" tf:"fleet,omitempty"`
// The location for the resource
// +kubebuilder:validation:Required
Location *string `json:"location" tf:"location,omitempty"`
// Cluster-wide networking configuration.
// +kubebuilder:validation:Optional
Networking *NetworkingParameters `json:"networking,omitempty" tf:"networking,omitempty"`
// The project for the resource
// +kubebuilder:validation:Optional
Project *string `json:"project,omitempty" tf:"project,omitempty"`
}
type ConfigEncryptionInitParameters struct {
// Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS region where this cluster runs will be used.
KMSKeyArn *string `json:"kmsKeyArn,omitempty" tf:"kms_key_arn,omitempty"`
}
type ConfigEncryptionObservation struct {
// Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS region where this cluster runs will be used.
KMSKeyArn *string `json:"kmsKeyArn,omitempty" tf:"kms_key_arn,omitempty"`
}
type ConfigEncryptionParameters struct {
// Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS region where this cluster runs will be used.
// +kubebuilder:validation:Optional
KMSKeyArn *string `json:"kmsKeyArn" tf:"kms_key_arn,omitempty"`
}
type ControlPlaneInitParameters struct {
// Authentication configuration for management of AWS resources.
AwsServicesAuthentication *AwsServicesAuthenticationInitParameters `json:"awsServicesAuthentication,omitempty" tf:"aws_services_authentication,omitempty"`
// The ARN of the AWS KMS key used to encrypt cluster configuration.
ConfigEncryption *ConfigEncryptionInitParameters `json:"configEncryption,omitempty" tf:"config_encryption,omitempty"`
// The ARN of the AWS KMS key used to encrypt cluster secrets.
DatabaseEncryption *DatabaseEncryptionInitParameters `json:"databaseEncryption,omitempty" tf:"database_encryption,omitempty"`
// The name of the AWS IAM instance pofile to assign to each control plane replica.
IAMInstanceProfile *string `json:"iamInstanceProfile,omitempty" tf:"iam_instance_profile,omitempty"`
// Optional. The AWS instance type. When unspecified, it defaults to m5.large.
InstanceType *string `json:"instanceType,omitempty" tf:"instance_type,omitempty"`
// Optional. Configuration related to the main volume provisioned for each control plane replica. The main volume is in charge of storing all of the cluster's etcd state. Volumes will be provisioned in the availability zone associated with the corresponding subnet. When unspecified, it defaults to 8 GiB with the GP2 volume type.
MainVolume *MainVolumeInitParameters `json:"mainVolume,omitempty" tf:"main_volume,omitempty"`
// Proxy configuration for outbound HTTP(S) traffic.
ProxyConfig *ProxyConfigInitParameters `json:"proxyConfig,omitempty" tf:"proxy_config,omitempty"`
// Optional. Configuration related to the root volume provisioned for each control plane replica. Volumes will be provisioned in the availability zone associated with the corresponding subnet. When unspecified, it defaults to 32 GiB with the GP2 volume type.
RootVolume *RootVolumeInitParameters `json:"rootVolume,omitempty" tf:"root_volume,omitempty"`
// Optional. SSH configuration for how to access the underlying control plane machines.
SSHConfig *SSHConfigInitParameters `json:"sshConfig,omitempty" tf:"ssh_config,omitempty"`
// Optional. The IDs of additional security groups to add to control plane replicas. The Anthos Multi-Cloud API will automatically create and manage security groups with the minimum rules needed for a functioning cluster.
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// The list of subnets where control plane replicas will run. A replica will be provisioned on each subnet and up to three values can be provided. Each subnet must be in a different AWS Availability Zone (AZ).
SubnetIds []*string `json:"subnetIds,omitempty" tf:"subnet_ids,omitempty"`
// Optional. A set of AWS resource tags to propagate to all underlying managed AWS resources. Specify at most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to 255 Unicode characters.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// The Kubernetes version to run on control plane replicas (e.g. 1.19.10-gke.1000). You can list all supported versions on a given Google Cloud region by calling .
Version *string `json:"version,omitempty" tf:"version,omitempty"`
}
type ControlPlaneObservation struct {
// Authentication configuration for management of AWS resources.
AwsServicesAuthentication *AwsServicesAuthenticationObservation `json:"awsServicesAuthentication,omitempty" tf:"aws_services_authentication,omitempty"`
// The ARN of the AWS KMS key used to encrypt cluster configuration.
ConfigEncryption *ConfigEncryptionObservation `json:"configEncryption,omitempty" tf:"config_encryption,omitempty"`
// The ARN of the AWS KMS key used to encrypt cluster secrets.
DatabaseEncryption *DatabaseEncryptionObservation `json:"databaseEncryption,omitempty" tf:"database_encryption,omitempty"`
// The name of the AWS IAM instance pofile to assign to each control plane replica.
IAMInstanceProfile *string `json:"iamInstanceProfile,omitempty" tf:"iam_instance_profile,omitempty"`
// Optional. The AWS instance type. When unspecified, it defaults to m5.large.
InstanceType *string `json:"instanceType,omitempty" tf:"instance_type,omitempty"`
// Optional. Configuration related to the main volume provisioned for each control plane replica. The main volume is in charge of storing all of the cluster's etcd state. Volumes will be provisioned in the availability zone associated with the corresponding subnet. When unspecified, it defaults to 8 GiB with the GP2 volume type.
MainVolume *MainVolumeObservation `json:"mainVolume,omitempty" tf:"main_volume,omitempty"`
// Proxy configuration for outbound HTTP(S) traffic.
ProxyConfig *ProxyConfigObservation `json:"proxyConfig,omitempty" tf:"proxy_config,omitempty"`
// Optional. Configuration related to the root volume provisioned for each control plane replica. Volumes will be provisioned in the availability zone associated with the corresponding subnet. When unspecified, it defaults to 32 GiB with the GP2 volume type.
RootVolume *RootVolumeObservation `json:"rootVolume,omitempty" tf:"root_volume,omitempty"`
// Optional. SSH configuration for how to access the underlying control plane machines.
SSHConfig *SSHConfigObservation `json:"sshConfig,omitempty" tf:"ssh_config,omitempty"`
// Optional. The IDs of additional security groups to add to control plane replicas. The Anthos Multi-Cloud API will automatically create and manage security groups with the minimum rules needed for a functioning cluster.
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// The list of subnets where control plane replicas will run. A replica will be provisioned on each subnet and up to three values can be provided. Each subnet must be in a different AWS Availability Zone (AZ).
SubnetIds []*string `json:"subnetIds,omitempty" tf:"subnet_ids,omitempty"`
// Optional. A set of AWS resource tags to propagate to all underlying managed AWS resources. Specify at most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to 255 Unicode characters.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// The Kubernetes version to run on control plane replicas (e.g. 1.19.10-gke.1000). You can list all supported versions on a given Google Cloud region by calling .
Version *string `json:"version,omitempty" tf:"version,omitempty"`
}
type ControlPlaneParameters struct {
// Authentication configuration for management of AWS resources.
// +kubebuilder:validation:Optional
AwsServicesAuthentication *AwsServicesAuthenticationParameters `json:"awsServicesAuthentication" tf:"aws_services_authentication,omitempty"`
// The ARN of the AWS KMS key used to encrypt cluster configuration.
// +kubebuilder:validation:Optional
ConfigEncryption *ConfigEncryptionParameters `json:"configEncryption" tf:"config_encryption,omitempty"`
// The ARN of the AWS KMS key used to encrypt cluster secrets.
// +kubebuilder:validation:Optional
DatabaseEncryption *DatabaseEncryptionParameters `json:"databaseEncryption" tf:"database_encryption,omitempty"`
// The name of the AWS IAM instance pofile to assign to each control plane replica.
// +kubebuilder:validation:Optional
IAMInstanceProfile *string `json:"iamInstanceProfile" tf:"iam_instance_profile,omitempty"`
// Optional. The AWS instance type. When unspecified, it defaults to m5.large.
// +kubebuilder:validation:Optional
InstanceType *string `json:"instanceType,omitempty" tf:"instance_type,omitempty"`
// Optional. Configuration related to the main volume provisioned for each control plane replica. The main volume is in charge of storing all of the cluster's etcd state. Volumes will be provisioned in the availability zone associated with the corresponding subnet. When unspecified, it defaults to 8 GiB with the GP2 volume type.
// +kubebuilder:validation:Optional
MainVolume *MainVolumeParameters `json:"mainVolume,omitempty" tf:"main_volume,omitempty"`
// Proxy configuration for outbound HTTP(S) traffic.
// +kubebuilder:validation:Optional
ProxyConfig *ProxyConfigParameters `json:"proxyConfig,omitempty" tf:"proxy_config,omitempty"`
// Optional. Configuration related to the root volume provisioned for each control plane replica. Volumes will be provisioned in the availability zone associated with the corresponding subnet. When unspecified, it defaults to 32 GiB with the GP2 volume type.
// +kubebuilder:validation:Optional
RootVolume *RootVolumeParameters `json:"rootVolume,omitempty" tf:"root_volume,omitempty"`
// Optional. SSH configuration for how to access the underlying control plane machines.
// +kubebuilder:validation:Optional
SSHConfig *SSHConfigParameters `json:"sshConfig,omitempty" tf:"ssh_config,omitempty"`
// Optional. The IDs of additional security groups to add to control plane replicas. The Anthos Multi-Cloud API will automatically create and manage security groups with the minimum rules needed for a functioning cluster.
// +kubebuilder:validation:Optional
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// The list of subnets where control plane replicas will run. A replica will be provisioned on each subnet and up to three values can be provided. Each subnet must be in a different AWS Availability Zone (AZ).
// +kubebuilder:validation:Optional
SubnetIds []*string `json:"subnetIds" tf:"subnet_ids,omitempty"`
// Optional. A set of AWS resource tags to propagate to all underlying managed AWS resources. Specify at most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to 255 Unicode characters.
// +kubebuilder:validation:Optional
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// The Kubernetes version to run on control plane replicas (e.g. 1.19.10-gke.1000). You can list all supported versions on a given Google Cloud region by calling .
// +kubebuilder:validation:Optional
Version *string `json:"version" tf:"version,omitempty"`
}
type DatabaseEncryptionInitParameters struct {
// Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS region where this cluster runs will be used.
KMSKeyArn *string `json:"kmsKeyArn,omitempty" tf:"kms_key_arn,omitempty"`
}
type DatabaseEncryptionObservation struct {
// Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS region where this cluster runs will be used.
KMSKeyArn *string `json:"kmsKeyArn,omitempty" tf:"kms_key_arn,omitempty"`
}
type DatabaseEncryptionParameters struct {
// Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS region where this cluster runs will be used.
// +kubebuilder:validation:Optional
KMSKeyArn *string `json:"kmsKeyArn" tf:"kms_key_arn,omitempty"`
}
type FleetInitParameters struct {
// The number of the Fleet host project where this cluster will be registered.
Project *string `json:"project,omitempty" tf:"project,omitempty"`
}
type FleetObservation struct {
// The name of the managed Hub Membership resource associated to this cluster. Membership names are formatted as projects//locations/global/membership/.
Membership *string `json:"membership,omitempty" tf:"membership,omitempty"`
// The number of the Fleet host project where this cluster will be registered.
Project *string `json:"project,omitempty" tf:"project,omitempty"`
}
type FleetParameters struct {
// The number of the Fleet host project where this cluster will be registered.
// +kubebuilder:validation:Optional
Project *string `json:"project,omitempty" tf:"project,omitempty"`
}
type MainVolumeInitParameters struct {
// Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume.
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS region where this cluster runs will be used.
KMSKeyArn *string `json:"kmsKeyArn,omitempty" tf:"kms_key_arn,omitempty"`
// Optional. The size of the volume, in GiBs. When unspecified, a default value is provided. See the specific reference in the parent resource.
SizeGib *float64 `json:"sizeGib,omitempty" tf:"size_gib,omitempty"`
// Optional. The throughput to provision for the volume, in MiB/s. Only valid if the volume type is GP3. If volume type is gp3 and throughput is not specified, the throughput will defaults to 125.
Throughput *float64 `json:"throughput,omitempty" tf:"throughput,omitempty"`
// Optional. Type of the EBS volume. When unspecified, it defaults to GP2 volume. Possible values: VOLUME_TYPE_UNSPECIFIED, GP2, GP3
VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}
type MainVolumeObservation struct {
// Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume.
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS region where this cluster runs will be used.
KMSKeyArn *string `json:"kmsKeyArn,omitempty" tf:"kms_key_arn,omitempty"`
// Optional. The size of the volume, in GiBs. When unspecified, a default value is provided. See the specific reference in the parent resource.
SizeGib *float64 `json:"sizeGib,omitempty" tf:"size_gib,omitempty"`
// Optional. The throughput to provision for the volume, in MiB/s. Only valid if the volume type is GP3. If volume type is gp3 and throughput is not specified, the throughput will defaults to 125.
Throughput *float64 `json:"throughput,omitempty" tf:"throughput,omitempty"`
// Optional. Type of the EBS volume. When unspecified, it defaults to GP2 volume. Possible values: VOLUME_TYPE_UNSPECIFIED, GP2, GP3
VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}
type MainVolumeParameters struct {
// Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume.
// +kubebuilder:validation:Optional
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS region where this cluster runs will be used.
// +kubebuilder:validation:Optional
KMSKeyArn *string `json:"kmsKeyArn,omitempty" tf:"kms_key_arn,omitempty"`
// Optional. The size of the volume, in GiBs. When unspecified, a default value is provided. See the specific reference in the parent resource.
// +kubebuilder:validation:Optional
SizeGib *float64 `json:"sizeGib,omitempty" tf:"size_gib,omitempty"`
// Optional. The throughput to provision for the volume, in MiB/s. Only valid if the volume type is GP3. If volume type is gp3 and throughput is not specified, the throughput will defaults to 125.
// +kubebuilder:validation:Optional
Throughput *float64 `json:"throughput,omitempty" tf:"throughput,omitempty"`
// Optional. Type of the EBS volume. When unspecified, it defaults to GP2 volume. Possible values: VOLUME_TYPE_UNSPECIFIED, GP2, GP3
// +kubebuilder:validation:Optional
VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}
type NetworkingInitParameters struct {
// Disable the per node pool subnet security group rules on the control plane security group. When set to true, you must also provide one or more security groups that ensure node pools are able to send requests to the control plane on TCP/443 and TCP/8132. Failure to do so may result in unavailable node pools.
PerNodePoolSgRulesDisabled *bool `json:"perNodePoolSgRulesDisabled,omitempty" tf:"per_node_pool_sg_rules_disabled,omitempty"`
// All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
PodAddressCidrBlocks []*string `json:"podAddressCidrBlocks,omitempty" tf:"pod_address_cidr_blocks,omitempty"`
// All services in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
ServiceAddressCidrBlocks []*string `json:"serviceAddressCidrBlocks,omitempty" tf:"service_address_cidr_blocks,omitempty"`
// The VPC associated with the cluster. All component clusters (i.e. control plane and node pools) run on a single VPC. This field cannot be changed after creation.
VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"`
}
type NetworkingObservation struct {
// Disable the per node pool subnet security group rules on the control plane security group. When set to true, you must also provide one or more security groups that ensure node pools are able to send requests to the control plane on TCP/443 and TCP/8132. Failure to do so may result in unavailable node pools.
PerNodePoolSgRulesDisabled *bool `json:"perNodePoolSgRulesDisabled,omitempty" tf:"per_node_pool_sg_rules_disabled,omitempty"`
// All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
PodAddressCidrBlocks []*string `json:"podAddressCidrBlocks,omitempty" tf:"pod_address_cidr_blocks,omitempty"`
// All services in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
ServiceAddressCidrBlocks []*string `json:"serviceAddressCidrBlocks,omitempty" tf:"service_address_cidr_blocks,omitempty"`
// The VPC associated with the cluster. All component clusters (i.e. control plane and node pools) run on a single VPC. This field cannot be changed after creation.
VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"`
}
type NetworkingParameters struct {
// Disable the per node pool subnet security group rules on the control plane security group. When set to true, you must also provide one or more security groups that ensure node pools are able to send requests to the control plane on TCP/443 and TCP/8132. Failure to do so may result in unavailable node pools.
// +kubebuilder:validation:Optional
PerNodePoolSgRulesDisabled *bool `json:"perNodePoolSgRulesDisabled,omitempty" tf:"per_node_pool_sg_rules_disabled,omitempty"`
// All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
// +kubebuilder:validation:Optional
PodAddressCidrBlocks []*string `json:"podAddressCidrBlocks" tf:"pod_address_cidr_blocks,omitempty"`
// All services in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
// +kubebuilder:validation:Optional
ServiceAddressCidrBlocks []*string `json:"serviceAddressCidrBlocks" tf:"service_address_cidr_blocks,omitempty"`
// The VPC associated with the cluster. All component clusters (i.e. control plane and node pools) run on a single VPC. This field cannot be changed after creation.
// +kubebuilder:validation:Optional
VPCID *string `json:"vpcId" tf:"vpc_id,omitempty"`
}
type ProxyConfigInitParameters struct {
// The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy configuration.
SecretArn *string `json:"secretArn,omitempty" tf:"secret_arn,omitempty"`
// The version string of the AWS Secret Manager secret that contains the HTTP(S) proxy configuration.
SecretVersion *string `json:"secretVersion,omitempty" tf:"secret_version,omitempty"`
}
type ProxyConfigObservation struct {
// The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy configuration.
SecretArn *string `json:"secretArn,omitempty" tf:"secret_arn,omitempty"`
// The version string of the AWS Secret Manager secret that contains the HTTP(S) proxy configuration.
SecretVersion *string `json:"secretVersion,omitempty" tf:"secret_version,omitempty"`
}
type ProxyConfigParameters struct {
// The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy configuration.
// +kubebuilder:validation:Optional
SecretArn *string `json:"secretArn" tf:"secret_arn,omitempty"`
// The version string of the AWS Secret Manager secret that contains the HTTP(S) proxy configuration.
// +kubebuilder:validation:Optional
SecretVersion *string `json:"secretVersion" tf:"secret_version,omitempty"`
}
type RootVolumeInitParameters struct {
// Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume.
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS region where this cluster runs will be used.
KMSKeyArn *string `json:"kmsKeyArn,omitempty" tf:"kms_key_arn,omitempty"`
// Optional. The size of the volume, in GiBs. When unspecified, a default value is provided. See the specific reference in the parent resource.
SizeGib *float64 `json:"sizeGib,omitempty" tf:"size_gib,omitempty"`
// Optional. The throughput to provision for the volume, in MiB/s. Only valid if the volume type is GP3. If volume type is gp3 and throughput is not specified, the throughput will defaults to 125.
Throughput *float64 `json:"throughput,omitempty" tf:"throughput,omitempty"`
// Optional. Type of the EBS volume. When unspecified, it defaults to GP2 volume. Possible values: VOLUME_TYPE_UNSPECIFIED, GP2, GP3
VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}
type RootVolumeObservation struct {
// Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume.
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS region where this cluster runs will be used.
KMSKeyArn *string `json:"kmsKeyArn,omitempty" tf:"kms_key_arn,omitempty"`
// Optional. The size of the volume, in GiBs. When unspecified, a default value is provided. See the specific reference in the parent resource.
SizeGib *float64 `json:"sizeGib,omitempty" tf:"size_gib,omitempty"`
// Optional. The throughput to provision for the volume, in MiB/s. Only valid if the volume type is GP3. If volume type is gp3 and throughput is not specified, the throughput will defaults to 125.
Throughput *float64 `json:"throughput,omitempty" tf:"throughput,omitempty"`
// Optional. Type of the EBS volume. When unspecified, it defaults to GP2 volume. Possible values: VOLUME_TYPE_UNSPECIFIED, GP2, GP3
VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}
type RootVolumeParameters struct {
// Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume.
// +kubebuilder:validation:Optional
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS region where this cluster runs will be used.
// +kubebuilder:validation:Optional
KMSKeyArn *string `json:"kmsKeyArn,omitempty" tf:"kms_key_arn,omitempty"`
// Optional. The size of the volume, in GiBs. When unspecified, a default value is provided. See the specific reference in the parent resource.
// +kubebuilder:validation:Optional
SizeGib *float64 `json:"sizeGib,omitempty" tf:"size_gib,omitempty"`
// Optional. The throughput to provision for the volume, in MiB/s. Only valid if the volume type is GP3. If volume type is gp3 and throughput is not specified, the throughput will defaults to 125.
// +kubebuilder:validation:Optional
Throughput *float64 `json:"throughput,omitempty" tf:"throughput,omitempty"`
// Optional. Type of the EBS volume. When unspecified, it defaults to GP2 volume. Possible values: VOLUME_TYPE_UNSPECIFIED, GP2, GP3
// +kubebuilder:validation:Optional
VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}
type SSHConfigInitParameters struct {
// The name of the EC2 key pair used to login into cluster machines.
EC2KeyPair *string `json:"ec2KeyPair,omitempty" tf:"ec2_key_pair,omitempty"`
}
type SSHConfigObservation struct {
// The name of the EC2 key pair used to login into cluster machines.
EC2KeyPair *string `json:"ec2KeyPair,omitempty" tf:"ec2_key_pair,omitempty"`
}
type SSHConfigParameters struct {
// The name of the EC2 key pair used to login into cluster machines.
// +kubebuilder:validation:Optional
EC2KeyPair *string `json:"ec2KeyPair" tf:"ec2_key_pair,omitempty"`
}
type WorkloadIdentityConfigInitParameters struct {
}
type WorkloadIdentityConfigObservation struct {
IdentityProvider *string `json:"identityProvider,omitempty" tf:"identity_provider,omitempty"`
IssuerURI *string `json:"issuerUri,omitempty" tf:"issuer_uri,omitempty"`
WorkloadPool *string `json:"workloadPool,omitempty" tf:"workload_pool,omitempty"`
}
type WorkloadIdentityConfigParameters struct {
}
// 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
// Cluster is the Schema for the Clusters API. An Anthos cluster running on AWS.
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].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,gcp}
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.authorization) || (has(self.initProvider) && has(self.initProvider.authorization))",message="spec.forProvider.authorization is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.awsRegion) || (has(self.initProvider) && has(self.initProvider.awsRegion))",message="spec.forProvider.awsRegion is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.controlPlane) || (has(self.initProvider) && has(self.initProvider.controlPlane))",message="spec.forProvider.controlPlane is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.fleet) || (has(self.initProvider) && has(self.initProvider.fleet))",message="spec.forProvider.fleet is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.networking) || (has(self.initProvider) && has(self.initProvider.networking))",message="spec.forProvider.networking 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{})
}