Skip to content

Commit abf05ff

Browse files
authored
Add support for brokerCapacityConfig for managedkafka (#15638)
1 parent b2c524e commit abf05ff

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

mmv1/products/managedkafka/Cluster.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,14 @@ properties:
149149
description: "The memory to provision for the cluster in bytes. The value must be
150150
between 1 GiB and 8 GiB per vCPU. Ex. 1024Mi, 4Gi."
151151
required: true
152+
- name: 'brokerCapacityConfig'
153+
type: NestedObject
154+
description: "Capacity configuration at a per-broker level within the Kafka cluster. The config will be appled to each broker in the cluster."
155+
ignore_read: true
156+
properties:
157+
- name: 'diskSizeGb'
158+
type: String
159+
description: "The disk to provision for each broker in Gigabytes. Minimum: 100 GB."
152160
- name: 'rebalanceConfig'
153161
type: NestedObject
154162
description: "Defines rebalancing behavior of a Kafka cluster."

mmv1/third_party/terraform/services/managedkafka/resource_managed_kafka_cluster_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func TestAccManagedKafkaCluster_update(t *testing.T) {
3535
ResourceName: "google_managed_kafka_cluster.example",
3636
ImportState: true,
3737
ImportStateVerify: true,
38-
ImportStateVerifyIgnore: []string{"cluster_id", "labels", "location", "terraform_labels"},
38+
ImportStateVerifyIgnore: []string{"broker_capacity_config", "cluster_id", "labels", "location", "terraform_labels"},
3939
},
4040
{
4141
Config: testAccManagedKafkaCluster_updateTlsConfigToEmpty(context),
@@ -88,6 +88,9 @@ resource "google_managed_kafka_cluster" "example" {
8888
vcpu_count = 4
8989
memory_bytes = 4512135122
9090
}
91+
broker_capacity_config {
92+
disk_size_gb = 1500
93+
}
9194
gcp_config {
9295
access_config {
9396
network_configs {

0 commit comments

Comments
 (0)