-
Notifications
You must be signed in to change notification settings - Fork 193
/
containercluster_types.go
1356 lines (1049 loc) · 58.6 KB
/
containercluster_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
// Copyright 2020 Google LLC
//
// 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.
// ----------------------------------------------------------------------------
//
// *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
//
// ----------------------------------------------------------------------------
//
// This file is automatically generated by Config Connector and manual
// changes will be clobbered when the file is regenerated.
//
// ----------------------------------------------------------------------------
// *** DISCLAIMER ***
// Config Connector's go-client for CRDs is currently in ALPHA, which means
// that future versions of the go-client may include breaking changes.
// Please try it out and give us feedback!
package v1beta1
import (
"github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/k8s/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
type ClusterAdditionalPodRangesConfig struct {
/* Name for pod secondary ipv4 range which has the actual range defined ahead. */
PodRangeNames []string `json:"podRangeNames"`
}
type ClusterAddonsConfig struct {
/* The status of the CloudRun addon. It is disabled by default. Set disabled = false to enable. */
// +optional
CloudrunConfig *ClusterCloudrunConfig `json:"cloudrunConfig,omitempty"`
/* The of the Config Connector addon. */
// +optional
ConfigConnectorConfig *ClusterConfigConnectorConfig `json:"configConnectorConfig,omitempty"`
/* The status of the NodeLocal DNSCache addon. It is disabled by default. Set enabled = true to enable. */
// +optional
DnsCacheConfig *ClusterDnsCacheConfig `json:"dnsCacheConfig,omitempty"`
/* Whether this cluster should enable the Google Compute Engine Persistent Disk Container Storage Interface (CSI) Driver. Set enabled = true to enable. The Compute Engine persistent disk CSI Driver is enabled by default on newly created clusters for the following versions: Linux clusters: GKE version 1.18.10-gke.2100 or later, or 1.19.3-gke.2100 or later. */
// +optional
GcePersistentDiskCsiDriverConfig *ClusterGcePersistentDiskCsiDriverConfig `json:"gcePersistentDiskCsiDriverConfig,omitempty"`
/* The status of the Filestore CSI driver addon, which allows the usage of filestore instance as volumes. Defaults to disabled; set enabled = true to enable. */
// +optional
GcpFilestoreCsiDriverConfig *ClusterGcpFilestoreCsiDriverConfig `json:"gcpFilestoreCsiDriverConfig,omitempty"`
/* The status of the GCS Fuse CSI driver addon, which allows the usage of gcs bucket as volumes. Defaults to disabled; set enabled = true to enable. */
// +optional
GcsFuseCsiDriverConfig *ClusterGcsFuseCsiDriverConfig `json:"gcsFuseCsiDriverConfig,omitempty"`
/* The status of the Backup for GKE Agent addon. It is disabled by default. Set enabled = true to enable. */
// +optional
GkeBackupAgentConfig *ClusterGkeBackupAgentConfig `json:"gkeBackupAgentConfig,omitempty"`
/* The status of the Horizontal Pod Autoscaling addon, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods. It ensures that a Heapster pod is running in the cluster, which is also used by the Cloud Monitoring service. It is enabled by default; set disabled = true to disable. */
// +optional
HorizontalPodAutoscaling *ClusterHorizontalPodAutoscaling `json:"horizontalPodAutoscaling,omitempty"`
/* The status of the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster. It is enabled by default; set disabled = true to disable. */
// +optional
HttpLoadBalancing *ClusterHttpLoadBalancing `json:"httpLoadBalancing,omitempty"`
/* The status of the Istio addon. */
// +optional
IstioConfig *ClusterIstioConfig `json:"istioConfig,omitempty"`
/* Configuration for the KALM addon, which manages the lifecycle of k8s. It is disabled by default; Set enabled = true to enable. */
// +optional
KalmConfig *ClusterKalmConfig `json:"kalmConfig,omitempty"`
/* Whether we should enable the network policy addon for the master. This must be enabled in order to enable network policy for the nodes. To enable this, you must also define a network_policy block, otherwise nothing will happen. It can only be disabled if the nodes already do not have network policies enabled. Defaults to disabled; set disabled = false to enable. */
// +optional
NetworkPolicyConfig *ClusterNetworkPolicyConfig `json:"networkPolicyConfig,omitempty"`
}
type ClusterAdvancedDatapathObservabilityConfig struct {
/* Whether or not the advanced datapath metrics are enabled. */
EnableMetrics bool `json:"enableMetrics"`
/* Mode used to make Relay available. */
// +optional
RelayMode *string `json:"relayMode,omitempty"`
}
type ClusterAdvancedMachineFeatures struct {
/* Immutable. The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed. */
ThreadsPerCore int64 `json:"threadsPerCore"`
}
type ClusterAuthenticatorGroupsConfig struct {
/* The name of the RBAC security group for use with Google security groups in Kubernetes RBAC. Group name must be in format gke-security-groups@yourdomain.com. */
SecurityGroup string `json:"securityGroup"`
}
type ClusterAutoProvisioningDefaults struct {
/* Immutable. The Customer Managed Encryption Key used to encrypt the
boot disk attached to each node in the node pool. */
// +optional
BootDiskKMSKeyRef *v1alpha1.ResourceRef `json:"bootDiskKMSKeyRef,omitempty"`
/* Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. */
// +optional
DiskSize *int64 `json:"diskSize,omitempty"`
/* The default image type used by NAP once a new node pool is being created. */
// +optional
ImageType *string `json:"imageType,omitempty"`
/* NodeManagement configuration for this NodePool. */
// +optional
Management *ClusterManagement `json:"management,omitempty"`
/* Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell. */
// +optional
MinCpuPlatform *string `json:"minCpuPlatform,omitempty"`
/* Scopes that are used by NAP when creating node pools. */
// +optional
OauthScopes []string `json:"oauthScopes,omitempty"`
// +optional
ServiceAccountRef *v1alpha1.ResourceRef `json:"serviceAccountRef,omitempty"`
/* Shielded Instance options. */
// +optional
ShieldedInstanceConfig *ClusterShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"`
/* Specifies the upgrade settings for NAP created node pools. */
// +optional
UpgradeSettings *ClusterUpgradeSettings `json:"upgradeSettings,omitempty"`
}
type ClusterBigqueryDestination struct {
/* The ID of a BigQuery Dataset. */
DatasetId string `json:"datasetId"`
}
type ClusterBinaryAuthorization struct {
/* DEPRECATED. Deprecated in favor of evaluation_mode. Enable Binary Authorization for this cluster. */
// +optional
Enabled *bool `json:"enabled,omitempty"`
/* Mode of operation for Binary Authorization policy evaluation. */
// +optional
EvaluationMode *string `json:"evaluationMode,omitempty"`
}
type ClusterBlueGreenSettings struct {
/* Time needed after draining entire blue pool. After this period, blue pool will be cleaned up.
A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s". */
// +optional
NodePoolSoakDuration *string `json:"nodePoolSoakDuration,omitempty"`
/* Standard policy for the blue-green upgrade. */
// +optional
StandardRolloutPolicy *ClusterStandardRolloutPolicy `json:"standardRolloutPolicy,omitempty"`
}
type ClusterCidrBlocks struct {
/* External network that can access Kubernetes master through HTTPS. Must be specified in CIDR notation. */
CidrBlock string `json:"cidrBlock"`
/* Field for users to identify CIDR blocks. */
// +optional
DisplayName *string `json:"displayName,omitempty"`
}
type ClusterClientCertificateConfig struct {
/* Immutable. Whether client certificate authorization is enabled for this cluster. */
IssueClientCertificate bool `json:"issueClientCertificate"`
}
type ClusterCloudrunConfig struct {
Disabled bool `json:"disabled"`
// +optional
LoadBalancerType *string `json:"loadBalancerType,omitempty"`
}
type ClusterClusterAutoscaling struct {
/* Contains defaults for a node pool created by NAP. */
// +optional
AutoProvisioningDefaults *ClusterAutoProvisioningDefaults `json:"autoProvisioningDefaults,omitempty"`
/* Configuration options for the Autoscaling profile feature, which lets you choose whether the cluster autoscaler should optimize for resource utilization or resource availability when deciding to remove nodes from a cluster. Can be BALANCED or OPTIMIZE_UTILIZATION. Defaults to BALANCED. */
// +optional
AutoscalingProfile *string `json:"autoscalingProfile,omitempty"`
/* Whether node auto-provisioning is enabled. Resource limits for cpu and memory must be defined to enable node auto-provisioning. */
// +optional
Enabled *bool `json:"enabled,omitempty"`
/* Global constraints for machine resources in the cluster. Configuring the cpu and memory types is required if node auto-provisioning is enabled. These limits will apply to node pool autoscaling in addition to node auto-provisioning. */
// +optional
ResourceLimits []ClusterResourceLimits `json:"resourceLimits,omitempty"`
}
type ClusterClusterTelemetry struct {
/* Type of the integration. */
Type string `json:"type"`
}
type ClusterConfidentialNodes struct {
/* Immutable. Whether Confidential Nodes feature is enabled for all nodes in this pool. */
Enabled bool `json:"enabled"`
}
type ClusterConfigConnectorConfig struct {
Enabled bool `json:"enabled"`
}
type ClusterCostManagementConfig struct {
/* Whether to enable GKE cost allocation. When you enable GKE cost allocation, the cluster name and namespace of your GKE workloads appear in the labels field of the billing export to BigQuery. Defaults to false. */
Enabled bool `json:"enabled"`
}
type ClusterDailyMaintenanceWindow struct {
// +optional
Duration *string `json:"duration,omitempty"`
StartTime string `json:"startTime"`
}
type ClusterDatabaseEncryption struct {
/* The key to use to encrypt/decrypt secrets. */
// +optional
KeyName *string `json:"keyName,omitempty"`
/* ENCRYPTED or DECRYPTED. */
State string `json:"state"`
}
type ClusterDefaultSnatStatus struct {
/* When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic. */
Disabled bool `json:"disabled"`
}
type ClusterDnsCacheConfig struct {
Enabled bool `json:"enabled"`
}
type ClusterDnsConfig struct {
/* Which in-cluster DNS provider should be used. */
// +optional
ClusterDns *string `json:"clusterDns,omitempty"`
/* The suffix used for all cluster service records. */
// +optional
ClusterDnsDomain *string `json:"clusterDnsDomain,omitempty"`
/* The scope of access to cluster DNS records. */
// +optional
ClusterDnsScope *string `json:"clusterDnsScope,omitempty"`
}
type ClusterEnableK8sBetaApis struct {
/* Enabled Kubernetes Beta APIs. */
EnabledApis []string `json:"enabledApis"`
}
type ClusterEphemeralStorageConfig struct {
/* Immutable. Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. Each local SSD must be 375 or 3000 GB in size, and all local SSDs must share the same size. */
LocalSsdCount int64 `json:"localSsdCount"`
}
type ClusterEphemeralStorageLocalSsdConfig struct {
/* Immutable. Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. Each local SSD must be 375 or 3000 GB in size, and all local SSDs must share the same size. */
LocalSsdCount int64 `json:"localSsdCount"`
}
type ClusterExclusionOptions struct {
/* The scope of automatic upgrades to restrict in the exclusion window. */
Scope string `json:"scope"`
}
type ClusterFastSocket struct {
/* Whether or not NCCL Fast Socket is enabled. */
Enabled bool `json:"enabled"`
}
type ClusterFilter struct {
/* Can be used to filter what notifications are sent. Valid values include include UPGRADE_AVAILABLE_EVENT, UPGRADE_EVENT and SECURITY_BULLETIN_EVENT. */
EventType []string `json:"eventType"`
}
type ClusterGatewayApiConfig struct {
/* The Gateway API release channel to use for Gateway API. */
Channel string `json:"channel"`
}
type ClusterGcePersistentDiskCsiDriverConfig struct {
Enabled bool `json:"enabled"`
}
type ClusterGcfsConfig struct {
/* Whether or not GCFS is enabled. */
Enabled bool `json:"enabled"`
}
type ClusterGcpFilestoreCsiDriverConfig struct {
Enabled bool `json:"enabled"`
}
type ClusterGcsFuseCsiDriverConfig struct {
Enabled bool `json:"enabled"`
}
type ClusterGkeBackupAgentConfig struct {
Enabled bool `json:"enabled"`
}
type ClusterGpuDriverInstallationConfig struct {
/* Immutable. Mode for how the GPU driver is installed. */
GpuDriverVersion string `json:"gpuDriverVersion"`
}
type ClusterGpuSharingConfig struct {
/* Immutable. The type of GPU sharing strategy to enable on the GPU node. Possible values are described in the API package (https://pkg.go.dev/google.golang.org/api/container/v1#GPUSharingConfig). */
GpuSharingStrategy string `json:"gpuSharingStrategy"`
/* Immutable. The maximum number of containers that can share a GPU. */
MaxSharedClientsPerGpu int64 `json:"maxSharedClientsPerGpu"`
}
type ClusterGuestAccelerator struct {
/* Immutable. The number of the accelerator cards exposed to an instance. */
Count int64 `json:"count"`
/* Immutable. Configuration for auto installation of GPU driver. */
// +optional
GpuDriverInstallationConfig *ClusterGpuDriverInstallationConfig `json:"gpuDriverInstallationConfig,omitempty"`
/* Immutable. Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide (https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). */
// +optional
GpuPartitionSize *string `json:"gpuPartitionSize,omitempty"`
/* Immutable. Configuration for GPU sharing. */
// +optional
GpuSharingConfig *ClusterGpuSharingConfig `json:"gpuSharingConfig,omitempty"`
/* Immutable. The accelerator type resource name. */
Type string `json:"type"`
}
type ClusterGvnic struct {
/* Immutable. Whether or not gvnic is enabled. */
Enabled bool `json:"enabled"`
}
type ClusterHorizontalPodAutoscaling struct {
Disabled bool `json:"disabled"`
}
type ClusterHostMaintenancePolicy struct {
/* Immutable. . */
MaintenanceInterval string `json:"maintenanceInterval"`
}
type ClusterHttpLoadBalancing struct {
Disabled bool `json:"disabled"`
}
type ClusterIdentityServiceConfig struct {
/* Whether to enable the Identity Service component. */
// +optional
Enabled *bool `json:"enabled,omitempty"`
}
type ClusterIpAllocationPolicy struct {
/* AdditionalPodRangesConfig is the configuration for additional pod secondary ranges supporting the ClusterUpdate message. */
// +optional
AdditionalPodRangesConfig *ClusterAdditionalPodRangesConfig `json:"additionalPodRangesConfig,omitempty"`
/* Immutable. The IP address range for the cluster pod IPs. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. /14) to have a range chosen with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. */
// +optional
ClusterIpv4CidrBlock *string `json:"clusterIpv4CidrBlock,omitempty"`
/* Immutable. The name of the existing secondary range in the cluster's subnetwork to use for pod IP addresses. Alternatively, cluster_ipv4_cidr_block can be used to automatically create a GKE-managed one. */
// +optional
ClusterSecondaryRangeName *string `json:"clusterSecondaryRangeName,omitempty"`
/* Immutable. Configuration for cluster level pod cidr overprovision. Default is disabled=false. */
// +optional
PodCidrOverprovisionConfig *ClusterPodCidrOverprovisionConfig `json:"podCidrOverprovisionConfig,omitempty"`
/* Immutable. The IP address range of the services IPs in this cluster. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. /14) to have a range chosen with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. */
// +optional
ServicesIpv4CidrBlock *string `json:"servicesIpv4CidrBlock,omitempty"`
/* Immutable. The name of the existing secondary range in the cluster's subnetwork to use for service ClusterIPs. Alternatively, services_ipv4_cidr_block can be used to automatically create a GKE-managed one. */
// +optional
ServicesSecondaryRangeName *string `json:"servicesSecondaryRangeName,omitempty"`
/* Immutable. The IP Stack type of the cluster. Choose between IPV4 and IPV4_IPV6. Default type is IPV4 Only if not set. */
// +optional
StackType *string `json:"stackType,omitempty"`
}
type ClusterIstioConfig struct {
/* The authentication type between services in Istio. Available options include AUTH_MUTUAL_TLS. */
// +optional
Auth *string `json:"auth,omitempty"`
/* The status of the Istio addon, which makes it easy to set up Istio for services in a cluster. It is disabled by default. Set disabled = false to enable. */
Disabled bool `json:"disabled"`
}
type ClusterKalmConfig struct {
Enabled bool `json:"enabled"`
}
type ClusterKubeletConfig struct {
/* Enable CPU CFS quota enforcement for containers that specify CPU limits. */
// +optional
CpuCfsQuota *bool `json:"cpuCfsQuota,omitempty"`
/* Set the CPU CFS quota period value 'cpu.cfs_period_us'. */
// +optional
CpuCfsQuotaPeriod *string `json:"cpuCfsQuotaPeriod,omitempty"`
/* Control the CPU management policy on the node. */
CpuManagerPolicy string `json:"cpuManagerPolicy"`
/* Controls the maximum number of processes allowed to run in a pod. */
// +optional
PodPidsLimit *int64 `json:"podPidsLimit,omitempty"`
}
type ClusterLinuxNodeConfig struct {
/* cgroupMode specifies the cgroup mode to be used on the node. */
// +optional
CgroupMode *string `json:"cgroupMode,omitempty"`
/* The Linux kernel parameters to be applied to the nodes and all pods running on the nodes. */
// +optional
Sysctls map[string]string `json:"sysctls,omitempty"`
}
type ClusterLocalNvmeSsdBlockConfig struct {
/* Immutable. Number of raw-block local NVMe SSD disks to be attached to the node. Each local SSD is 375 GB in size. */
LocalSsdCount int64 `json:"localSsdCount"`
}
type ClusterLoggingConfig struct {
/* GKE components exposing logs. Valid values include SYSTEM_COMPONENTS, APISERVER, CONTROLLER_MANAGER, SCHEDULER, and WORKLOADS. */
EnableComponents []string `json:"enableComponents"`
}
type ClusterMaintenanceExclusion struct {
EndTime string `json:"endTime"`
ExclusionName string `json:"exclusionName"`
/* Maintenance exclusion related options. */
// +optional
ExclusionOptions *ClusterExclusionOptions `json:"exclusionOptions,omitempty"`
StartTime string `json:"startTime"`
}
type ClusterMaintenancePolicy struct {
/* Time window specified for daily maintenance operations. Specify start_time in RFC3339 format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT. */
// +optional
DailyMaintenanceWindow *ClusterDailyMaintenanceWindow `json:"dailyMaintenanceWindow,omitempty"`
/* Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows. */
// +optional
MaintenanceExclusion []ClusterMaintenanceExclusion `json:"maintenanceExclusion,omitempty"`
/* Time window for recurring maintenance operations. */
// +optional
RecurringWindow *ClusterRecurringWindow `json:"recurringWindow,omitempty"`
}
type ClusterManagedPrometheus struct {
/* Whether or not the managed collection is enabled. */
Enabled bool `json:"enabled"`
}
type ClusterManagement struct {
/* Specifies whether the node auto-repair is enabled for the node pool. If enabled, the nodes in this node pool will be monitored and, if they fail health checks too many times, an automatic repair action will be triggered. */
// +optional
AutoRepair *bool `json:"autoRepair,omitempty"`
/* Specifies whether node auto-upgrade is enabled for the node pool. If enabled, node auto-upgrade helps keep the nodes in your node pool up to date with the latest release version of Kubernetes. */
// +optional
AutoUpgrade *bool `json:"autoUpgrade,omitempty"`
/* Specifies the Auto Upgrade knobs for the node pool. */
// +optional
UpgradeOptions []ClusterUpgradeOptions `json:"upgradeOptions,omitempty"`
}
type ClusterMasterAuth struct {
/* Base64 encoded public certificate used by clients to authenticate to the cluster endpoint. */
// +optional
ClientCertificate *string `json:"clientCertificate,omitempty"`
/* Immutable. Whether client certificate authorization is enabled for this cluster. */
// +optional
ClientCertificateConfig *ClusterClientCertificateConfig `json:"clientCertificateConfig,omitempty"`
/* Base64 encoded private key used by clients to authenticate to the cluster endpoint. */
// +optional
ClientKey *string `json:"clientKey,omitempty"`
/* Base64 encoded public certificate that is the root of trust for the cluster. */
// +optional
ClusterCaCertificate *string `json:"clusterCaCertificate,omitempty"`
/* The password to use for HTTP basic authentication when accessing the Kubernetes master endpoint. */
// +optional
Password *ClusterPassword `json:"password,omitempty"`
/* The username to use for HTTP basic authentication when accessing the Kubernetes master endpoint. If not present basic auth will be disabled. */
// +optional
Username *string `json:"username,omitempty"`
}
type ClusterMasterAuthorizedNetworksConfig struct {
/* External networks that can access the Kubernetes cluster master through HTTPS. */
// +optional
CidrBlocks []ClusterCidrBlocks `json:"cidrBlocks,omitempty"`
/* Whether master is accessbile via Google Compute Engine Public IP addresses. */
// +optional
GcpPublicCidrsAccessEnabled *bool `json:"gcpPublicCidrsAccessEnabled,omitempty"`
}
type ClusterMasterGlobalAccessConfig struct {
/* Whether the cluster master is accessible globally or not. */
Enabled bool `json:"enabled"`
}
type ClusterMeshCertificates struct {
/* When enabled the GKE Workload Identity Certificates controller and node agent will be deployed in the cluster. */
EnableCertificates bool `json:"enableCertificates"`
}
type ClusterMonitoringConfig struct {
/* Configuration of Advanced Datapath Observability features. */
// +optional
AdvancedDatapathObservabilityConfig []ClusterAdvancedDatapathObservabilityConfig `json:"advancedDatapathObservabilityConfig,omitempty"`
/* GKE components exposing metrics. Valid values include SYSTEM_COMPONENTS, APISERVER, SCHEDULER, CONTROLLER_MANAGER, STORAGE, HPA, POD, DAEMONSET, DEPLOYMENT, STATEFULSET and WORKLOADS. */
// +optional
EnableComponents []string `json:"enableComponents,omitempty"`
/* Configuration for Google Cloud Managed Services for Prometheus. */
// +optional
ManagedPrometheus *ClusterManagedPrometheus `json:"managedPrometheus,omitempty"`
}
type ClusterNetworkPolicy struct {
/* Whether network policy is enabled on the cluster. */
Enabled bool `json:"enabled"`
/* The selected network policy provider. Defaults to PROVIDER_UNSPECIFIED. */
// +optional
Provider *string `json:"provider,omitempty"`
}
type ClusterNetworkPolicyConfig struct {
Disabled bool `json:"disabled"`
}
type ClusterNetworkTags struct {
/* List of network tags applied to auto-provisioned node pools. */
// +optional
Tags []string `json:"tags,omitempty"`
}
type ClusterNodeAffinity struct {
/* Immutable. . */
Key string `json:"key"`
/* Immutable. . */
Operator string `json:"operator"`
/* Immutable. . */
Values []string `json:"values"`
}
type ClusterNodeConfig struct {
/* Immutable. Specifies options for controlling advanced machine features. */
// +optional
AdvancedMachineFeatures *ClusterAdvancedMachineFeatures `json:"advancedMachineFeatures,omitempty"`
// +optional
BootDiskKMSCryptoKeyRef *v1alpha1.ResourceRef `json:"bootDiskKMSCryptoKeyRef,omitempty"`
/* Immutable. Configuration for the confidential nodes feature, which makes nodes run on confidential VMs. Warning: This configuration can't be changed (or added/removed) after pool creation without deleting and recreating the entire pool. */
// +optional
ConfidentialNodes *ClusterConfidentialNodes `json:"confidentialNodes,omitempty"`
/* Immutable. Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. */
// +optional
DiskSizeGb *int64 `json:"diskSizeGb,omitempty"`
/* Immutable. Type of the disk attached to each node. Such as pd-standard, pd-balanced or pd-ssd. */
// +optional
DiskType *string `json:"diskType,omitempty"`
/* Immutable. Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk. */
// +optional
EphemeralStorageConfig *ClusterEphemeralStorageConfig `json:"ephemeralStorageConfig,omitempty"`
/* Immutable. Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk. */
// +optional
EphemeralStorageLocalSsdConfig *ClusterEphemeralStorageLocalSsdConfig `json:"ephemeralStorageLocalSsdConfig,omitempty"`
/* Enable or disable NCCL Fast Socket in the node pool. */
// +optional
FastSocket *ClusterFastSocket `json:"fastSocket,omitempty"`
/* Immutable. GCFS configuration for this node. */
// +optional
GcfsConfig *ClusterGcfsConfig `json:"gcfsConfig,omitempty"`
/* Immutable. List of the type and count of accelerator cards attached to the instance. */
// +optional
GuestAccelerator []ClusterGuestAccelerator `json:"guestAccelerator,omitempty"`
/* Immutable. Enable or disable gvnic in the node pool. */
// +optional
Gvnic *ClusterGvnic `json:"gvnic,omitempty"`
/* Immutable. The maintenance policy for the hosts on which the GKE VMs run on. */
// +optional
HostMaintenancePolicy *ClusterHostMaintenancePolicy `json:"hostMaintenancePolicy,omitempty"`
/* The image type to use for this node. Note that for a given image type, the latest version of it will be used. */
// +optional
ImageType *string `json:"imageType,omitempty"`
/* Node kubelet configs. */
// +optional
KubeletConfig *ClusterKubeletConfig `json:"kubeletConfig,omitempty"`
/* Immutable. The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. */
// +optional
Labels map[string]string `json:"labels,omitempty"`
/* Parameters that can be configured on Linux nodes. */
// +optional
LinuxNodeConfig *ClusterLinuxNodeConfig `json:"linuxNodeConfig,omitempty"`
/* Immutable. Parameters for raw-block local NVMe SSDs. */
// +optional
LocalNvmeSsdBlockConfig *ClusterLocalNvmeSsdBlockConfig `json:"localNvmeSsdBlockConfig,omitempty"`
/* Immutable. The number of local SSD disks to be attached to the node. */
// +optional
LocalSsdCount *int64 `json:"localSsdCount,omitempty"`
/* Type of logging agent that is used as the default value for node pools in the cluster. Valid values include DEFAULT and MAX_THROUGHPUT. */
// +optional
LoggingVariant *string `json:"loggingVariant,omitempty"`
/* Immutable. The name of a Google Compute Engine machine type. */
// +optional
MachineType *string `json:"machineType,omitempty"`
/* Immutable. The metadata key/value pairs assigned to instances in the cluster. */
// +optional
Metadata map[string]string `json:"metadata,omitempty"`
/* Immutable. Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. */
// +optional
MinCpuPlatform *string `json:"minCpuPlatform,omitempty"`
/* Immutable. Setting this field will assign instances
of this pool to run on the specified node group. This is useful
for running workloads on sole tenant nodes. */
// +optional
NodeGroupRef *v1alpha1.ResourceRef `json:"nodeGroupRef,omitempty"`
/* Immutable. The set of Google API scopes to be made available on all of the node VMs. */
// +optional
OauthScopes []string `json:"oauthScopes,omitempty"`
/* Immutable. Whether the nodes are created as preemptible VM instances. */
// +optional
Preemptible *bool `json:"preemptible,omitempty"`
/* Immutable. The reservation affinity configuration for the node pool. */
// +optional
ReservationAffinity *ClusterReservationAffinity `json:"reservationAffinity,omitempty"`
/* The GCE resource labels (a map of key/value pairs) to be applied to the node pool. */
// +optional
ResourceLabels map[string]string `json:"resourceLabels,omitempty"`
/* Immutable. Sandbox configuration for this node. */
// +optional
SandboxConfig *ClusterSandboxConfig `json:"sandboxConfig,omitempty"`
// +optional
ServiceAccountRef *v1alpha1.ResourceRef `json:"serviceAccountRef,omitempty"`
/* Immutable. Shielded Instance options. */
// +optional
ShieldedInstanceConfig *ClusterShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"`
/* Immutable. Node affinity options for sole tenant node pools. */
// +optional
SoleTenantConfig *ClusterSoleTenantConfig `json:"soleTenantConfig,omitempty"`
/* Immutable. Whether the nodes are created as spot VM instances. */
// +optional
Spot *bool `json:"spot,omitempty"`
/* The list of instance tags applied to all nodes. */
// +optional
Tags []string `json:"tags,omitempty"`
/* Immutable. List of Kubernetes taints to be applied to each node. */
// +optional
Taint []ClusterTaint `json:"taint,omitempty"`
/* Immutable. The workload metadata configuration for this node. */
// +optional
WorkloadMetadataConfig *ClusterWorkloadMetadataConfig `json:"workloadMetadataConfig,omitempty"`
}
type ClusterNodeConfigDefaults struct {
/* GCFS configuration for this node. */
// +optional
GcfsConfig *ClusterGcfsConfig `json:"gcfsConfig,omitempty"`
/* Type of logging agent that is used as the default value for node pools in the cluster. Valid values include DEFAULT and MAX_THROUGHPUT. */
// +optional
LoggingVariant *string `json:"loggingVariant,omitempty"`
}
type ClusterNodePoolAutoConfig struct {
/* Collection of Compute Engine network tags that can be applied to a node's underlying VM instance. */
// +optional
NetworkTags *ClusterNetworkTags `json:"networkTags,omitempty"`
}
type ClusterNodePoolDefaults struct {
/* Subset of NodeConfig message that has defaults. */
// +optional
NodeConfigDefaults *ClusterNodeConfigDefaults `json:"nodeConfigDefaults,omitempty"`
}
type ClusterNotificationConfig struct {
/* Notification config for Cloud Pub/Sub. */
Pubsub ClusterPubsub `json:"pubsub"`
}
type ClusterPassword struct {
/* Value of the field. Cannot be used if 'valueFrom' is specified. */
// +optional
Value *string `json:"value,omitempty"`
/* Source for the field's value. Cannot be used if 'value' is specified. */
// +optional
ValueFrom *ClusterValueFrom `json:"valueFrom,omitempty"`
}
type ClusterPodCidrOverprovisionConfig struct {
Disabled bool `json:"disabled"`
}
type ClusterPodSecurityPolicyConfig struct {
/* Enable the PodSecurityPolicy controller for this cluster. If enabled, pods must be valid under a PodSecurityPolicy to be created. */
Enabled bool `json:"enabled"`
}
type ClusterPrivateClusterConfig struct {
/* When true, the cluster's private endpoint is used as the cluster endpoint and access through the public endpoint is disabled. When false, either endpoint can be used. */
// +optional
EnablePrivateEndpoint *bool `json:"enablePrivateEndpoint,omitempty"`
/* Immutable. Enables the private cluster feature, creating a private endpoint on the cluster. In a private cluster, nodes only have RFC 1918 private addresses and communicate with the master's private endpoint via private networking. */
// +optional
EnablePrivateNodes *bool `json:"enablePrivateNodes,omitempty"`
/* Controls cluster master global access settings. */
// +optional
MasterGlobalAccessConfig *ClusterMasterGlobalAccessConfig `json:"masterGlobalAccessConfig,omitempty"`
/* Immutable. The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning private IP addresses to the cluster master(s) and the ILB VIP. This range must not overlap with any other ranges in use within the cluster's network, and it must be a /28 subnet. See Private Cluster Limitations for more details. This field only applies to private clusters, when enable_private_nodes is true. */
// +optional
MasterIpv4CidrBlock *string `json:"masterIpv4CidrBlock,omitempty"`
/* The name of the peering between this cluster and the Google owned VPC. */
// +optional
PeeringName *string `json:"peeringName,omitempty"`
/* The internal IP address of this cluster's master endpoint. */
// +optional
PrivateEndpoint *string `json:"privateEndpoint,omitempty"`
/* Immutable. Subnetwork in cluster's network where master's endpoint
will be provisioned. */
// +optional
PrivateEndpointSubnetworkRef *v1alpha1.ResourceRef `json:"privateEndpointSubnetworkRef,omitempty"`
/* The external IP address of this cluster's master endpoint. */
// +optional
PublicEndpoint *string `json:"publicEndpoint,omitempty"`
}
type ClusterProtectConfig struct {
/* WorkloadConfig defines which actions are enabled for a cluster's workload configurations. */
// +optional
WorkloadConfig *ClusterWorkloadConfig `json:"workloadConfig,omitempty"`
/* Sets which mode to use for Protect workload vulnerability scanning feature. Accepted values are DISABLED, BASIC. */
// +optional
WorkloadVulnerabilityMode *string `json:"workloadVulnerabilityMode,omitempty"`
}
type ClusterPubsub struct {
/* Whether or not the notification config is enabled. */
Enabled bool `json:"enabled"`
/* Allows filtering to one or more specific event types. If event types are present, those and only those event types will be transmitted to the cluster. Other types will be skipped. If no filter is specified, or no event types are present, all event types will be sent. */
// +optional
Filter *ClusterFilter `json:"filter,omitempty"`
/* The PubSubTopic to send the notification to. */
// +optional
TopicRef *v1alpha1.ResourceRef `json:"topicRef,omitempty"`
}
type ClusterRecurringWindow struct {
EndTime string `json:"endTime"`
Recurrence string `json:"recurrence"`
StartTime string `json:"startTime"`
}
type ClusterReleaseChannel struct {
/* The selected release channel. Accepted values are:
* UNSPECIFIED: Not set.
* RAPID: Weekly upgrade cadence; Early testers and developers who requires new features.
* REGULAR: Multiple per month upgrade cadence; Production users who need features not yet offered in the Stable channel.
* STABLE: Every few months upgrade cadence; Production users who need stability above all else, and for whom frequent upgrades are too risky. */
Channel string `json:"channel"`
}
type ClusterReservationAffinity struct {
/* Immutable. Corresponds to the type of reservation consumption. */
ConsumeReservationType string `json:"consumeReservationType"`
/* Immutable. The label key of a reservation resource. */
// +optional
Key *string `json:"key,omitempty"`
/* Immutable. The label values of the reservation resource. */
// +optional
Values []string `json:"values,omitempty"`
}
type ClusterResourceLimits struct {
/* Maximum amount of the resource in the cluster. */
// +optional
Maximum *int64 `json:"maximum,omitempty"`
/* Minimum amount of the resource in the cluster. */
// +optional
Minimum *int64 `json:"minimum,omitempty"`
/* The type of the resource. For example, cpu and memory. See the guide to using Node Auto-Provisioning for a list of types. */
ResourceType string `json:"resourceType"`
}
type ClusterResourceUsageExportConfig struct {
/* Parameters for using BigQuery as the destination of resource usage export. */
BigqueryDestination ClusterBigqueryDestination `json:"bigqueryDestination"`
/* Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic. */
// +optional
EnableNetworkEgressMetering *bool `json:"enableNetworkEgressMetering,omitempty"`
/* Whether to enable resource consumption metering on this cluster. When enabled, a table will be created in the resource export BigQuery dataset to store resource consumption data. The resulting table can be joined with the resource usage table or with BigQuery billing export. Defaults to true. */
// +optional
EnableResourceConsumptionMetering *bool `json:"enableResourceConsumptionMetering,omitempty"`
}
type ClusterSandboxConfig struct {
/* Type of the sandbox to use for the node (e.g. 'gvisor'). */
SandboxType string `json:"sandboxType"`
}
type ClusterSecurityPostureConfig struct {
/* Sets the mode of the Kubernetes security posture API's off-cluster features. Available options include DISABLED and BASIC. */
// +optional
Mode *string `json:"mode,omitempty"`
/* Sets the mode of the Kubernetes security posture API's workload vulnerability scanning. Available options include VULNERABILITY_DISABLED and VULNERABILITY_BASIC. */
// +optional
VulnerabilityMode *string `json:"vulnerabilityMode,omitempty"`
}
type ClusterServiceExternalIpsConfig struct {
/* When enabled, services with exterenal ips specified will be allowed. */
Enabled bool `json:"enabled"`
}
type ClusterShieldedInstanceConfig struct {
/* Immutable. Defines whether the instance has integrity monitoring enabled. */
// +optional
EnableIntegrityMonitoring *bool `json:"enableIntegrityMonitoring,omitempty"`
/* Immutable. Defines whether the instance has Secure Boot enabled. */
// +optional
EnableSecureBoot *bool `json:"enableSecureBoot,omitempty"`
}
type ClusterSoleTenantConfig struct {
/* Immutable. . */
NodeAffinity []ClusterNodeAffinity `json:"nodeAffinity"`
}
type ClusterStandardRolloutPolicy struct {
/* Number of blue nodes to drain in a batch. */
// +optional
BatchNodeCount *int64 `json:"batchNodeCount,omitempty"`
/* Percentage of the bool pool nodes to drain in a batch. The range of this field should be (0.0, 1.0]. */
// +optional
BatchPercentage *float64 `json:"batchPercentage,omitempty"`
/* Soak time after each batch gets drained.
A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s". */
// +optional
BatchSoakDuration *string `json:"batchSoakDuration,omitempty"`
}
type ClusterTaint struct {
/* Immutable. Effect for taint. */
Effect string `json:"effect"`
/* Immutable. Key for taint. */
Key string `json:"key"`
/* Immutable. Value for taint. */
Value string `json:"value"`
}
type ClusterUpgradeOptions struct {
/* This field is set when upgrades are about to commence with the approximate start time for the upgrades, in RFC3339 text format. */
// +optional
AutoUpgradeStartTime *string `json:"autoUpgradeStartTime,omitempty"`
/* This field is set when upgrades are about to commence with the description of the upgrade. */
// +optional
Description *string `json:"description,omitempty"`
}
type ClusterUpgradeSettings struct {
/* Settings for blue-green upgrade strategy. */
// +optional
BlueGreenSettings *ClusterBlueGreenSettings `json:"blueGreenSettings,omitempty"`
/* The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process. */
// +optional
MaxSurge *int64 `json:"maxSurge,omitempty"`
/* The maximum number of nodes that can be simultaneously unavailable during the upgrade process. */
// +optional
MaxUnavailable *int64 `json:"maxUnavailable,omitempty"`
/* Update strategy of the node pool. */
// +optional
Strategy *string `json:"strategy,omitempty"`
}
type ClusterValueFrom struct {
/* Reference to a value with the given key in the given Secret in the resource's namespace. */
// +optional
SecretKeyRef *v1alpha1.SecretKeyRef `json:"secretKeyRef,omitempty"`
}
type ClusterVerticalPodAutoscaling struct {