Skip to content

IstioOperator Manifest Causes Crash #62

@timkelsch

Description

@timkelsch

YAML: https://raw.githubusercontent.com/istio/istio/release-1.23/samples/bookinfo/demo-profile-no-gateways.yaml

# IOP configuration used to install the demo profile without gateways.
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  profile: demo
  components:
    ingressGateways:
    - name: istio-ingressgateway
      enabled: false
    egressGateways:
    - name: istio-egressgateway
      enabled: false

Command:
tfk8s -f demo-profile-no-gateways.yaml

Output:

panic: value is null

goroutine 1 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x5e
main.capturePanic()
	/home/tkelsch/go/pkg/mod/github.com/jrhouston/[email protected]/tfk8s.go:234 +0x34
panic({0x579e00?, 0x5e99e0?})
	/usr/local/go/src/runtime/panic.go:770 +0x132
github.com/zclconf/go-cty/cty.Value.LengthInt({{{0x0?, 0x0?}}, {0x0?, 0x0?}})
	/home/tkelsch/go/pkg/mod/github.com/zclconf/[email protected]/cty/value_ops.go:1058 +0x258
github.com/zclconf/go-cty/cty.Value.AsValueMap({{{0x0?, 0x0?}}, {0x0?, 0x0?}})
	/home/tkelsch/go/pkg/mod/github.com/zclconf/[email protected]/cty/value_ops.go:1315 +0x65
main.yamlToHCL({{{0x5eb488?, 0xc000162260?}}, {0x581e40?, 0xc000017d10?}}, {0x0, 0x0}, 0x0, 0x0, 0x0)
	/home/tkelsch/go/pkg/mod/github.com/jrhouston/[email protected]/tfk8s.go:111 +0x2a5
main.YAMLToTerraformResources({0x5ea7e8?, 0xc00005c650?}, {0x0, 0x0}, 0x0, 0x0, 0x0)
	/home/tkelsch/go/pkg/mod/github.com/jrhouston/[email protected]/tfk8s.go:209 +0x2a5
main.main()
	/home/tkelsch/go/pkg/mod/github.com/jrhouston/[email protected]/tfk8s.go:267 +0x385


⚠️  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

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