Skip to content

Instantly share code, notes, and snippets.

@ryanewk
Created March 19, 2020 17:23
Show Gist options
  • Save ryanewk/3421c385de0c2a3aa8441c85d9dbc4f9 to your computer and use it in GitHub Desktop.
Save ryanewk/3421c385de0c2a3aa8441c85d9dbc4f9 to your computer and use it in GitHub Desktop.
terraform-k8s panic
E0319 17:17:01.749415 1 runtime.go:67] Observed a panic: not a string
/Users/rosemarywang/go/pkg/mod/k8s.io/apimachinery@v0.0.0-20190404173353-6a84e37a896d/pkg/util/runtime/runtime.go:76
/Users/rosemarywang/go/pkg/mod/k8s.io/apimachinery@v0.0.0-20190404173353-6a84e37a896d/pkg/util/runtime/runtime.go:65
/Users/rosemarywang/go/pkg/mod/k8s.io/apimachinery@v0.0.0-20190404173353-6a84e37a896d/pkg/util/runtime/runtime.go:51
/usr/local/Cellar/go/1.13.3/libexec/src/runtime/panic.go:679
/Users/rosemarywang/go/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/value_ops.go:1026
/Users/rosemarywang/terraform-k8s/operator/pkg/controller/workspace/tfc_output.go:36
/Users/rosemarywang/terraform-k8s/operator/pkg/controller/workspace/tfc_output.go:53
/Users/rosemarywang/terraform-k8s/operator/pkg/controller/workspace/workspace_controller.go:192
/Users/rosemarywang/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.2.0/pkg/internal/controller/controller.go:216
/Users/rosemarywang/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.2.0/pkg/internal/controller/controller.go:192
/Users/rosemarywang/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.2.0/pkg/internal/controller/controller.go:171
/Users/rosemarywang/go/pkg/mod/k8s.io/apimachinery@v0.0.0-20190404173353-6a84e37a896d/pkg/util/wait/wait.go:152
/Users/rosemarywang/go/pkg/mod/k8s.io/apimachinery@v0.0.0-20190404173353-6a84e37a896d/pkg/util/wait/wait.go:153
/Users/rosemarywang/go/pkg/mod/k8s.io/apimachinery@v0.0.0-20190404173353-6a84e37a896d/pkg/util/wait/wait.go:88
/usr/local/Cellar/go/1.13.3/libexec/src/runtime/asm_amd64.s:1357
panic: not a string [recovered]
panic: not a string
goroutine 670 [running]:
k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
/Users/rosemarywang/go/pkg/mod/k8s.io/apimachinery@v0.0.0-20190404173353-6a84e37a896d/pkg/util/runtime/runtime.go:58 +0x105
panic(0x17a1c20, 0x1de63a0)
/usr/local/Cellar/go/1.13.3/libexec/src/runtime/panic.go:679 +0x1b2
github.com/zclconf/go-cty/cty.Value.AsString(...)
/Users/rosemarywang/go/pkg/mod/github.com/zclconf/go-cty@v1.1.0/cty/value_ops.go:1026
github.com/hashicorp/terraform-k8s/operator/pkg/controller/workspace.(*TerraformCloudClient).GetOutputsFromState(0xc0008f47e0, 0xc00002e000, 0x220, 0xc00002e000, 0x220, 0x0, 0x0, 0x6)
/Users/rosemarywang/terraform-k8s/operator/pkg/controller/workspace/tfc_output.go:36 +0x661
github.com/hashicorp/terraform-k8s/operator/pkg/controller/workspace.(*TerraformCloudClient).CheckOutputs(0xc0008f47e0, 0xc000d8a020, 0x13, 0xc000d8a000, 0x14, 0x6, 0x0, 0x0, 0xc000102a80, 0x0)
/Users/rosemarywang/terraform-k8s/operator/pkg/controller/workspace/tfc_output.go:53 +0x86
github.com/hashicorp/terraform-k8s/operator/pkg/controller/workspace.(*ReconcileWorkspace).Reconcile(0xc0004e20f0, 0xc00061e8a0, 0x9, 0xc0008a5f60, 0x15, 0xc0007b9cd8, 0xc00025e120, 0xc00044d178, 0x1e29580)
/Users/rosemarywang/terraform-k8s/operator/pkg/controller/workspace/workspace_controller.go:192 +0x17b7
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc00081a500, 0x18c2740, 0xc0006fa2c0, 0x0)
/Users/rosemarywang/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.2.0/pkg/internal/controller/controller.go:216 +0x162
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc00081a500, 0xc000086f00)
/Users/rosemarywang/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.2.0/pkg/internal/controller/controller.go:192 +0xcb
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker(0xc00081a500)
/Users/rosemarywang/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.2.0/pkg/internal/controller/controller.go:171 +0x2b
k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1(0xc00049e070)
/Users/rosemarywang/go/pkg/mod/k8s.io/apimachinery@v0.0.0-20190404173353-6a84e37a896d/pkg/util/wait/wait.go:152 +0x5e
k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc00049e070, 0x3b9aca00, 0x0, 0x1, 0xc0006df200)
/Users/rosemarywang/go/pkg/mod/k8s.io/apimachinery@v0.0.0-20190404173353-6a84e37a896d/pkg/util/wait/wait.go:153 +0xf8
k8s.io/apimachinery/pkg/util/wait.Until(0xc00049e070, 0x3b9aca00, 0xc0006df200)
/Users/rosemarywang/go/pkg/mod/k8s.io/apimachinery@v0.0.0-20190404173353-6a84e37a896d/pkg/util/wait/wait.go:88 +0x4d
created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start
/Users/rosemarywang/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.2.0/pkg/internal/controller/controller.go:157 +0x32e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment