Hitting an error with the following stack trace on v0.1.8 when trying to approve a delegate:
│
│ with harness_delegate_approval.approval,
│ on main.tf line 2, in resource "harness_delegate_approval" "approval":
│ 2: resource "harness_delegate_approval" "approval" {
│
│ The plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may
│ contain more details.
╵
╷
│ Error: Plugin did not respond
│
│ with harness_cloudprovider_kubernetes.provider,
│ on main.tf line 24, in resource "harness_cloudprovider_kubernetes" "provider":
│ 24: resource "harness_cloudprovider_kubernetes" "provider" {
│
│ The plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may
│ contain more details.
╵
2022-01-13T17:14:50.151-0600 [TRACE] statemgr.Filesystem: removing lock metadata file terraform.tfstate.lock.info
2022-01-13T17:14:50.152-0600 [TRACE] statemgr.Filesystem: unlocked by closing terraform.tfstate
Stack trace from the terraform-provider-harness_v0.1.7.exe plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x90 pc=0xeb9795]
goroutine 38 [running]:
github.com/harness-io/terraform-provider-harness/internal/service/cd/delegate.resourceDelegateApprovalCreateOrUpdate(0x1250f88, 0xc0003099e0, 0xc0002c2580, 0xf86560, 0xc0004a6d50, 0xc0002a9f80, 0xb8a0b2, 0xc0002c2400)
github.com/harness-io/terraform-provider-harness/internal/service/cd/delegate/delegate_approval.go:88 +0xd5
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc0004295e0, 0x1250f18, 0xc000393e40, 0xc0002c2580, 0xf86560, 0xc0004a6d50, 0x0, 0x0, 0x0)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:341 +0x187
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0004295e0, 0x1250f18, 0xc000393e40, 0xc00004b450, 0xc0002c2400, 0xf86560, 0xc0004a6d50, 0x0, 0x0, 0x0, ...)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:467 +0x67b
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc0003900f0, 0x1250f18, 0xc000393e40, 0xc000528f00, 0x1123304, 0x12, 0x0)
github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:977 +0xacf
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc000172200, 0x1250fc0, 0xc000393e40, 0xc0001bc690, 0x0, 0x0, 0x0)
github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:603 +0x465
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x10dcca0, 0xc000172200, 0x1250fc0, 0xc0002af590, 0xc0003090e0, 0x0, 0x1250fc0, 0xc0002af590, 0xc00047a240, 0xb3)
github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:380 +0x222
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0002cc700, 0x1258cb8, 0xc000317680, 0xc0002b2900, 0xc000300870, 0x1744220, 0x0, 0x0, 0x0)
google.golang.org/[email protected]/server.go:1282 +0x52b
google.golang.org/grpc.(*Server).handleStream(0xc0002cc700, 0x1258cb8, 0xc000317680, 0xc0002b2900, 0x0)
google.golang.org/[email protected]/server.go:1616 +0xd0c
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000232200, 0xc0002cc700, 0x1258cb8, 0xc000317680, 0xc0002b2900)
google.golang.org/[email protected]/server.go:921 +0xb2
created by google.golang.org/grpc.(*Server).serveStreams.func1
google.golang.org/[email protected]/server.go:919 +0x1fd
Error: The terraform-provider-harness_v0.1.7.exe plugin crashed!
This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.
2022-01-13T17:14:50.153-0600 [DEBUG] provider: plugin exited