Skip to content

Converting YAML workflow back into TCL #65

@j0nathontayl0r

Description

@j0nathontayl0r
panic: not a string

goroutine 1 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:26 +0x64
main.capturePanic()
	github.com/jrhouston/tfk8s/tfk8s.go:234 +0x34
panic({0x1047baea0?, 0x1047f1b10?})
	runtime/panic.go:785 +0x124
github.com/zclconf/go-cty/cty.Value.AsString({{{0x0?, 0x0?}}, {0x0?, 0x0?}})
	github.com/zclconf/[email protected]/cty/value_ops.go:1251 +0x128
main.yamlToHCL({{{0x1047f3bd0?, 0x140001a9360?}}, {0x1047c47e0?, 0x140001e60f0?}}, {0x0, 0x0}, 0x0, 0x0, 0x0)
	github.com/jrhouston/tfk8s/tfk8s.go:103 +0xb4
main.YAMLToTerraformResources({0x1047f28f8?, 0x14000110690?}, {0x0, 0x0}, 0x0, 0x0, 0x0)
	github.com/jrhouston/tfk8s/tfk8s.go:209 +0x214
main.main()
	github.com/jrhouston/tfk8s/tfk8s.go:267 +0x34c


⚠️  Oh no! Looks like your manifest caused tfk8s to crash.

Please open a GitHub issue and include your manifest YAML with the stack trace above,
or ping me on slack and I'll try and fix it!

GitHub: https://github.com/jrhouston/tfk8s/issues
Slack: #terraform-providers on https://kubernetes.slack.com

- Thanks, @jrhouston

Command:

tfk8s -f ./mosh-ap-southeast-2-default.yaml > mosh-ap-southeast-2-default.hcl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions