From e556cf0e59636ee2aa682f8f4268c18e73c9081d Mon Sep 17 00:00:00 2001 From: aayushsss1 Date: Wed, 18 Sep 2024 14:28:48 -0400 Subject: [PATCH] updated client --- .../provider/appsv1/validating_admission_policy_gen.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/framework/provider/appsv1/validating_admission_policy_gen.go b/internal/framework/provider/appsv1/validating_admission_policy_gen.go index 2793303e04..b7548c659b 100644 --- a/internal/framework/provider/appsv1/validating_admission_policy_gen.go +++ b/internal/framework/provider/appsv1/validating_admission_policy_gen.go @@ -4,8 +4,8 @@ import ( "context" "fmt" + "github.com/hashicorp/terraform-plugin-codegen-kubernetes/autocrud" "github.com/hashicorp/terraform-plugin-framework/resource" - "github.com/hashicorp/terraform-provider-kubernetes/internal/framework/provider/client" ) // Ensure provider defined types fully satisfy framework interfaces. @@ -23,11 +23,11 @@ type ValidatingAdmissionPolicy struct { APIVersion string Kind string - clientGetter client.KubernetesClientGetter + clientGetter autocrud.KubernetesClientGetter } func (r *ValidatingAdmissionPolicy) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = "kubernetes_deployment_v1_gen" + resp.TypeName = "kubernetes_validating_admission_policy_v1_gen" } func (r *ValidatingAdmissionPolicy) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { @@ -36,7 +36,7 @@ func (r *ValidatingAdmissionPolicy) Configure(ctx context.Context, req resource. return } - clientGetter, ok := req.ProviderData.(client.KubernetesClientGetter) + clientGetter, ok := req.ProviderData.(autocrud.KubernetesClientGetter) if !ok { resp.Diagnostics.AddError( "Unexpected Resource Configure Type",