From 45d3e5a0d551ad10339ad768555b399514754573 Mon Sep 17 00:00:00 2001 From: drew0ps Date: Wed, 4 Sep 2024 14:12:09 +0200 Subject: [PATCH] Corrected the API group name where the new resource is added. Signed-off-by: drew0ps --- config/containerservice/config.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/containerservice/config.go b/config/containerservice/config.go index 9c491ab0e..68d19cf9d 100644 --- a/config/containerservice/config.go +++ b/config/containerservice/config.go @@ -90,4 +90,13 @@ func Configure(p *config.Provider) { Extractor: rconfig.ExtractResourceIDFuncPath, } }) + + p.AddResourceConfigurator("azurerm_kubernetes_cluster_extension", func(r *config.Resource) { + r.Kind = "KubernetesClusterExtension" + r.ShortGroup = "containerservice" + r.References["kubernetes_cluster_id"] = config.Reference{ + TerraformName: "azurerm_kubernetes_cluster", + Extractor: rconfig.ExtractResourceIDFuncPath, + } + }) }