vmware / terraform-provider-vcf

Terraform Provider for VMware Cloud Foundation
https://registry.terraform.io/providers/vmware/vcf/
Mozilla Public License 2.0
23 stars 10 forks source link

`r/instance`: breaking change for 4.x support #208

Closed pradeep17j closed 3 months ago

pradeep17j commented 3 months ago

Code of Conduct

Terraform

v1.7.5

Terraform Provider

v0.10.0

VMware Cloud Foundation

4.x

Description

As described in the fix for #189.

r/vcf_instance will stop working for 4.x.

Please use cloud builder API to find if the version of VCF is 4.x or 5.x . Accordingly make decision to not include cluster_image_enabled flag in the spec if it is 4.x.

~A fix for #189 should not introduce a breaking change for 4.x (without a major semver.)~ (spacegospod) - the provider is still under development and backwards compatibility and support is not guaranteed. The statement that breaking changes are only allowed on major releases is not true, at least not before we hit v1.0

Affected Resources or Data Sources

r/vcf_instance

Terraform Configuration

resource vcf_instance "example"
{
}

Debug Output

Based on comment in #189 about breaking change in r/vcf_instance for 4.x.

Panic Output

No response

Expected Behavior

Creation of r/vcf_instance on 4.x should succeed.

Actual Behavior

terraform apply with or without cluster_image_enabled can fail for 4.x.

Steps to Reproduce

Submitting bug based on comment in #189.

Will run this workflow and update the bug.

Environment Details

No response

Screenshots

No response

References

No response

tenthirtyam commented 3 months ago

Formatting applied.

spacegospod commented 3 months ago

@tenthirtyam The breaking change was concious and intentional. There are other changes in the provider that are likely to break 4.X support and going forward I believe we should only support 1 major version at a time.

I propose that I update the docs to reflect that we only fully support VCF 5.X

tenthirtyam commented 3 months ago

Closing as the version support is clearly provided in the README and the registry.

github-actions[bot] commented 1 month ago

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.