crossplane / upjet

A code generation framework and runtime for Crossplane providers
Apache License 2.0
303 stars 87 forks source link

Terraform should ignore schema validation during deletion #98

Open muvaf opened 2 years ago

muvaf commented 2 years ago

What problem are you facing?

Terraform does not need most of the required fields during deletion but it still asks for them. While this is OK in most cases, those fields get lost in some cases due to patching and block Terraform from proceeding.

How could Terrajet help solve your problem?

We should look into whether we can disable schema validation during deletion. It's not really a problem but more about making Terraform SDK we have more robust.

muvaf commented 2 years ago

Looks like there isn't an option to disable validation today https://github.com/hashicorp/terraform-plugin-sdk/issues/105