Schema: Multiple writeable properties defined as 'computed'
fknittel opened this issue · 1 comments
Description
The providers schema marks many properties as 'computed', although the docs say that they can be set.
A few random examples:
- ionoscloud_k8s_cluster.k8s_version
- ionoscloud_k8s_cluster.maintenance_window
- ionoscloud_k8s_cluster.api_subnet_allow_list
- ionoscloud_k8s_cluster.s3_buckets
- ionoscloud_k8s_node_pool.datacenter_id (docs say this one is required!)
- ionoscloud_k8s_node_pool.auto_scaling
This results in corresponding cdktf APIs which do not allow the properties to be set (without using escape hatches).
Expected behavior
Settable properties should not be marked as computed.
Environment
Provider version: v6.2.2
My mistake. Invalid bug report.
I accidentally attempted to use the cdktf-provider-ionoscloud classes generated from the data_sources instead of those generated by the resources. (Example: DataIonoscloudDatacenter
instead of Datacenter
.) The data_sources obviously only provide a very limited set of attributes. I fell into the same trap while looking at the provider go code ... (as can be seen by my references into the code above.)
Sorry about the noise.