Skip to content

Commit 37db85c

Browse files
set vcenter field mutable in gkeonprem vmware cluster (#8926) (#16073)
Signed-off-by: Modular Magician <[email protected]>
1 parent bf6141a commit 37db85c

File tree

2 files changed

+52
-39
lines changed

2 files changed

+52
-39
lines changed

.changelog/8926.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
gkeonprem: `vcenter` fields made mutable in `google_gkeonprem_vmware_cluster`
3+
```

website/docs/r/gkeonprem_vmware_cluster.html.markdown

+49-39
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,15 @@ resource "google_gkeonprem_vmware_cluster" "cluster-manuallb" {
206206
konnectivity_server_node_port = 30008
207207
}
208208
}
209+
vcenter {
210+
resource_pool = "test-resource-pool"
211+
datastore = "test-datastore"
212+
datacenter = "test-datacenter"
213+
cluster = "test-cluster"
214+
folder = "test-folder"
215+
ca_cert_data = "test-ca-cert-data"
216+
storage_policy_name = "test-storage-policy-name"
217+
}
209218
dataplane_v2 {
210219
dataplane_v2_enabled = true
211220
windows_dataplane_v2_enabled = true
@@ -374,6 +383,12 @@ The following arguments are supported:
374383
Specifies upgrade policy for the cluster.
375384
Structure is [documented below](#nested_upgrade_policy).
376385

386+
* `vcenter` -
387+
(Optional)
388+
VmwareVCenterConfig specifies vCenter config for the user cluster.
389+
Inherited from the admin cluster.
390+
Structure is [documented below](#nested_vcenter).
391+
377392
* `project` - (Optional) The ID of the project in which the resource belongs.
378393
If it is not provided, the provider project is used.
379394

@@ -664,6 +679,40 @@ The following arguments are supported:
664679
(Optional)
665680
Controls whether the upgrade applies to the control plane only.
666681

682+
<a name="nested_vcenter"></a>The `vcenter` block supports:
683+
684+
* `resource_pool` -
685+
(Optional)
686+
The name of the vCenter resource pool for the user cluster.
687+
688+
* `datastore` -
689+
(Optional)
690+
The name of the vCenter datastore for the user cluster.
691+
692+
* `datacenter` -
693+
(Optional)
694+
The name of the vCenter datacenter for the user cluster.
695+
696+
* `cluster` -
697+
(Optional)
698+
The name of the vCenter cluster for the user cluster.
699+
700+
* `folder` -
701+
(Optional)
702+
The name of the vCenter folder for the user cluster.
703+
704+
* `ca_cert_data` -
705+
(Optional)
706+
Contains the vCenter CA certificate public key for SSL verification.
707+
708+
* `address` -
709+
(Output)
710+
The vCenter IP address.
711+
712+
* `storage_policy_name` -
713+
(Optional)
714+
The name of the vCenter storage policy for the user cluster.
715+
667716
## Attributes Reference
668717

669718
In addition to the arguments listed above, the following computed attributes are exported:
@@ -718,11 +767,6 @@ In addition to the arguments listed above, the following computed attributes are
718767
Fleet configuration for the cluster.
719768
Structure is [documented below](#nested_fleet).
720769

721-
* `vcenter` -
722-
VmwareVCenterConfig specifies vCenter config for the user cluster.
723-
Inherited from the admin cluster.
724-
Structure is [documented below](#nested_vcenter).
725-
726770
* `status` -
727771
ResourceStatus representing detailed cluster state.
728772
Structure is [documented below](#nested_status).
@@ -785,40 +829,6 @@ In addition to the arguments listed above, the following computed attributes are
785829
Membership names are formatted as
786830
`projects/<project-number>/locations/<location>/memberships/<cluster-id>`.
787831

788-
<a name="nested_vcenter"></a>The `vcenter` block contains:
789-
790-
* `resource_pool` -
791-
(Output)
792-
The name of the vCenter resource pool for the user cluster.
793-
794-
* `datastore` -
795-
(Output)
796-
The name of the vCenter datastore for the user cluster.
797-
798-
* `datacenter` -
799-
(Output)
800-
The name of the vCenter datacenter for the user cluster.
801-
802-
* `cluster` -
803-
(Output)
804-
The name of the vCenter cluster for the user cluster.
805-
806-
* `folder` -
807-
(Output)
808-
The name of the vCenter folder for the user cluster.
809-
810-
* `ca_cert_data` -
811-
(Output)
812-
Contains the vCenter CA certificate public key for SSL verification.
813-
814-
* `address` -
815-
(Output)
816-
The vCenter IP address.
817-
818-
* `storage_policy_name` -
819-
(Output)
820-
The name of the vCenter storage policy for the user cluster.
821-
822832
<a name="nested_status"></a>The `status` block contains:
823833

824834
* `error_message` -

0 commit comments

Comments
 (0)