Skip to content

Commit

Permalink
added resource to provider
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushsss1 committed Nov 22, 2024
1 parent f1fa992 commit 097f645
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/framework/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/provider/schema"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/types"
appsv1 "github.com/hashicorp/terraform-provider-kubernetes/internal/framework/provider/appsv1"
pfunctions "github.com/hashicorp/terraform-provider-kubernetes/internal/framework/provider/functions"
)

Expand Down Expand Up @@ -185,7 +186,9 @@ func (p *KubernetesProvider) Schema(ctx context.Context, req provider.SchemaRequ
}

func (p *KubernetesProvider) Resources(ctx context.Context) []func() resource.Resource {
return []func() resource.Resource{}
return []func() resource.Resource{
appsv1.NewValidatingAdmissionPolicy,
}
}

func (p *KubernetesProvider) DataSources(ctx context.Context) []func() datasource.DataSource {
Expand Down

0 comments on commit 097f645

Please sign in to comment.