Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IstioOperator Manifest Causes Crash #62

Open
timkelsch opened this issue Sep 5, 2024 · 0 comments
Open

IstioOperator Manifest Causes Crash #62

timkelsch opened this issue Sep 5, 2024 · 0 comments

Comments

@timkelsch
Copy link

timkelsch commented Sep 5, 2024

YAML: https://raw.github.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/tfk8s@v0.1.10/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/go-cty@v1.8.0/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/go-cty@v1.8.0/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/tfk8s@v0.1.10/tfk8s.go:111 +0x2a5
main.YAMLToTerraformResources({0x5ea7e8?, 0xc00005c650?}, {0x0, 0x0}, 0x0, 0x0, 0x0)
	/home/tkelsch/go/pkg/mod/github.com/jrhouston/tfk8s@v0.1.10/tfk8s.go:209 +0x2a5
main.main()
	/home/tkelsch/go/pkg/mod/github.com/jrhouston/tfk8s@v0.1.10/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant