IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
336 stars 645 forks source link

Changing the value of `disable_outbound_traffic_protection` has no affect on existing cluster #5424

Open ocofaigh opened 2 weeks ago

ocofaigh commented 2 weeks ago
  1. Deploy VPC cluster with disable_outbound_traffic_protection set to false
  2. Change the value of disable_outbound_traffic_protection to true and run terraform plan
  3. The plan does not contain any changes to the cluster

There is a CLI command to disable / enable this setting: ibmcloud oc vpc outbound-traffic-protection disable --cluster <cluster> so there must be an api that can be called by the provider code here to toggle this setting. Docs: https://cloud.ibm.com/docs/openshift?topic=openshift-sbd-allow-outbound#existing-cluster-sbd

Community Note

Terraform CLI and Terraform IBM Provider Version

provider: 1.66.0 tf: 1.6.6

Affected Resource(s)

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please share a link to the ZIP file.

Debug Output

Panic Output

Expected Behavior

provider should be able to update the value of disable_outbound_traffic_protection on existing cluster

Actual Behavior

once set, changing the value does nothing

Steps to Reproduce

see above

Important Factoids

References