Skip to content

Commit 4249ec0

Browse files
Mark vcenter field in VMware cluster resource as default from api (#12624) (#9011)
[upstream:83f6af95fd6566e929cb4344b77e61d0b267ef85] Signed-off-by: Modular Magician <[email protected]>
1 parent 30a63c1 commit 4249ec0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.changelog/12624.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note: bug
2+
gkeonprem: fixed by marking `vcenter` field in `google_gkeonprem_vmware_cluster` as default from api to ignore the diffs for update
3+
```

google-beta/services/gkeonprem/resource_gkeonprem_vmware_cluster.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ Enabled by default.`,
638638
},
639639
"vcenter": {
640640
Type: schema.TypeList,
641+
Computed: true,
641642
Optional: true,
642643
Description: `VmwareVCenterConfig specifies vCenter config for the user cluster.
643644
Inherited from the admin cluster.`,
@@ -646,36 +647,43 @@ Inherited from the admin cluster.`,
646647
Schema: map[string]*schema.Schema{
647648
"ca_cert_data": {
648649
Type: schema.TypeString,
650+
Computed: true,
649651
Optional: true,
650652
Description: `Contains the vCenter CA certificate public key for SSL verification.`,
651653
},
652654
"cluster": {
653655
Type: schema.TypeString,
656+
Computed: true,
654657
Optional: true,
655658
Description: `The name of the vCenter cluster for the user cluster.`,
656659
},
657660
"datacenter": {
658661
Type: schema.TypeString,
662+
Computed: true,
659663
Optional: true,
660664
Description: `The name of the vCenter datacenter for the user cluster.`,
661665
},
662666
"datastore": {
663667
Type: schema.TypeString,
668+
Computed: true,
664669
Optional: true,
665670
Description: `The name of the vCenter datastore for the user cluster.`,
666671
},
667672
"folder": {
668673
Type: schema.TypeString,
674+
Computed: true,
669675
Optional: true,
670676
Description: `The name of the vCenter folder for the user cluster.`,
671677
},
672678
"resource_pool": {
673679
Type: schema.TypeString,
680+
Computed: true,
674681
Optional: true,
675682
Description: `The name of the vCenter resource pool for the user cluster.`,
676683
},
677684
"storage_policy_name": {
678685
Type: schema.TypeString,
686+
Computed: true,
679687
Optional: true,
680688
Description: `The name of the vCenter storage policy for the user cluster.`,
681689
},

0 commit comments

Comments
 (0)