Open ulucinar opened 2 years ago
https://github.com/crossplane/crossplane-tools/issues/40 should help when it's implemented.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What problem are you facing?
Because we set the
prevent_destroy
lifecycle meta-argument, if a Terraform configuration argument withSchema.ForceNew
set totrue
in its schema is modified,terraform plan
calls fail complaining about theprevent_destroy
arg.How could Terrajet help solve your problem?
Because to adhere to XRM we set the
prevent_destroy
lifecycle meta-argument, with the introduction of validating admission webhooks in Crossplane, we can consider using theForceNew
schema to prevent modification of such parameters once they are set.