Skip to content

Commit 0740d35

Browse files
aniruddha2000belgaied2
authored andcommitted
Add fields to the GCPManagedControlPlane types
- Description - Cluster Network - PrivateCluster - UseIPAliases - Pod - Service - Cluster Security - WorkloadIdentityConfig - AuthenticatorGroupConfig - EnableLagacyAuthorization - IssueClientCertificate - AddonsConfig - LoggingConfig - MonitoringConfig Signed-off-by: Aniruddha Basak <[email protected]> Signed-off-by: Akshay Gaikwad <[email protected]>
1 parent e630d8b commit 0740d35

File tree

3 files changed

+590
-0
lines changed

3 files changed

+590
-0
lines changed

config/crd/bases/infrastructure.cluster.x-k8s.io_gcpmanagedcontrolplanes.yaml

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,153 @@ spec:
6262
spec:
6363
description: GCPManagedControlPlaneSpec defines the desired state of GCPManagedControlPlane.
6464
properties:
65+
addonsConfig:
66+
description: AddonsConfig defines the enabled Cluster Addons.
67+
properties:
68+
GCEPersistentDiskCsiDriver:
69+
description: GCEPersistentDiskCsiDriver whether the Compute Engine
70+
PD CSI driver is enabled for this cluster.
71+
type: boolean
72+
GCPFileStoreCsiDriver:
73+
description: GCPFileStoreCsiDriver whether the GCP Filestore CSI
74+
driver is enabled for this cluster.
75+
type: boolean
76+
GKEBackup:
77+
description: GKEBackup whether the Backup for GKE agent is enabled
78+
for this cluster.
79+
type: boolean
80+
ImageStreaming:
81+
description: ImageStreaming whether to use GCFS (Google Container
82+
File System).
83+
type: boolean
84+
cloudRun:
85+
description: CloudRun enable the Cloud Run addon, which allows the
86+
user to use a managed Knative service.
87+
type: boolean
88+
kalmConfig:
89+
description: KalmConfig enable the KALM addon, which manages the
90+
lifecycle of k8s applications.
91+
type: boolean
92+
type: object
6593
clusterName:
6694
description: |-
6795
ClusterName allows you to specify the name of the GKE cluster.
6896
If you don't specify a name then a default name will be created
6997
based on the namespace and name of the managed control plane.
7098
type: string
99+
clusterNetwork:
100+
description: ClusterNetwork define the cluster network.
101+
properties:
102+
pod:
103+
description: Pod defines the range of CIDRBlock list from where
104+
it gets the IP address.
105+
properties:
106+
cidrBlock:
107+
description: CidrBlock is where all pods in the cluster are
108+
assigned an IP address from this range. Enter a range (in
109+
CIDR notation) within a network range, a mask, or leave
110+
this field blank to use a default range. This setting is
111+
permanent.
112+
type: string
113+
type: object
114+
privateCluster:
115+
description: PrivateCluster defines the private cluster spec.
116+
properties:
117+
controlPlaneCidrBlock:
118+
description: ControlPlaneCidrBlock is the IP range in CIDR
119+
notation to use for the hosted master network. This range
120+
must not overlap with any other ranges in use within the
121+
cluster's network. Honored when enabled is true.
122+
type: string
123+
controlPlaneGlobalAccess:
124+
description: ControlPlaneGlobalAccess is whenever master is
125+
accessible globally or not. Honored when enabled is true.
126+
type: boolean
127+
disableDefaultSNAT:
128+
description: DisableDefaultSNAT is disables cluster default
129+
sNAT rules. Honored when enabled is true.
130+
type: boolean
131+
enablePrivateEndpoint:
132+
description: 'EnablePrivateEndpoint: Whether the master''s
133+
internal IP address is used as the cluster endpoint.'
134+
type: boolean
135+
enablePrivateNodes:
136+
description: 'EnablePrivateNodes: Whether nodes have internal
137+
IP addresses only. If enabled, all nodes are given only
138+
RFC 1918 private addresses and communicate with the master
139+
via private networking.'
140+
type: boolean
141+
type: object
142+
service:
143+
description: Service defines the range of CIDRBlock list from
144+
where it gets the IP address.
145+
properties:
146+
cidrBlock:
147+
description: CidrBlock is where cluster services will be assigned
148+
an IP address from this IP address range. Enter a range
149+
(in CIDR notation) within a network range, a mask, or leave
150+
this field blank to use a default range. This setting is
151+
permanent.
152+
type: string
153+
type: object
154+
useIPAliases:
155+
description: UseIPAliases is whether alias IPs will be used for
156+
pod IPs in the cluster. If false, routes will be used for pod
157+
IPs in the cluster.
158+
type: boolean
159+
type: object
160+
clusterSecurity:
161+
description: ClusterSecurity defines the cluster security.
162+
properties:
163+
authenticatorGroupConfig:
164+
description: AuthenticatorGroupConfig is RBAC security group for
165+
use with Google security groups in Kubernetes RBAC.
166+
properties:
167+
securityGroups:
168+
description: SecurityGroups is the name of the security group-of-groups
169+
to be used.
170+
type: string
171+
type: object
172+
enableLegacyAuthorization:
173+
description: EnableLegacyAuthorization Whether the legacy (ABAC)
174+
authorizer is enabled for this cluster.
175+
type: boolean
176+
issueClientCertificate:
177+
description: IssueClientCertificate is weather to issue a client
178+
certificate.
179+
type: boolean
180+
workloadIdentityConfig:
181+
description: WorkloadIdentityConfig allows workloads in your GKE
182+
clusters to impersonate Identity and Access Management (IAM)
183+
service accounts to access Google Cloud services
184+
properties:
185+
workloadPool:
186+
description: WorkloadPool is the workload pool to attach all
187+
Kubernetes service accounts to Google Cloud services. Only
188+
relevant when enabled is true
189+
type: string
190+
type: object
191+
type: object
71192
controlPlaneVersion:
72193
description: |-
73194
ControlPlaneVersion represents the control plane version of the GKE cluster.
74195
If not specified, the default version currently supported by GKE will be
75196
used.
76197
type: string
198+
defaultMaxPodsPerNode:
199+
description: DefaultMaXPodsPerNode is the maximum number of pods can
200+
be run simultaneously on a Node, and only honored if Cluster is
201+
created with IP Alias support.
202+
type: integer
203+
defaultNodeLocation:
204+
description: DefaultNodeLocation is the list of Google Compute Engine
205+
zones in which the cluster's Node should be located.
206+
items:
207+
type: string
208+
type: array
209+
description:
210+
description: Description describe the cluster.
211+
type: string
77212
enableAutopilot:
78213
description: EnableAutopilot indicates whether to enable autopilot
79214
for this GKE cluster.
@@ -98,6 +233,26 @@ spec:
98233
Location represents the location (region or zone) in which the GKE cluster
99234
will be created.
100235
type: string
236+
loggingConfig:
237+
description: LoggingConfig defines the logging on Cluster.
238+
properties:
239+
apiServer:
240+
description: APIServer enables the api server logging.
241+
type: boolean
242+
controllerManager:
243+
description: ControllerManager enables the controller manager
244+
logging.
245+
type: boolean
246+
scheduler:
247+
description: Scheduler enables the scheduler logging.
248+
type: boolean
249+
systemComponents:
250+
description: SystemComponents enables the system component logging.
251+
type: boolean
252+
workloads:
253+
description: Workloads enables the Workloads logging.
254+
type: boolean
255+
type: object
101256
master_authorized_networks_config:
102257
description: |-
103258
MasterAuthorizedNetworksConfig represents configuration options for master authorized networks feature of the GKE cluster.
@@ -126,6 +281,27 @@ spec:
126281
Public IP addresses.
127282
type: boolean
128283
type: object
284+
monitoringConfig:
285+
description: MonitoringConfig defines the monitoring on Cluster.
286+
properties:
287+
apiServer:
288+
description: APIServer enables the api server monitoring.
289+
type: boolean
290+
controllerManager:
291+
description: ControllerManager enables the controller manager
292+
monitoring.
293+
type: boolean
294+
enableManagedPrometheus:
295+
description: EnableManagedPrometheus Enable Google Cloud Managed
296+
Service for Prometheus in the cluster.
297+
type: boolean
298+
scheduler:
299+
description: Scheduler enables the scheduler monitoring.
300+
type: boolean
301+
systemComponents:
302+
description: SystemComponents enables the system component monitoring.
303+
type: boolean
304+
type: object
129305
project:
130306
description: Project is the name of the project to deploy the cluster
131307
to.

0 commit comments

Comments
 (0)