carvel-dev / ytt

YAML templating tool that works on YAML structure instead of text
https://carvel.dev/ytt
Apache License 2.0
1.66k stars 136 forks source link

cannot load lib/helpers.star: Evaluating starlark template: #499

Closed anibal-aguila closed 2 years ago

anibal-aguila commented 3 years ago

Hi, we have the following issue trying to setup a new cluster.

What steps did you take: tanzu cluster create tkgs-shared-base --file /root/downloads/tanzu-bundle-1.4/tkg-shared-base.yaml --tkr=v1.20.9---vmware.1-tkg.1.a4cee5b -v 6

What happened: Validating configuration... Error: failed to create Tanzu Kubernetes Cluster service for vSphere workload cluster:

What did you expect: Cluster up and running

Anything else you would like to add: [Additional information that will assist in solving the issue.]

Environment:

thanks in advance,

pivotaljohn commented 3 years ago

Hey @anibal-aguila.

So, the symptom appears to be that tkr_name is None (the Python/Starlark equivalent to nil or null).

Just based of the name of the function, it looks like tkr_name is getting its value from data.values.KUBERNETES_RELEASE.

Are you able to verify that that data value is being set?

I see that you're using Tanzu. I suspect that you'd get additional help in the Kubernetes slack: https://kubernetes.slack.com/archives/C02GY94A8KT. Visit http://slack.k8s.io/ to join the Kubernetes Slack workspace if you are not already there.

pivotaljohn commented 2 years ago

We'll close this issue for now. @anibal-aguila, if you would like more assistance, please feel free to comment here; we'll see it and re-open this issue. Hopefully we haven't heard from you because the issue is resolved. 🤞🏻