Skip to content

Instantly share code, notes, and snippets.

@juicemia
Created January 25, 2022 15:30
Show Gist options
  • Save juicemia/d57020f84d9353e60618c156defa48dc to your computer and use it in GitHub Desktop.
Save juicemia/d57020f84d9353e60618c156defa48dc to your computer and use it in GitHub Desktop.
Panic output for kubernetes manifest
panic: lists must only contain one type of element, saw tftypes.Object["applyTo":tftypes.String, "match":tftypes.Object["cluster":tftypes.Object["name":tftypes.String, "portNumber":tftypes.Number, "service":tftypes.String, "subset":tftypes.String], "context":tftypes.String, "listener":tftypes.Object["filterChain":tftypes.Object["applicationProtocols":tftypes.String, "destinationPort":tftypes.Number, "filter":tftypes.Object["name":tftypes.String, "subFilter":tftypes.Object["name":tftypes.String]], "name":tftypes.String, "sni":tftypes.String, "transportProtocol":tftypes.String], "name":tftypes.String, "portName":tftypes.String, "portNumber":tftypes.Number], "proxy":tftypes.Object["metadata":tftypes.Map[tftypes.String], "proxyVersion":tftypes.String], "routeConfiguration":tftypes.Object["gateway":tftypes.String, "name":tftypes.String, "portName":tftypes.String, "portNumber":tftypes.Number, "vhost":tftypes.Object["name":tftypes.String, "route":tftypes.Object["action":tftypes.String, "name":tftypes.String]]]], "patch":tftypes.Object["filterClass":tftypes.String, "operation":tftypes.String, "value":tftypes.Object["connect_timeout":tftypes.String, "http2_protocol_options":tftypes.Object[], "lb_policy":tftypes.String, "load_assignment":tftypes.Object["cluster_name":tftypes.String, "endpoints":tftypes.Tuple[tftypes.Object["lb_endpoints":tftypes.Tuple[tftypes.Object["endpoint":tftypes.Object["address":tftypes.Object["socket_address":tftypes.Object["address":tftypes.String, "port_value":tftypes.Number]]]]]]]], "name":tftypes.String, "type":tftypes.String]]] and tftypes.Object["applyTo":tftypes.String, "match":tftypes.Object["cluster":tftypes.Object["name":tftypes.String, "portNumber":tftypes.Number, "service":tftypes.String, "subset":tftypes.String], "context":tftypes.String, "listener":tftypes.Object["filterChain":tftypes.Object["applicationProtocols":tftypes.String, "destinationPort":tftypes.Number, "filter":tftypes.Object["name":tftypes.String, "subFilter":tftypes.Object["name":tftypes.String]], "name":tftypes.String, "sni":tftypes.String, "transportProtocol":tftypes.String], "name":tftypes.String, "portName":tftypes.String, "portNumber":tftypes.Number], "proxy":tftypes.Object["metadata":tftypes.Map[tftypes.String], "proxyVersion":tftypes.String], "routeConfiguration":tftypes.Object["gateway":tftypes.String, "name":tftypes.String, "portName":tftypes.String, "portNumber":tftypes.Number, "vhost":tftypes.Object["name":tftypes.String, "route":tftypes.Object["action":tftypes.String, "name":tftypes.String]]]], "patch":tftypes.Object["filterClass":tftypes.String, "operation":tftypes.String, "value":tftypes.Object["name":tftypes.String, "typed_config":tftypes.Object["@type":tftypes.String, "domain":tftypes.String, "failure_mode_deny":tftypes.Bool, "rate_limit_service":tftypes.Object["grpc_service":tftypes.Object["envoy_grpc":tftypes.Object["cluster_name":tftypes.String], "timeout":tftypes.String], "transport_api_version":tftypes.String]]]]]
goroutine 29 [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(0x32d57e0, 0xc000e56660, 0x2b469c0, 0xc001765d88, 0x32d56c0, 0xc004e82600, 0xc00092f650, 0x1100000000203001, 0xc004fbf2c0, 0x2c56b60, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/manifest/morph/morph.go:201 +0x1b85
github.com/hashicorp/terraform-provider-kubernetes/manifest/morph.ValueToType(0x32d57e0, 0xc000e56660, 0x2b469c0, 0xc001765d88, 0x32d56c0, 0xc004e82600, 0xc00092f650, 0x2, 0xc004fbf2c0, 0x2c56b60, ...)
/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(0x32d5750, 0xc00104b410, 0x2c56b60, 0xc00164b710, 0x32d5750, 0xc004e99410, 0xc00092f4d0, 0x11000000032d5750, 0xc004fbe6c0, 0x2c56b60, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/manifest/morph/morph.go:314 +0x425
github.com/hashicorp/terraform-provider-kubernetes/manifest/morph.ValueToType(0x32d5750, 0xc00104b410, 0x2c56b60, 0xc00164b710, 0x32d5750, 0xc004e99410, 0xc00092f4d0, 0x1, 0xc004fbe6c0, 0x2c56b60, ...)
/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(0x32d5750, 0xc0012c8090, 0x2c56b60, 0xc00164ac90, 0x32d5750, 0xc004fa89c0, 0xc00092ef18, 0x1100000000000000, 0x0, 0x33299090, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/manifest/morph/morph.go:314 +0x425
github.com/hashicorp/terraform-provider-kubernetes/manifest/morph.ValueToType(0x32d5750, 0xc0012c8090, 0x2c56b60, 0xc00164ac90, 0x32d5750, 0xc004fa89c0, 0xc00092ef18, 0x2, 0xb, 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(0xc000f12300, 0x32c74e8, 0xc0015e55c0, 0xc001673180, 0xc000419bd8, 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(0xc000f104e0, 0xc000f10510, 0xc0014d4880, 0x2, 0x2, 0xc000f12200, 0x1, 0x32c74e8, 0xc0015e55c0, 0xc001673180, ...)
/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(0xc0014d48a0, 0x32c7590, 0xc0015e55c0, 0xc001a90af0, 0xc0014d48a0, 0xc001af73e0, 0xc00203dba0)
/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(0x2e35140, 0xc0014d48a0, 0x32c7590, 0xc001af73e0, 0xc001af4360, 0x0, 0x32c7590, 0xc001af73e0, 0xc000344000, 0x130f)
/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(0xc000228c40, 0x32df538, 0xc0008c4a80, 0xc001ad3560, 0xc000f105a0, 0x4159de8, 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(0xc000228c40, 0x32df538, 0xc0008c4a80, 0xc001ad3560, 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(0xc000810e00, 0xc000228c40, 0x32df538, 0xc0008c4a80, 0xc001ad3560)
/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment