crossplane-contrib / provider-upjet-gcp

Official GCP Provider for Crossplane by Upbound.
Apache License 2.0
60 stars 61 forks source link

Change the `Reference.Type` API with `Reference.TerraformName` #521

Closed sergenyalcin closed 1 month ago

sergenyalcin commented 1 month ago

Description of your changes

This PR changes the Reference.Type API with Reference.TerraformName. This change is necessary to support the multiversion APIs.

The reference configuration API in upjet includes a Type field that identifies the target reference field through the Kubernetes Kind. When you configure a reference field using this Type API, it searches for the target reference resource in the same API version. However, if the specific API version lacks the target reference resource, the reference cannot be resolved. To address this, we will use the TerraformName API for configuring cross-resource references. This API allows the reference resolver to locate the target reference resource across its latest available version.

I have:

How has this code been tested

Tested locally.

sergenyalcin commented 1 month ago

/test-examples="examples/cloudplatform/serviceaccount.yaml"