github crossplane/upjet v1.10.3

6 hours ago

This patch release backports two bug fixes to the release-1.10 branch.

Bug Fixes

  • Prevent Terraform provider panics on cached state for missing resources (#686, backport of #685): When a Terraform state was previously cached in the tracker store with a zero-valued RawConfig/RawPlan but the external resource is no longer found during Observe, these fields could remain nil. This could panic the underlying Terraform provider when it attempted to read an attribute from RawConfig or RawPlan (for example, the Terraform AWS provider's tagging interceptor in verify.SetTagsDiff). The external client now sets the InstanceState's RawConfig and RawPlan in this scenario. A regression test reproducing the panic conditions was added.

  • Omit XValidation for required fields with references (#690, backport of #684): When a field is marked as required but also has a reference configured, it is satisfiable via the generated *Ref/*Selector mechanisms. Upjet now explicitly sets such fields to non-required in NewReferenceField, so no XValidation rule is emitted for them. Fixes an issue observed in crossplane-contrib/provider-upjet-gcp#952.

What's Changed

  • [Backport release-1.10] Set InstanceState's RawConfig & RawPlan if Resource is not found by @ulucinar in #686
  • [Backport release-1.10] fix(types): omit XValidation for required fields with references by @jonasz-lasut in #690

Full Changelog: v1.10.2...v1.10.3

Don't miss a new upjet release

NewReleases is sending notifications on new releases.