Skip to content

Commit b0d5705

Browse files
committed
gkeprivate: upgrade to 26.1.1
1 parent a4267ab commit b0d5705

7 files changed

+145
-47
lines changed

gen/gkeprivate/GkeprivateConfig.go

+30-11
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type GkeprivateConfig struct {
4040
// (Beta) Configure the Cloud Run load balancer type.
4141
//
4242
// External by default. Set to `LOAD_BALANCER_TYPE_INTERNAL` to configure as an internal load balancer.
43-
CloudrunLoadBalancerType interface{} `field:"optional" json:"cloudrunLoadBalancerType" yaml:"cloudrunLoadBalancerType"`
43+
CloudrunLoadBalancerType *string `field:"optional" json:"cloudrunLoadBalancerType" yaml:"cloudrunLoadBalancerType"`
4444
// Cluster autoscaling configuration.
4545
//
4646
// See [more details](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#clusterautoscaling)
@@ -134,7 +134,7 @@ type GkeprivateConfig struct {
134134
EnableNetworkEgressExport *bool `field:"optional" json:"enableNetworkEgressExport" yaml:"enableNetworkEgressExport"`
135135
// enabled - Enable the PodSecurityPolicy controller for this cluster.
136136
//
137-
// If enabled, pods must be valid under a PodSecurityPolicy to be created.
137+
// If enabled, pods must be valid under a PodSecurityPolicy to be created. Pod Security Policy was removed from GKE clusters with version >= 1.25.0.
138138
EnablePodSecurityPolicy *bool `field:"optional" json:"enablePodSecurityPolicy" yaml:"enablePodSecurityPolicy"`
139139
// (Beta) Whether the master's internal IP address is used as the cluster endpoint.
140140
EnablePrivateEndpoint *bool `field:"optional" json:"enablePrivateEndpoint" yaml:"enablePrivateEndpoint"`
@@ -168,9 +168,15 @@ type GkeprivateConfig struct {
168168
// Default: 1000.
169169
//
170170
FirewallPriority *float64 `field:"optional" json:"firewallPriority" yaml:"firewallPriority"`
171-
// (Beta) Whether this cluster should enable the Google Compute Engine Persistent Disk Container Storage Interface (CSI) Driver.
171+
// The gateway api channel of this cluster.
172+
//
173+
// Accepted values are `CHANNEL_STANDARD` and `CHANNEL_DISABLED`.
174+
GatewayApiChannel *string `field:"optional" json:"gatewayApiChannel" yaml:"gatewayApiChannel"`
175+
// Whether this cluster should enable the Google Compute Engine Persistent Disk Container Storage Interface (CSI) Driver.
176+
// Default: true.
177+
//
172178
GcePdCsiDriver *bool `field:"optional" json:"gcePdCsiDriver" yaml:"gcePdCsiDriver"`
173-
// (Beta) Whether Backup for GKE agent is enabled for this cluster.
179+
// Whether Backup for GKE agent is enabled for this cluster.
174180
GkeBackupAgentConfig *bool `field:"optional" json:"gkeBackupAgentConfig" yaml:"gkeBackupAgentConfig"`
175181
// Grants created cluster-specific service account storage.objectViewer and artifactregistry.reader roles.
176182
GrantRegistryAccess *bool `field:"optional" json:"grantRegistryAccess" yaml:"grantRegistryAccess"`
@@ -250,7 +256,7 @@ type GkeprivateConfig struct {
250256
MasterIpv4CidrBlock *string `field:"optional" json:"masterIpv4CidrBlock" yaml:"masterIpv4CidrBlock"`
251257
// List of services to monitor: SYSTEM_COMPONENTS, WORKLOADS (provider version >= 3.89.0). Empty list is default GKE configuration.
252258
MonitoringEnabledComponents *[]*string `field:"optional" json:"monitoringEnabledComponents" yaml:"monitoringEnabledComponents"`
253-
// (Beta) Configuration for Managed Service for Prometheus.
259+
// Configuration for Managed Service for Prometheus.
254260
//
255261
// Whether or not the managed collection is enabled.
256262
MonitoringEnableManagedPrometheus *bool `field:"optional" json:"monitoringEnableManagedPrometheus" yaml:"monitoringEnableManagedPrometheus"`
@@ -297,6 +303,11 @@ type GkeprivateConfig struct {
297303
// The property type contains a map, they have special handling, please see {@link cdk.tf /module-map-inputs the docs}
298304
//
299305
NodePoolsOauthScopes *map[string]*[]*string `field:"optional" json:"nodePoolsOauthScopes" yaml:"nodePoolsOauthScopes"`
306+
// Map of maps containing resource labels by node-pool name.
307+
// Default: [object Object]
308+
// The property type contains a map, they have special handling, please see {@link cdk.tf /module-map-inputs the docs}
309+
//
310+
NodePoolsResourceLabels *map[string]*map[string]*string `field:"optional" json:"nodePoolsResourceLabels" yaml:"nodePoolsResourceLabels"`
300311
// Map of lists containing node network tags by node-pool name.
301312
// Default: [object Object]
302313
// The property type contains a map, they have special handling, please see {@link cdk.tf /module-map-inputs the docs}
@@ -329,7 +340,9 @@ type GkeprivateConfig struct {
329340
RegistryProjectIds *[]*string `field:"optional" json:"registryProjectIds" yaml:"registryProjectIds"`
330341
// The release channel of this cluster.
331342
//
332-
// Accepted values are `UNSPECIFIED`, `RAPID`, `REGULAR` and `STABLE`. Defaults to `UNSPECIFIED`.
343+
// Accepted values are `UNSPECIFIED`, `RAPID`, `REGULAR` and `STABLE`. Defaults to `REGULAR`.
344+
// Default: REGULAR.
345+
//
333346
ReleaseChannel *string `field:"optional" json:"releaseChannel" yaml:"releaseChannel"`
334347
// Remove default node pool while setting up the cluster.
335348
RemoveDefaultNodePool *bool `field:"optional" json:"removeDefaultNodePool" yaml:"removeDefaultNodePool"`
@@ -339,20 +352,26 @@ type GkeprivateConfig struct {
339352
SandboxEnabled *bool `field:"optional" json:"sandboxEnabled" yaml:"sandboxEnabled"`
340353
// The service account to run nodes as if not overridden in `node_pools`.
341354
//
342-
// The create_service_account variable default value (true) will cause a cluster-specific service account to be created.
355+
// The create_service_account variable default value (true) will cause a cluster-specific service account to be created. This service account should already exists and it will be used by the node pools. If you wish to only override the service account name, you can use service_account_name variable.
343356
ServiceAccount *string `field:"optional" json:"serviceAccount" yaml:"serviceAccount"`
357+
// The name of the service account that will be created if create_service_account is true.
358+
//
359+
// If you wish to use an existing service account, use service_account variable.
360+
ServiceAccountName *string `field:"optional" json:"serviceAccountName" yaml:"serviceAccountName"`
344361
// Whether external ips specified by a service will be allowed in this cluster.
345362
ServiceExternalIps *bool `field:"optional" json:"serviceExternalIps" yaml:"serviceExternalIps"`
363+
// The log_config for shadow firewall rules.
364+
//
365+
// You can set this variable to `null` to disable logging.
366+
// Default: [object Object].
367+
//
368+
ShadowFirewallRulesLogConfig interface{} `field:"optional" json:"shadowFirewallRulesLogConfig" yaml:"shadowFirewallRulesLogConfig"`
346369
// The firewall priority of GKE shadow firewall rules.
347370
//
348371
// The priority should be less than default firewall, which is 1000.
349372
// Default: 999.
350373
//
351374
ShadowFirewallRulesPriority *float64 `field:"optional" json:"shadowFirewallRulesPriority" yaml:"shadowFirewallRulesPriority"`
352-
// Flag to skip all local-exec provisioners.
353-
//
354-
// It breaks `stub_domains` and `upstream_nameservers` variables functionality.
355-
SkipProvisioners *bool `field:"optional" json:"skipProvisioners" yaml:"skipProvisioners"`
356375
// Map of stub domains and their resolvers to forward DNS queries for a certain domain to an external DNS server.
357376
// Default: [object Object]
358377
// The property type contains a map, they have special handling, please see {@link cdk.tf /module-map-inputs the docs}

gen/gkeprivate/Gkeprivate__checks.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -90,55 +90,55 @@ func validateGkeprivate_IsTerraformElementParameters(x interface{}) error {
9090
return nil
9191
}
9292

93-
func (j *jsiiProxy_Gkeprivate) validateSetCloudrunLoadBalancerTypeParameters(val interface{}) error {
93+
func (j *jsiiProxy_Gkeprivate) validateSetClusterAutoscalingParameters(val interface{}) error {
9494
if val == nil {
9595
return fmt.Errorf("parameter val is required, but nil was provided")
9696
}
9797

9898
return nil
9999
}
100100

101-
func (j *jsiiProxy_Gkeprivate) validateSetClusterAutoscalingParameters(val interface{}) error {
101+
func (j *jsiiProxy_Gkeprivate) validateSetIpRangePodsParameters(val *string) error {
102102
if val == nil {
103103
return fmt.Errorf("parameter val is required, but nil was provided")
104104
}
105105

106106
return nil
107107
}
108108

109-
func (j *jsiiProxy_Gkeprivate) validateSetIpRangePodsParameters(val *string) error {
109+
func (j *jsiiProxy_Gkeprivate) validateSetIpRangeServicesParameters(val *string) error {
110110
if val == nil {
111111
return fmt.Errorf("parameter val is required, but nil was provided")
112112
}
113113

114114
return nil
115115
}
116116

117-
func (j *jsiiProxy_Gkeprivate) validateSetIpRangeServicesParameters(val *string) error {
117+
func (j *jsiiProxy_Gkeprivate) validateSetNameParameters(val *string) error {
118118
if val == nil {
119119
return fmt.Errorf("parameter val is required, but nil was provided")
120120
}
121121

122122
return nil
123123
}
124124

125-
func (j *jsiiProxy_Gkeprivate) validateSetNameParameters(val *string) error {
125+
func (j *jsiiProxy_Gkeprivate) validateSetNetworkParameters(val *string) error {
126126
if val == nil {
127127
return fmt.Errorf("parameter val is required, but nil was provided")
128128
}
129129

130130
return nil
131131
}
132132

133-
func (j *jsiiProxy_Gkeprivate) validateSetNetworkParameters(val *string) error {
133+
func (j *jsiiProxy_Gkeprivate) validateSetProjectIdParameters(val *string) error {
134134
if val == nil {
135135
return fmt.Errorf("parameter val is required, but nil was provided")
136136
}
137137

138138
return nil
139139
}
140140

141-
func (j *jsiiProxy_Gkeprivate) validateSetProjectIdParameters(val *string) error {
141+
func (j *jsiiProxy_Gkeprivate) validateSetShadowFirewallRulesLogConfigParameters(val interface{}) error {
142142
if val == nil {
143143
return fmt.Errorf("parameter val is required, but nil was provided")
144144
}

gen/gkeprivate/Gkeprivate__no_checks.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ func validateGkeprivate_IsTerraformElementParameters(x interface{}) error {
3232
return nil
3333
}
3434

35-
func (j *jsiiProxy_Gkeprivate) validateSetCloudrunLoadBalancerTypeParameters(val interface{}) error {
36-
return nil
37-
}
38-
3935
func (j *jsiiProxy_Gkeprivate) validateSetClusterAutoscalingParameters(val interface{}) error {
4036
return nil
4137
}
@@ -60,6 +56,10 @@ func (j *jsiiProxy_Gkeprivate) validateSetProjectIdParameters(val *string) error
6056
return nil
6157
}
6258

59+
func (j *jsiiProxy_Gkeprivate) validateSetShadowFirewallRulesLogConfigParameters(val interface{}) error {
60+
return nil
61+
}
62+
6363
func (j *jsiiProxy_Gkeprivate) validateSetSubnetworkParameters(val *string) error {
6464
return nil
6565
}

0 commit comments

Comments
 (0)