Skip to content

Commit

Permalink
version -> Version to match goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhouston committed Nov 23, 2023
1 parent 7297143 commit aec633a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
5 changes: 0 additions & 5 deletions framework/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,6 @@ func (p *KubernetesProvider) Schema(ctx context.Context, req provider.SchemaRequ
}

func (p *KubernetesProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse) {
var data KubernetesProviderModel
resp.Diagnostics.Append(req.Config.Get(ctx, &data)...)
if resp.Diagnostics.HasError() {
return
}
}

func (p *KubernetesProvider) Resources(ctx context.Context) []func() resource.Resource {
Expand Down
2 changes: 1 addition & 1 deletion framework/provider/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
// CLI command executed to create a provider server to which the CLI can
// reattach.
var testAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
"scaffolding": providerserver.NewProtocol6WithError(New("test")),
"kubernetes": providerserver.NewProtocol6WithError(New("test")),
}

func testAccPreCheck(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import (

const (
providerName = "registry.terraform.io/hashicorp/kubernetes"
version = "dev"

Version = "dev"
)

// Generate docs for website
Expand All @@ -39,7 +40,7 @@ func main() {
providers := []func() tfprotov5.ProviderServer{
kubernetes.Provider().GRPCProvider,
manifest.Provider(),
providerserver.NewProtocol5(framework.New(version)),
providerserver.NewProtocol5(framework.New(Version)),
}

ctx := context.Background()
Expand Down

0 comments on commit aec633a

Please sign in to comment.