Skip to content

Instantly share code, notes, and snippets.

@dmikalova
Created November 22, 2021 06:07
Show Gist options
  • Save dmikalova/3b61429361658bd62b2a7b9fe856942c to your computer and use it in GitHub Desktop.
Save dmikalova/3b61429361658bd62b2a7b9fe856942c to your computer and use it in GitHub Desktop.
kubernetes_secret.digitalocean_pat: Refreshing state... [id=default/digitalocean-personal-access-token]
kubernetes_manifest.cert_manager_cluster_issuer_digitalocean: Refreshing state...
Stack trace from the terraform-provider-kubernetes_v2.6.1_x5 plugin:
panic: ElementKeyInt(0).AttributeName("dns01"): can't use tftypes.DynamicPseudoType as tftypes.Object["acmeDNS":tftypes.Object["accountSecretRef":tftypes.Object["key":tftypes.String, "name":tftypes.String], "host":tftypes.String], "akamai":tftypes.Object["accessTokenSecretRef":tftypes.Object["key":tftypes.String, "name":tftypes.String], "clientSecretSecretRef":tftypes.Object["key":tftypes.String, "name":tftypes.String], "clientTokenSecretRef":tftypes.Object["key":tftypes.String, "name":tftypes.String], "serviceConsumerDomain":tftypes.String], "azureDNS":tftypes.Object["clientID":tftypes.String, "clientSecretSecretRef":tftypes.Object["key":tftypes.String, "name":tftypes.String], "environment":tftypes.String, "hostedZoneName":tftypes.String, "resourceGroupName":tftypes.String, "subscriptionID":tftypes.String, "tenantID":tftypes.String], "cloudDNS":tftypes.Object["hostedZoneName":tftypes.String, "project":tftypes.String, "serviceAccountSecretRef":tftypes.Object["key":tftypes.String, "name":tftypes.String]], "cloudflare":tftypes.Object["apiKeySecretRef":tftypes.Object["key":tftypes.String, "name":tftypes.String], "apiTokenSecretRef":tftypes.Object["key":tftypes.String, "name":tftypes.String], "email":tftypes.String], "cnameStrategy":tftypes.String, "digitalocean":tftypes.Object["tokenSecretRef":tftypes.Object["key":tftypes.String, "name":tftypes.String]], "rfc2136":tftypes.Object["nameserver":tftypes.String, "tsigAlgorithm":tftypes.String, "tsigKeyName":tftypes.String, "tsigSecretSecretRef":tftypes.Object["key":tftypes.String, "name":tftypes.String]], "route53":tftypes.Object["accessKeyID":tftypes.String, "hostedZoneID":tftypes.String, "region":tftypes.String, "role":tftypes.String, "secretAccessKeySecretRef":tftypes.Object["key":tftypes.String, "name":tftypes.String]], "webhook":tftypes.Object["config":tftypes.DynamicPseudoType, "groupName":tftypes.String, "solverName":tftypes.String]]
goroutine 251 [running]:
github.com/hashicorp/terraform-plugin-go/tftypes.NewValue(...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/vendor/github.com/hashicorp/terraform-plugin-go/tftypes/value.go:277
github.com/hashicorp/terraform-provider-kubernetes/manifest/morph.morphTupleIntoType(0x26a7860, 0xc0022ab200, 0x1f1e2a0, 0xc0014fc918, 0x26a7740, 0xc0025adb60, 0xc0045b5a10, 0x11000000026a78a8, 0xc0022aa840, 0x1f6e3a0, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/manifest/morph/morph.go:193 +0x1b85
github.com/hashicorp/terraform-provider-kubernetes/manifest/morph.ValueToType(0x26a7860, 0xc0022ab200, 0x1f1e2a0, 0xc0014fc918, 0x26a7740, 0xc0025adb60, 0xc0045b5a10, 0x4, 0xc0022aa840, 0x1f6e3a0, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/manifest/morph/morph.go:30 +0xa09
github.com/hashicorp/terraform-provider-kubernetes/manifest/morph.morphObjectToType(0x26a77d0, 0xc0022aba40, 0x202db80, 0xc0022aa090, 0x26a77d0, 0xc0025c5620, 0xc0045b5968, 0x0, 0x203000, 0x203000, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/manifest/morph/morph.go:301 +0x425
github.com/hashicorp/terraform-provider-kubernetes/manifest/morph.ValueToType(0x26a77d0, 0xc0022aba40, 0x202db80, 0xc0022aa090, 0x26a77d0, 0xc0025c5620, 0xc0045b5968, 0x2, 0x0, 0x0, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/manifest/morph/morph.go:36 +0x709
github.com/hashicorp/terraform-provider-kubernetes/manifest/morph.morphObjectToType(0x26a77d0, 0xc0022ae4b0, 0x202db80, 0xc00393fe90, 0x26a77d0, 0xc0025fc7b0, 0xc0045b5950, 0x1100000000203000, 0xc0026b2b70, 0x202db80, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/manifest/morph/morph.go:301 +0x425
github.com/hashicorp/terraform-provider-kubernetes/manifest/morph.ValueToType(0x26a77d0, 0xc0022ae4b0, 0x202db80, 0xc00393fe90, 0x26a77d0, 0xc0025fc7b0, 0xc0045b5950, 0x1, 0xc0026b2b70, 0x202db80, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/manifest/morph/morph.go:36 +0x709
github.com/hashicorp/terraform-provider-kubernetes/manifest/morph.morphObjectToType(0x26a77d0, 0xc0022af410, 0x202db80, 0xc00393f590, 0x26a77d0, 0xc0026acff0, 0xc0045b55d8, 0x1100000000000000, 0x100, 0x7f152eaa3510, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/manifest/morph/morph.go:301 +0x425
github.com/hashicorp/terraform-provider-kubernetes/manifest/morph.ValueToType(0x26a77d0, 0xc0022af410, 0x202db80, 0xc00393f590, 0x26a77d0, 0xc0026acff0, 0xc0045b55d8, 0x2, 0xd, 0x0, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/manifest/morph/morph.go:36 +0x709
github.com/hashicorp/terraform-provider-kubernetes/manifest/provider.(*RawProviderServer).PlanResourceChange(0xc0008d0800, 0x2699848, 0xc001458980, 0xc000146820, 0xc000f1a748, 0x1, 0x30)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/manifest/provider/plan.go:315 +0x1cbb
github.com/hashicorp/terraform-plugin-mux.SchemaServer.PlanResourceChange(0xc000d3b770, 0xc000d3b7a0, 0xc0010dbfc0, 0x2, 0x2, 0xc0008d0700, 0x1, 0x2699848, 0xc001458980, 0xc000146820, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/vendor/github.com/hashicorp/terraform-plugin-mux/schema_server.go:276 +0x98
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).PlanResourceChange(0xc0010dbfe0, 0x26998f0, 0xc001458980, 0xc002258000, 0xc0010dbfe0, 0xc002234990, 0xc0005eeba0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/server/server.go:315 +0xb5
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_PlanResourceChange_Handler(0x220b4e0, 0xc0010dbfe0, 0x26998f0, 0xc002234990, 0xc002214480, 0x0, 0x26998f0, 0xc002234990, 0xc002248000, 0x5029)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:362 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc000232c40, 0x26b14b8, 0xc000561c80, 0xc002217440, 0xc000d3b830, 0x351bae8, 0x0, 0x0, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/vendor/google.golang.org/grpc/server.go:1217 +0x52b
google.golang.org/grpc.(*Server).handleStream(0xc000232c40, 0x26b14b8, 0xc000561c80, 0xc002217440, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/vendor/google.golang.org/grpc/server.go:1540 +0xd0c
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc0008de490, 0xc000232c40, 0x26b14b8, 0xc000561c80, 0xc002217440)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/vendor/google.golang.org/grpc/server.go:878 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/vendor/google.golang.org/grpc/server.go:876 +0x1fd
Error: The terraform-provider-kubernetes_v2.6.1_x5 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.
│ Error: Plugin did not respond
│ with kubernetes_manifest.cert_manager_cluster_issuer_digitalocean,
│ on main.tf line 27, in resource "kubernetes_manifest" "cert_manager_cluster_issuer_digitalocean":
│ 27: resource "kubernetes_manifest" "cert_manager_cluster_issuer_digitalocean" {
│ The plugin encountered an error, and failed to respond to the
│ plugin.(*GRPCProvider).PlanResourceChange call. The plugin logs may contain
│ more details.
ERRO[0004] 1 error occurred:
* exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment