Skip to content

Commit

Permalink
Allow vcenter_network to be set (#9946) (#7055)
Browse files Browse the repository at this point in the history
* Allow vcenter_network to be set

* set default from api

[upstream:bbb072140e12dd22cfc72dd5dfe2c182337cb497]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Mar 7, 2024
1 parent b1d4c18 commit 28636c2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/9946.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
pkeonprem: allowed `vcenter_network` to be set in `google_gkeonprem_vmware_cluster`, while the field does not support in-place update
```
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,8 @@ used for VMware user clusters.`,
"vcenter_network": {
Type: schema.TypeString,
Computed: true,
Optional: true,
ForceNew: true,
Description: `vcenter_network specifies vCenter network name. Inherited from the admin cluster.`,
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ resource "google_gkeonprem_vmware_cluster" "cluster-f5lb" {
gateway="test-gateway"
}
}
vcenter_network = "test-vcenter-network"
}
control_plane_node {
cpus = 4
Expand Down
3 changes: 2 additions & 1 deletion website/docs/r/gkeonprem_vmware_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ resource "google_gkeonprem_vmware_cluster" "cluster-f5lb" {
gateway="test-gateway"
}
}
vcenter_network = "test-vcenter-network"
}
control_plane_node {
cpus = 4
Expand Down Expand Up @@ -427,7 +428,7 @@ The following arguments are supported:
Structure is [documented below](#nested_dhcp_ip_config).

* `vcenter_network` -
(Output)
(Optional)
vcenter_network specifies vCenter network name. Inherited from the admin cluster.

* `host_config` -
Expand Down

0 comments on commit 28636c2

Please sign in to comment.