-
Notifications
You must be signed in to change notification settings - Fork 59
/
zz_cluster_types.go
executable file
·2212 lines (1701 loc) · 105 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
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
/*
Copyright 2021 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by upjet. DO NOT EDIT.
package v1beta1
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 AcceleratorsInitParameters struct {
// The number of the accelerator cards of this type exposed to this instance. Often restricted to one of 1, 2, 4, or 8.
AcceleratorCount *float64 `json:"acceleratorCount,omitempty" tf:"accelerator_count,omitempty"`
// The short name of the accelerator type to expose to this instance. For example, nvidia-tesla-k80.
AcceleratorType *string `json:"acceleratorType,omitempty" tf:"accelerator_type,omitempty"`
}
type AcceleratorsObservation struct {
// The number of the accelerator cards of this type exposed to this instance. Often restricted to one of 1, 2, 4, or 8.
AcceleratorCount *float64 `json:"acceleratorCount,omitempty" tf:"accelerator_count,omitempty"`
// The short name of the accelerator type to expose to this instance. For example, nvidia-tesla-k80.
AcceleratorType *string `json:"acceleratorType,omitempty" tf:"accelerator_type,omitempty"`
}
type AcceleratorsParameters struct {
// The number of the accelerator cards of this type exposed to this instance. Often restricted to one of 1, 2, 4, or 8.
// +kubebuilder:validation:Optional
AcceleratorCount *float64 `json:"acceleratorCount" tf:"accelerator_count,omitempty"`
// The short name of the accelerator type to expose to this instance. For example, nvidia-tesla-k80.
// +kubebuilder:validation:Optional
AcceleratorType *string `json:"acceleratorType" tf:"accelerator_type,omitempty"`
}
type AutoscalingConfigInitParameters struct {
// The autoscaling policy used by the cluster.
PolicyURI *string `json:"policyUri,omitempty" tf:"policy_uri,omitempty"`
}
type AutoscalingConfigObservation struct {
// The autoscaling policy used by the cluster.
PolicyURI *string `json:"policyUri,omitempty" tf:"policy_uri,omitempty"`
}
type AutoscalingConfigParameters struct {
// The autoscaling policy used by the cluster.
// +kubebuilder:validation:Optional
PolicyURI *string `json:"policyUri" tf:"policy_uri,omitempty"`
}
type AutoscalingInitParameters struct {
// The maximum number of nodes in the node pool. Must be >= minNodeCount, and must be > 0.
MaxNodeCount *float64 `json:"maxNodeCount,omitempty" tf:"max_node_count,omitempty"`
// The minimum number of nodes in the node pool. Must be >= 0 and <= maxNodeCount.
MinNodeCount *float64 `json:"minNodeCount,omitempty" tf:"min_node_count,omitempty"`
}
type AutoscalingObservation struct {
// The maximum number of nodes in the node pool. Must be >= minNodeCount, and must be > 0.
MaxNodeCount *float64 `json:"maxNodeCount,omitempty" tf:"max_node_count,omitempty"`
// The minimum number of nodes in the node pool. Must be >= 0 and <= maxNodeCount.
MinNodeCount *float64 `json:"minNodeCount,omitempty" tf:"min_node_count,omitempty"`
}
type AutoscalingParameters struct {
// The maximum number of nodes in the node pool. Must be >= minNodeCount, and must be > 0.
// +kubebuilder:validation:Optional
MaxNodeCount *float64 `json:"maxNodeCount,omitempty" tf:"max_node_count,omitempty"`
// The minimum number of nodes in the node pool. Must be >= 0 and <= maxNodeCount.
// +kubebuilder:validation:Optional
MinNodeCount *float64 `json:"minNodeCount,omitempty" tf:"min_node_count,omitempty"`
}
type AuxiliaryServicesConfigInitParameters struct {
// The config setting for metastore service with the cluster.
// Structure defined below.
MetastoreConfig []AuxiliaryServicesConfigMetastoreConfigInitParameters `json:"metastoreConfig,omitempty" tf:"metastore_config,omitempty"`
// The Spark History Server configuration for the workload.
SparkHistoryServerConfig []SparkHistoryServerConfigInitParameters `json:"sparkHistoryServerConfig,omitempty" tf:"spark_history_server_config,omitempty"`
}
type AuxiliaryServicesConfigMetastoreConfigInitParameters struct {
// Resource name of an existing Dataproc Metastore service.
DataprocMetastoreService *string `json:"dataprocMetastoreService,omitempty" tf:"dataproc_metastore_service,omitempty"`
}
type AuxiliaryServicesConfigMetastoreConfigObservation struct {
// Resource name of an existing Dataproc Metastore service.
DataprocMetastoreService *string `json:"dataprocMetastoreService,omitempty" tf:"dataproc_metastore_service,omitempty"`
}
type AuxiliaryServicesConfigMetastoreConfigParameters struct {
// Resource name of an existing Dataproc Metastore service.
// +kubebuilder:validation:Optional
DataprocMetastoreService *string `json:"dataprocMetastoreService,omitempty" tf:"dataproc_metastore_service,omitempty"`
}
type AuxiliaryServicesConfigObservation struct {
// The config setting for metastore service with the cluster.
// Structure defined below.
MetastoreConfig []AuxiliaryServicesConfigMetastoreConfigObservation `json:"metastoreConfig,omitempty" tf:"metastore_config,omitempty"`
// The Spark History Server configuration for the workload.
SparkHistoryServerConfig []SparkHistoryServerConfigObservation `json:"sparkHistoryServerConfig,omitempty" tf:"spark_history_server_config,omitempty"`
}
type AuxiliaryServicesConfigParameters struct {
// The config setting for metastore service with the cluster.
// Structure defined below.
// +kubebuilder:validation:Optional
MetastoreConfig []AuxiliaryServicesConfigMetastoreConfigParameters `json:"metastoreConfig,omitempty" tf:"metastore_config,omitempty"`
// The Spark History Server configuration for the workload.
// +kubebuilder:validation:Optional
SparkHistoryServerConfig []SparkHistoryServerConfigParameters `json:"sparkHistoryServerConfig,omitempty" tf:"spark_history_server_config,omitempty"`
}
type ClusterConfigInitParameters struct {
// The autoscaling policy config associated with the cluster.
// Note that once set, if autoscaling_config is the only field set in cluster_config, it can
// only be removed by setting policy_uri = "", rather than removing the whole block.
// Structure defined below.
AutoscalingConfig []AutoscalingConfigInitParameters `json:"autoscalingConfig,omitempty" tf:"autoscaling_config,omitempty"`
// The Compute Engine accelerator (GPU) configuration for these instances. Can be specified multiple times.
// Structure defined below.
DataprocMetricConfig []DataprocMetricConfigInitParameters `json:"dataprocMetricConfig,omitempty" tf:"dataproc_metric_config,omitempty"`
// The Customer managed encryption keys settings for the cluster.
// Structure defined below.
EncryptionConfig []EncryptionConfigInitParameters `json:"encryptionConfig,omitempty" tf:"encryption_config,omitempty"`
// The config settings for port access on the cluster.
// Structure defined below.
EndpointConfig []EndpointConfigInitParameters `json:"endpointConfig,omitempty" tf:"endpoint_config,omitempty"`
// Common config settings for resources of Google Compute Engine cluster
// instances, applicable to all instances in the cluster. Structure defined below.
GceClusterConfig []GceClusterConfigInitParameters `json:"gceClusterConfig,omitempty" tf:"gce_cluster_config,omitempty"`
// Commands to execute on each node after config is completed.
// You can specify multiple versions of these. Structure defined below.
InitializationAction []InitializationActionInitParameters `json:"initializationAction,omitempty" tf:"initialization_action,omitempty"`
// The settings for auto deletion cluster schedule.
// Structure defined below.
LifecycleConfig []LifecycleConfigInitParameters `json:"lifecycleConfig,omitempty" tf:"lifecycle_config,omitempty"`
// The Google Compute Engine config settings for the master instances
// in a cluster. Structure defined below.
MasterConfig []MasterConfigInitParameters `json:"masterConfig,omitempty" tf:"master_config,omitempty"`
// The config setting for metastore service with the cluster.
// Structure defined below.
MetastoreConfig []MetastoreConfigInitParameters `json:"metastoreConfig,omitempty" tf:"metastore_config,omitempty"`
// The Google Compute Engine config settings for the additional
// instances in a cluster. Structure defined below.
PreemptibleWorkerConfig []PreemptibleWorkerConfigInitParameters `json:"preemptibleWorkerConfig,omitempty" tf:"preemptible_worker_config,omitempty"`
// Security related configuration. Structure defined below.
SecurityConfig []SecurityConfigInitParameters `json:"securityConfig,omitempty" tf:"security_config,omitempty"`
// The config settings for software inside the cluster.
// Structure defined below.
SoftwareConfig []SoftwareConfigInitParameters `json:"softwareConfig,omitempty" tf:"software_config,omitempty"`
// The Cloud Storage staging bucket used to stage files,
// such as Hadoop jars, between client machines and the cluster.
// Note: If you don't explicitly specify a staging_bucket
// then GCP will auto create / assign one for you. However, you are not guaranteed
// an auto generated bucket which is solely dedicated to your cluster; it may be shared
// with other clusters in the same region/zone also choosing to use the auto generation
// option.
StagingBucket *string `json:"stagingBucket,omitempty" tf:"staging_bucket,omitempty"`
// The Cloud Storage temp bucket used to store ephemeral cluster
// and jobs data, such as Spark and MapReduce history files.
// Note: If you don't explicitly specify a temp_bucket then GCP will auto create / assign one for you.
TempBucket *string `json:"tempBucket,omitempty" tf:"temp_bucket,omitempty"`
// The Google Compute Engine config settings for the worker instances
// in a cluster. Structure defined below.
WorkerConfig []ClusterConfigWorkerConfigInitParameters `json:"workerConfig,omitempty" tf:"worker_config,omitempty"`
}
type ClusterConfigObservation struct {
// The autoscaling policy config associated with the cluster.
// Note that once set, if autoscaling_config is the only field set in cluster_config, it can
// only be removed by setting policy_uri = "", rather than removing the whole block.
// Structure defined below.
AutoscalingConfig []AutoscalingConfigObservation `json:"autoscalingConfig,omitempty" tf:"autoscaling_config,omitempty"`
// The name of the cloud storage bucket ultimately used to house the staging data
// for the cluster. If staging_bucket is specified, it will contain this value, otherwise
// it will be the auto generated name.
Bucket *string `json:"bucket,omitempty" tf:"bucket,omitempty"`
// The Compute Engine accelerator (GPU) configuration for these instances. Can be specified multiple times.
// Structure defined below.
DataprocMetricConfig []DataprocMetricConfigObservation `json:"dataprocMetricConfig,omitempty" tf:"dataproc_metric_config,omitempty"`
// The Customer managed encryption keys settings for the cluster.
// Structure defined below.
EncryptionConfig []EncryptionConfigObservation `json:"encryptionConfig,omitempty" tf:"encryption_config,omitempty"`
// The config settings for port access on the cluster.
// Structure defined below.
EndpointConfig []EndpointConfigObservation `json:"endpointConfig,omitempty" tf:"endpoint_config,omitempty"`
// Common config settings for resources of Google Compute Engine cluster
// instances, applicable to all instances in the cluster. Structure defined below.
GceClusterConfig []GceClusterConfigObservation `json:"gceClusterConfig,omitempty" tf:"gce_cluster_config,omitempty"`
// Commands to execute on each node after config is completed.
// You can specify multiple versions of these. Structure defined below.
InitializationAction []InitializationActionObservation `json:"initializationAction,omitempty" tf:"initialization_action,omitempty"`
// The settings for auto deletion cluster schedule.
// Structure defined below.
LifecycleConfig []LifecycleConfigObservation `json:"lifecycleConfig,omitempty" tf:"lifecycle_config,omitempty"`
// The Google Compute Engine config settings for the master instances
// in a cluster. Structure defined below.
MasterConfig []MasterConfigObservation `json:"masterConfig,omitempty" tf:"master_config,omitempty"`
// The config setting for metastore service with the cluster.
// Structure defined below.
MetastoreConfig []MetastoreConfigObservation `json:"metastoreConfig,omitempty" tf:"metastore_config,omitempty"`
// The Google Compute Engine config settings for the additional
// instances in a cluster. Structure defined below.
PreemptibleWorkerConfig []PreemptibleWorkerConfigObservation `json:"preemptibleWorkerConfig,omitempty" tf:"preemptible_worker_config,omitempty"`
// Security related configuration. Structure defined below.
SecurityConfig []SecurityConfigObservation `json:"securityConfig,omitempty" tf:"security_config,omitempty"`
// The config settings for software inside the cluster.
// Structure defined below.
SoftwareConfig []SoftwareConfigObservation `json:"softwareConfig,omitempty" tf:"software_config,omitempty"`
// The Cloud Storage staging bucket used to stage files,
// such as Hadoop jars, between client machines and the cluster.
// Note: If you don't explicitly specify a staging_bucket
// then GCP will auto create / assign one for you. However, you are not guaranteed
// an auto generated bucket which is solely dedicated to your cluster; it may be shared
// with other clusters in the same region/zone also choosing to use the auto generation
// option.
StagingBucket *string `json:"stagingBucket,omitempty" tf:"staging_bucket,omitempty"`
// The Cloud Storage temp bucket used to store ephemeral cluster
// and jobs data, such as Spark and MapReduce history files.
// Note: If you don't explicitly specify a temp_bucket then GCP will auto create / assign one for you.
TempBucket *string `json:"tempBucket,omitempty" tf:"temp_bucket,omitempty"`
// The Google Compute Engine config settings for the worker instances
// in a cluster. Structure defined below.
WorkerConfig []ClusterConfigWorkerConfigObservation `json:"workerConfig,omitempty" tf:"worker_config,omitempty"`
}
type ClusterConfigParameters struct {
// The autoscaling policy config associated with the cluster.
// Note that once set, if autoscaling_config is the only field set in cluster_config, it can
// only be removed by setting policy_uri = "", rather than removing the whole block.
// Structure defined below.
// +kubebuilder:validation:Optional
AutoscalingConfig []AutoscalingConfigParameters `json:"autoscalingConfig,omitempty" tf:"autoscaling_config,omitempty"`
// The Compute Engine accelerator (GPU) configuration for these instances. Can be specified multiple times.
// Structure defined below.
// +kubebuilder:validation:Optional
DataprocMetricConfig []DataprocMetricConfigParameters `json:"dataprocMetricConfig,omitempty" tf:"dataproc_metric_config,omitempty"`
// The Customer managed encryption keys settings for the cluster.
// Structure defined below.
// +kubebuilder:validation:Optional
EncryptionConfig []EncryptionConfigParameters `json:"encryptionConfig,omitempty" tf:"encryption_config,omitempty"`
// The config settings for port access on the cluster.
// Structure defined below.
// +kubebuilder:validation:Optional
EndpointConfig []EndpointConfigParameters `json:"endpointConfig,omitempty" tf:"endpoint_config,omitempty"`
// Common config settings for resources of Google Compute Engine cluster
// instances, applicable to all instances in the cluster. Structure defined below.
// +kubebuilder:validation:Optional
GceClusterConfig []GceClusterConfigParameters `json:"gceClusterConfig,omitempty" tf:"gce_cluster_config,omitempty"`
// Commands to execute on each node after config is completed.
// You can specify multiple versions of these. Structure defined below.
// +kubebuilder:validation:Optional
InitializationAction []InitializationActionParameters `json:"initializationAction,omitempty" tf:"initialization_action,omitempty"`
// The settings for auto deletion cluster schedule.
// Structure defined below.
// +kubebuilder:validation:Optional
LifecycleConfig []LifecycleConfigParameters `json:"lifecycleConfig,omitempty" tf:"lifecycle_config,omitempty"`
// The Google Compute Engine config settings for the master instances
// in a cluster. Structure defined below.
// +kubebuilder:validation:Optional
MasterConfig []MasterConfigParameters `json:"masterConfig,omitempty" tf:"master_config,omitempty"`
// The config setting for metastore service with the cluster.
// Structure defined below.
// +kubebuilder:validation:Optional
MetastoreConfig []MetastoreConfigParameters `json:"metastoreConfig,omitempty" tf:"metastore_config,omitempty"`
// The Google Compute Engine config settings for the additional
// instances in a cluster. Structure defined below.
// +kubebuilder:validation:Optional
PreemptibleWorkerConfig []PreemptibleWorkerConfigParameters `json:"preemptibleWorkerConfig,omitempty" tf:"preemptible_worker_config,omitempty"`
// Security related configuration. Structure defined below.
// +kubebuilder:validation:Optional
SecurityConfig []SecurityConfigParameters `json:"securityConfig,omitempty" tf:"security_config,omitempty"`
// The config settings for software inside the cluster.
// Structure defined below.
// +kubebuilder:validation:Optional
SoftwareConfig []SoftwareConfigParameters `json:"softwareConfig,omitempty" tf:"software_config,omitempty"`
// The Cloud Storage staging bucket used to stage files,
// such as Hadoop jars, between client machines and the cluster.
// Note: If you don't explicitly specify a staging_bucket
// then GCP will auto create / assign one for you. However, you are not guaranteed
// an auto generated bucket which is solely dedicated to your cluster; it may be shared
// with other clusters in the same region/zone also choosing to use the auto generation
// option.
// +kubebuilder:validation:Optional
StagingBucket *string `json:"stagingBucket,omitempty" tf:"staging_bucket,omitempty"`
// The Cloud Storage temp bucket used to store ephemeral cluster
// and jobs data, such as Spark and MapReduce history files.
// Note: If you don't explicitly specify a temp_bucket then GCP will auto create / assign one for you.
// +kubebuilder:validation:Optional
TempBucket *string `json:"tempBucket,omitempty" tf:"temp_bucket,omitempty"`
// The Google Compute Engine config settings for the worker instances
// in a cluster. Structure defined below.
// +kubebuilder:validation:Optional
WorkerConfig []ClusterConfigWorkerConfigParameters `json:"workerConfig,omitempty" tf:"worker_config,omitempty"`
}
type ClusterConfigWorkerConfigInitParameters struct {
// The Compute Engine accelerator configuration for these instances. Can be specified multiple times.
Accelerators []WorkerConfigAcceleratorsInitParameters `json:"accelerators,omitempty" tf:"accelerators,omitempty"`
// Disk Config
DiskConfig []WorkerConfigDiskConfigInitParameters `json:"diskConfig,omitempty" tf:"disk_config,omitempty"`
// The URI for the image to use for this worker. See the guide
// for more information.
ImageURI *string `json:"imageUri,omitempty" tf:"image_uri,omitempty"`
// The name of a Google Compute Engine machine type
// to create for the worker nodes. If not specified, GCP will default to a predetermined
// computed value (currently n1-standard-4).
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// The name of a minimum generation of CPU family
// for the master. If not specified, GCP will default to a predetermined computed value
// for each zone. See the guide
// for details about which CPU families are available (and defaulted) for each zone.
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// Specifies the number of worker nodes to create.
// If not specified, GCP will default to a predetermined computed value (currently 2).
// There is currently a beta feature which allows you to run a
// Single Node Cluster.
// In order to take advantage of this you need to set
// "dataproc:dataproc.allow.zero.workers" = "true" in
// cluster_config.software_config.properties
NumInstances *float64 `json:"numInstances,omitempty" tf:"num_instances,omitempty"`
}
type ClusterConfigWorkerConfigObservation struct {
// The Compute Engine accelerator configuration for these instances. Can be specified multiple times.
Accelerators []WorkerConfigAcceleratorsObservation `json:"accelerators,omitempty" tf:"accelerators,omitempty"`
// Disk Config
DiskConfig []WorkerConfigDiskConfigObservation `json:"diskConfig,omitempty" tf:"disk_config,omitempty"`
// The URI for the image to use for this worker. See the guide
// for more information.
ImageURI *string `json:"imageUri,omitempty" tf:"image_uri,omitempty"`
// List of worker instance names which have been assigned
// to the cluster.
InstanceNames []*string `json:"instanceNames,omitempty" tf:"instance_names,omitempty"`
// The name of a Google Compute Engine machine type
// to create for the worker nodes. If not specified, GCP will default to a predetermined
// computed value (currently n1-standard-4).
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// The name of a minimum generation of CPU family
// for the master. If not specified, GCP will default to a predetermined computed value
// for each zone. See the guide
// for details about which CPU families are available (and defaulted) for each zone.
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// Specifies the number of worker nodes to create.
// If not specified, GCP will default to a predetermined computed value (currently 2).
// There is currently a beta feature which allows you to run a
// Single Node Cluster.
// In order to take advantage of this you need to set
// "dataproc:dataproc.allow.zero.workers" = "true" in
// cluster_config.software_config.properties
NumInstances *float64 `json:"numInstances,omitempty" tf:"num_instances,omitempty"`
}
type ClusterConfigWorkerConfigParameters struct {
// The Compute Engine accelerator configuration for these instances. Can be specified multiple times.
// +kubebuilder:validation:Optional
Accelerators []WorkerConfigAcceleratorsParameters `json:"accelerators,omitempty" tf:"accelerators,omitempty"`
// Disk Config
// +kubebuilder:validation:Optional
DiskConfig []WorkerConfigDiskConfigParameters `json:"diskConfig,omitempty" tf:"disk_config,omitempty"`
// The URI for the image to use for this worker. See the guide
// for more information.
// +kubebuilder:validation:Optional
ImageURI *string `json:"imageUri,omitempty" tf:"image_uri,omitempty"`
// The name of a Google Compute Engine machine type
// to create for the worker nodes. If not specified, GCP will default to a predetermined
// computed value (currently n1-standard-4).
// +kubebuilder:validation:Optional
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// The name of a minimum generation of CPU family
// for the master. If not specified, GCP will default to a predetermined computed value
// for each zone. See the guide
// for details about which CPU families are available (and defaulted) for each zone.
// +kubebuilder:validation:Optional
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// Specifies the number of worker nodes to create.
// If not specified, GCP will default to a predetermined computed value (currently 2).
// There is currently a beta feature which allows you to run a
// Single Node Cluster.
// In order to take advantage of this you need to set
// "dataproc:dataproc.allow.zero.workers" = "true" in
// cluster_config.software_config.properties
// +kubebuilder:validation:Optional
NumInstances *float64 `json:"numInstances,omitempty" tf:"num_instances,omitempty"`
}
type ClusterInitParameters struct {
// Allows you to configure various aspects of the cluster.
// Structure defined below.
ClusterConfig []ClusterConfigInitParameters `json:"clusterConfig,omitempty" tf:"cluster_config,omitempty"`
// Does not affect auto scaling decomissioning from an autoscaling policy.
// Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress.
// Timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs).
// Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day. (see JSON representation of
// Duration).
// Only supported on Dataproc image versions 1.2 and higher.
// For more context see the docs
GracefulDecommissionTimeout *string `json:"gracefulDecommissionTimeout,omitempty" tf:"graceful_decommission_timeout,omitempty"`
// The list of labels (key/value pairs) to be applied to
// instances in the cluster. GCP generates some itself including goog-dataproc-cluster-name
// which is the name of the cluster.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// The name of the cluster, unique within the project and
// zone.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The ID of the project in which the cluster will exist. If it
// is not provided, the provider project is used.
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// The region in which the cluster and associated nodes will be created in.
// Defaults to global.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// Allows you to configure a virtual Dataproc on GKE cluster.
// Structure defined below.
VirtualClusterConfig []VirtualClusterConfigInitParameters `json:"virtualClusterConfig,omitempty" tf:"virtual_cluster_config,omitempty"`
}
type ClusterObservation struct {
// Allows you to configure various aspects of the cluster.
// Structure defined below.
ClusterConfig []ClusterConfigObservation `json:"clusterConfig,omitempty" tf:"cluster_config,omitempty"`
// Does not affect auto scaling decomissioning from an autoscaling policy.
// Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress.
// Timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs).
// Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day. (see JSON representation of
// Duration).
// Only supported on Dataproc image versions 1.2 and higher.
// For more context see the docs
GracefulDecommissionTimeout *string `json:"gracefulDecommissionTimeout,omitempty" tf:"graceful_decommission_timeout,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The list of labels (key/value pairs) to be applied to
// instances in the cluster. GCP generates some itself including goog-dataproc-cluster-name
// which is the name of the cluster.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// The name of the cluster, unique within the project and
// zone.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The ID of the project in which the cluster will exist. If it
// is not provided, the provider project is used.
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// The region in which the cluster and associated nodes will be created in.
// Defaults to global.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// Allows you to configure a virtual Dataproc on GKE cluster.
// Structure defined below.
VirtualClusterConfig []VirtualClusterConfigObservation `json:"virtualClusterConfig,omitempty" tf:"virtual_cluster_config,omitempty"`
}
type ClusterParameters struct {
// Allows you to configure various aspects of the cluster.
// Structure defined below.
// +kubebuilder:validation:Optional
ClusterConfig []ClusterConfigParameters `json:"clusterConfig,omitempty" tf:"cluster_config,omitempty"`
// Does not affect auto scaling decomissioning from an autoscaling policy.
// Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress.
// Timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs).
// Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day. (see JSON representation of
// Duration).
// Only supported on Dataproc image versions 1.2 and higher.
// For more context see the docs
// +kubebuilder:validation:Optional
GracefulDecommissionTimeout *string `json:"gracefulDecommissionTimeout,omitempty" tf:"graceful_decommission_timeout,omitempty"`
// The list of labels (key/value pairs) to be applied to
// instances in the cluster. GCP generates some itself including goog-dataproc-cluster-name
// which is the name of the cluster.
// +kubebuilder:validation:Optional
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// The name of the cluster, unique within the project and
// zone.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The ID of the project in which the cluster will exist. If it
// is not provided, the provider project is used.
// +kubebuilder:validation:Optional
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// The region in which the cluster and associated nodes will be created in.
// Defaults to global.
// +kubebuilder:validation:Optional
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// Allows you to configure a virtual Dataproc on GKE cluster.
// Structure defined below.
// +kubebuilder:validation:Optional
VirtualClusterConfig []VirtualClusterConfigParameters `json:"virtualClusterConfig,omitempty" tf:"virtual_cluster_config,omitempty"`
}
type ConfigInitParameters struct {
// The number of local SSD disks to attach to the node,
// which is limited by the maximum number of disks allowable per zone.
LocalSsdCount *float64 `json:"localSsdCount,omitempty" tf:"local_ssd_count,omitempty"`
// The name of a Compute Engine machine type.
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// Minimum CPU platform to be used by this instance.
// The instance may be scheduled on the specified or a newer CPU platform.
// Specify the friendly names of CPU platforms, such as "Intel Haswell" or "Intel Sandy Bridge".
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// Whether the nodes are created as preemptible VM instances.
// Preemptible nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the
// CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).
Preemptible *bool `json:"preemptible,omitempty" tf:"preemptible,omitempty"`
// Spot flag for enabling Spot VM, which is a rebrand of the existing preemptible flag.
Spot *bool `json:"spot,omitempty" tf:"spot,omitempty"`
}
type ConfigObservation struct {
// The number of local SSD disks to attach to the node,
// which is limited by the maximum number of disks allowable per zone.
LocalSsdCount *float64 `json:"localSsdCount,omitempty" tf:"local_ssd_count,omitempty"`
// The name of a Compute Engine machine type.
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// Minimum CPU platform to be used by this instance.
// The instance may be scheduled on the specified or a newer CPU platform.
// Specify the friendly names of CPU platforms, such as "Intel Haswell" or "Intel Sandy Bridge".
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// Whether the nodes are created as preemptible VM instances.
// Preemptible nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the
// CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).
Preemptible *bool `json:"preemptible,omitempty" tf:"preemptible,omitempty"`
// Spot flag for enabling Spot VM, which is a rebrand of the existing preemptible flag.
Spot *bool `json:"spot,omitempty" tf:"spot,omitempty"`
}
type ConfigParameters struct {
// The number of local SSD disks to attach to the node,
// which is limited by the maximum number of disks allowable per zone.
// +kubebuilder:validation:Optional
LocalSsdCount *float64 `json:"localSsdCount,omitempty" tf:"local_ssd_count,omitempty"`
// The name of a Compute Engine machine type.
// +kubebuilder:validation:Optional
MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"`
// Minimum CPU platform to be used by this instance.
// The instance may be scheduled on the specified or a newer CPU platform.
// Specify the friendly names of CPU platforms, such as "Intel Haswell" or "Intel Sandy Bridge".
// +kubebuilder:validation:Optional
MinCPUPlatform *string `json:"minCpuPlatform,omitempty" tf:"min_cpu_platform,omitempty"`
// Whether the nodes are created as preemptible VM instances.
// Preemptible nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the
// CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).
// +kubebuilder:validation:Optional
Preemptible *bool `json:"preemptible,omitempty" tf:"preemptible,omitempty"`
// Spot flag for enabling Spot VM, which is a rebrand of the existing preemptible flag.
// +kubebuilder:validation:Optional
Spot *bool `json:"spot,omitempty" tf:"spot,omitempty"`
}
type DataprocMetricConfigInitParameters struct {
// Metrics sources to enable.
Metrics []MetricsInitParameters `json:"metrics,omitempty" tf:"metrics,omitempty"`
}
type DataprocMetricConfigObservation struct {
// Metrics sources to enable.
Metrics []MetricsObservation `json:"metrics,omitempty" tf:"metrics,omitempty"`
}
type DataprocMetricConfigParameters struct {
// Metrics sources to enable.
// +kubebuilder:validation:Optional
Metrics []MetricsParameters `json:"metrics" tf:"metrics,omitempty"`
}
type DiskConfigInitParameters struct {
// Size of the primary disk attached to each node, specified
// in GB. The primary disk contains the boot volume and system libraries, and the
// smallest allowed disk size is 10GB. GCP will default to a predetermined
// computed value if not set (currently 500GB). Note: If SSDs are not
// attached, it also contains the HDFS data blocks and Hadoop working directories.
BootDiskSizeGb *float64 `json:"bootDiskSizeGb,omitempty" tf:"boot_disk_size_gb,omitempty"`
// The disk type of the primary disk attached to each node.
// One of "pd-ssd" or "pd-standard". Defaults to "pd-standard".
BootDiskType *string `json:"bootDiskType,omitempty" tf:"boot_disk_type,omitempty"`
// The amount of local SSD disks that will be
// attached to each master cluster node. Defaults to 0.
NumLocalSsds *float64 `json:"numLocalSsds,omitempty" tf:"num_local_ssds,omitempty"`
}
type DiskConfigObservation struct {
// Size of the primary disk attached to each node, specified
// in GB. The primary disk contains the boot volume and system libraries, and the
// smallest allowed disk size is 10GB. GCP will default to a predetermined
// computed value if not set (currently 500GB). Note: If SSDs are not
// attached, it also contains the HDFS data blocks and Hadoop working directories.
BootDiskSizeGb *float64 `json:"bootDiskSizeGb,omitempty" tf:"boot_disk_size_gb,omitempty"`
// The disk type of the primary disk attached to each node.
// One of "pd-ssd" or "pd-standard". Defaults to "pd-standard".
BootDiskType *string `json:"bootDiskType,omitempty" tf:"boot_disk_type,omitempty"`
// The amount of local SSD disks that will be
// attached to each master cluster node. Defaults to 0.
NumLocalSsds *float64 `json:"numLocalSsds,omitempty" tf:"num_local_ssds,omitempty"`
}
type DiskConfigParameters struct {
// Size of the primary disk attached to each node, specified
// in GB. The primary disk contains the boot volume and system libraries, and the
// smallest allowed disk size is 10GB. GCP will default to a predetermined
// computed value if not set (currently 500GB). Note: If SSDs are not
// attached, it also contains the HDFS data blocks and Hadoop working directories.
// +kubebuilder:validation:Optional
BootDiskSizeGb *float64 `json:"bootDiskSizeGb,omitempty" tf:"boot_disk_size_gb,omitempty"`
// The disk type of the primary disk attached to each node.
// One of "pd-ssd" or "pd-standard". Defaults to "pd-standard".
// +kubebuilder:validation:Optional
BootDiskType *string `json:"bootDiskType,omitempty" tf:"boot_disk_type,omitempty"`
// The amount of local SSD disks that will be
// attached to each master cluster node. Defaults to 0.
// +kubebuilder:validation:Optional
NumLocalSsds *float64 `json:"numLocalSsds,omitempty" tf:"num_local_ssds,omitempty"`
}
type EncryptionConfigInitParameters struct {
// The Cloud KMS key name to use for PD disk encryption for
// all instances in the cluster.
KMSKeyName *string `json:"kmsKeyName,omitempty" tf:"kms_key_name,omitempty"`
}
type EncryptionConfigObservation struct {
// The Cloud KMS key name to use for PD disk encryption for
// all instances in the cluster.
KMSKeyName *string `json:"kmsKeyName,omitempty" tf:"kms_key_name,omitempty"`
}
type EncryptionConfigParameters struct {
// The Cloud KMS key name to use for PD disk encryption for
// all instances in the cluster.
// +kubebuilder:validation:Optional
KMSKeyName *string `json:"kmsKeyName" tf:"kms_key_name,omitempty"`
}
type EndpointConfigInitParameters struct {
// The flag to enable http access to specific ports
// on the cluster from external sources (aka Component Gateway). Defaults to false.
EnableHTTPPortAccess *bool `json:"enableHttpPortAccess,omitempty" tf:"enable_http_port_access,omitempty"`
}
type EndpointConfigObservation struct {
// The flag to enable http access to specific ports
// on the cluster from external sources (aka Component Gateway). Defaults to false.
EnableHTTPPortAccess *bool `json:"enableHttpPortAccess,omitempty" tf:"enable_http_port_access,omitempty"`
// The map of port descriptions to URLs. Will only be populated if
// enable_http_port_access is true.
// +mapType=granular
HTTPPorts map[string]*string `json:"httpPorts,omitempty" tf:"http_ports,omitempty"`
}
type EndpointConfigParameters struct {
// The flag to enable http access to specific ports
// on the cluster from external sources (aka Component Gateway). Defaults to false.
// +kubebuilder:validation:Optional
EnableHTTPPortAccess *bool `json:"enableHttpPortAccess" tf:"enable_http_port_access,omitempty"`
}
type GceClusterConfigInitParameters struct {
// By default, clusters are not restricted to internal IP addresses,
// and will have ephemeral external IP addresses assigned to each instance. If set to true, all
// instances in the cluster will only have internal IP addresses. Note: Private Google Access
// (also known as privateIpGoogleAccess) must be enabled on the subnetwork that the cluster
// will be launched in.
InternalIPOnly *bool `json:"internalIpOnly,omitempty" tf:"internal_ip_only,omitempty"`
// A map of the Compute Engine metadata entries to add to all instances
// (see Project and instance metadata).
// +mapType=granular
Metadata map[string]*string `json:"metadata,omitempty" tf:"metadata,omitempty"`
// The name or self_link of the Google Compute Engine
// network to the cluster will be part of. Conflicts with subnetwork.
// If neither is specified, this defaults to the "default" network.
Network *string `json:"network,omitempty" tf:"network,omitempty"`
// Node Group Affinity for sole-tenant clusters.
NodeGroupAffinity []NodeGroupAffinityInitParameters `json:"nodeGroupAffinity,omitempty" tf:"node_group_affinity,omitempty"`
// Reservation Affinity for consuming zonal reservation.
ReservationAffinity []ReservationAffinityInitParameters `json:"reservationAffinity,omitempty" tf:"reservation_affinity,omitempty"`
// The service account to be used by the Node VMs.
// If not specified, the "default" service account is used.
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/cloudplatform/v1beta1.ServiceAccount
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("email",true)
ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account,omitempty"`
// Reference to a ServiceAccount in cloudplatform to populate serviceAccount.
// +kubebuilder:validation:Optional
ServiceAccountRef *v1.Reference `json:"serviceAccountRef,omitempty" tf:"-"`
// The set of Google API scopes
// to be made available on all of the node VMs under the service_account
// specified. Both OAuth2 URLs and gcloud
// short names are supported. To allow full access to all Cloud APIs, use the
// cloud-platform scope. See a complete list of scopes here.
// +listType=set
ServiceAccountScopes []*string `json:"serviceAccountScopes,omitempty" tf:"service_account_scopes,omitempty"`
// Selector for a ServiceAccount in cloudplatform to populate serviceAccount.
// +kubebuilder:validation:Optional
ServiceAccountSelector *v1.Selector `json:"serviceAccountSelector,omitempty" tf:"-"`
// Shielded Instance Config for clusters using Compute Engine Shielded VMs.
ShieldedInstanceConfig []ShieldedInstanceConfigInitParameters `json:"shieldedInstanceConfig,omitempty" tf:"shielded_instance_config,omitempty"`
// The name or self_link of the Google Compute Engine
// subnetwork the cluster will be part of. Conflicts with network.
Subnetwork *string `json:"subnetwork,omitempty" tf:"subnetwork,omitempty"`
// The list of instance tags applied to instances in the cluster.
// Tags are used to identify valid sources or targets for network firewalls.
// +listType=set
Tags []*string `json:"tags,omitempty" tf:"tags,omitempty"`
// The GCP zone where your data is stored and used (i.e. where
// the master and the worker nodes will be created in). If region is set to 'global' (default)
// then zone is mandatory, otherwise GCP is able to make use of Auto Zone Placement
// to determine this automatically for you.
// Note: This setting additionally determines and restricts
// which computing resources are available for use with other configs such as
// cluster_config.master_config.machine_type and cluster_config.worker_config.machine_type.
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type GceClusterConfigObservation struct {
// By default, clusters are not restricted to internal IP addresses,
// and will have ephemeral external IP addresses assigned to each instance. If set to true, all
// instances in the cluster will only have internal IP addresses. Note: Private Google Access
// (also known as privateIpGoogleAccess) must be enabled on the subnetwork that the cluster
// will be launched in.
InternalIPOnly *bool `json:"internalIpOnly,omitempty" tf:"internal_ip_only,omitempty"`
// A map of the Compute Engine metadata entries to add to all instances
// (see Project and instance metadata).
// +mapType=granular
Metadata map[string]*string `json:"metadata,omitempty" tf:"metadata,omitempty"`
// The name or self_link of the Google Compute Engine
// network to the cluster will be part of. Conflicts with subnetwork.
// If neither is specified, this defaults to the "default" network.
Network *string `json:"network,omitempty" tf:"network,omitempty"`
// Node Group Affinity for sole-tenant clusters.
NodeGroupAffinity []NodeGroupAffinityObservation `json:"nodeGroupAffinity,omitempty" tf:"node_group_affinity,omitempty"`
// Reservation Affinity for consuming zonal reservation.
ReservationAffinity []ReservationAffinityObservation `json:"reservationAffinity,omitempty" tf:"reservation_affinity,omitempty"`
// The service account to be used by the Node VMs.
// If not specified, the "default" service account is used.
ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account,omitempty"`
// The set of Google API scopes
// to be made available on all of the node VMs under the service_account
// specified. Both OAuth2 URLs and gcloud
// short names are supported. To allow full access to all Cloud APIs, use the
// cloud-platform scope. See a complete list of scopes here.
// +listType=set
ServiceAccountScopes []*string `json:"serviceAccountScopes,omitempty" tf:"service_account_scopes,omitempty"`
// Shielded Instance Config for clusters using Compute Engine Shielded VMs.
ShieldedInstanceConfig []ShieldedInstanceConfigObservation `json:"shieldedInstanceConfig,omitempty" tf:"shielded_instance_config,omitempty"`
// The name or self_link of the Google Compute Engine
// subnetwork the cluster will be part of. Conflicts with network.
Subnetwork *string `json:"subnetwork,omitempty" tf:"subnetwork,omitempty"`
// The list of instance tags applied to instances in the cluster.
// Tags are used to identify valid sources or targets for network firewalls.
// +listType=set
Tags []*string `json:"tags,omitempty" tf:"tags,omitempty"`
// The GCP zone where your data is stored and used (i.e. where
// the master and the worker nodes will be created in). If region is set to 'global' (default)
// then zone is mandatory, otherwise GCP is able to make use of Auto Zone Placement
// to determine this automatically for you.
// Note: This setting additionally determines and restricts
// which computing resources are available for use with other configs such as
// cluster_config.master_config.machine_type and cluster_config.worker_config.machine_type.
Zone *string `json:"zone,omitempty" tf:"zone,omitempty"`
}
type GceClusterConfigParameters struct {
// By default, clusters are not restricted to internal IP addresses,
// and will have ephemeral external IP addresses assigned to each instance. If set to true, all
// instances in the cluster will only have internal IP addresses. Note: Private Google Access
// (also known as privateIpGoogleAccess) must be enabled on the subnetwork that the cluster
// will be launched in.
// +kubebuilder:validation:Optional
InternalIPOnly *bool `json:"internalIpOnly,omitempty" tf:"internal_ip_only,omitempty"`
// A map of the Compute Engine metadata entries to add to all instances
// (see Project and instance metadata).
// +kubebuilder:validation:Optional
// +mapType=granular
Metadata map[string]*string `json:"metadata,omitempty" tf:"metadata,omitempty"`
// The name or self_link of the Google Compute Engine
// network to the cluster will be part of. Conflicts with subnetwork.
// If neither is specified, this defaults to the "default" network.
// +kubebuilder:validation:Optional
Network *string `json:"network,omitempty" tf:"network,omitempty"`
// Node Group Affinity for sole-tenant clusters.
// +kubebuilder:validation:Optional
NodeGroupAffinity []NodeGroupAffinityParameters `json:"nodeGroupAffinity,omitempty" tf:"node_group_affinity,omitempty"`
// Reservation Affinity for consuming zonal reservation.
// +kubebuilder:validation:Optional
ReservationAffinity []ReservationAffinityParameters `json:"reservationAffinity,omitempty" tf:"reservation_affinity,omitempty"`
// The service account to be used by the Node VMs.
// If not specified, the "default" service account is used.
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/cloudplatform/v1beta1.ServiceAccount
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("email",true)
// +kubebuilder:validation:Optional
ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account,omitempty"`
// Reference to a ServiceAccount in cloudplatform to populate serviceAccount.
// +kubebuilder:validation:Optional
ServiceAccountRef *v1.Reference `json:"serviceAccountRef,omitempty" tf:"-"`
// The set of Google API scopes
// to be made available on all of the node VMs under the service_account
// specified. Both OAuth2 URLs and gcloud
// short names are supported. To allow full access to all Cloud APIs, use the
// cloud-platform scope. See a complete list of scopes here.
// +kubebuilder:validation:Optional
// +listType=set
ServiceAccountScopes []*string `json:"serviceAccountScopes,omitempty" tf:"service_account_scopes,omitempty"`
// Selector for a ServiceAccount in cloudplatform to populate serviceAccount.
// +kubebuilder:validation:Optional