From 94634891cc5a63fbea3baacdbec55c2058d91c29 Mon Sep 17 00:00:00 2001 From: Alper Rifat Ulucinar Date: Fri, 10 May 2024 18:00:48 +0300 Subject: [PATCH] Deprecate config.Reference.Type in favor of config.Reference.TerraformName - TerraformName will automatically handle name & version configurations that will affect the generated cross-resource reference. This is crucial especially if the provider generates multiple versions for its MR APIs. Signed-off-by: Alper Rifat Ulucinar --- pkg/config/resource.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/config/resource.go b/pkg/config/resource.go index 943c54ec..6d5184e0 100644 --- a/pkg/config/resource.go +++ b/pkg/config/resource.go @@ -174,6 +174,11 @@ type References map[string]Reference type Reference struct { // Type is the Go type name of the CRD if it is in the same package or // . if it is in a different package. + // Deprecated: Type is deprecated in favor of TerraformName, which provides + // a more stable and less error-prone API compared to Type. TerraformName + // will automatically handle name & version configurations that will affect + // the generated cross-resource reference. This is crucial especially if the + // provider generates multiple versions for its MR APIs. Type string // TerraformName is the name of the Terraform resource // which will be referenced. The supplied resource name is