Skip to content

Commit c80980d

Browse files
committed
diff suppress the upgradeableTo field
1 parent cafcfba commit c80980d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

internal/services/redhatopenshift/redhat_openshift_cluster_resource.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,11 @@ func (r RedHatOpenShiftCluster) Arguments() map[string]*pluginsdk.Schema {
482482
Type: pluginsdk.TypeString,
483483
Optional: true,
484484
ValidateFunc: validate.ClusterVersion,
485+
DiffSuppressFunc: func(_, old, new string, _ *pluginsdk.ResourceData) bool {
486+
// The backend does not support clearing upgradeable_to via PATCH;
487+
// suppress the diff so removing it from config is a no-op.
488+
return old != "" && new == ""
489+
},
485490
},
486491
},
487492
},

website/docs/r/redhat_openshift_cluster.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ A `platform_workload_identity_profile` block supports the following:
241241

242242
* `platform_workload_identity` - (Required) One or more `platform_workload_identity` blocks as defined above.
243243

244-
* `upgradeable_to` - (Optional) The target OpenShift version (`x.y.z`) the platform workload identities should satisfy.
244+
* `upgradeable_to` - (Optional) The target OpenShift version (`x.y.z`) the platform workload identities should satisfy. Once set, this value cannot be cleared.
245245

246246
---
247247

0 commit comments

Comments
 (0)