cluster-template-examples icon indicating copy to clipboard operation
cluster-template-examples copied to clipboard

Unable to render chart with `values-vsphere.yaml`

Open lindhe opened this issue 1 year ago • 0 comments

The chart fails to render when using values-vsphere.yaml:

$ helm template charts --values charts/values-vsphere.yaml
Error: template: cluster-template/templates/nodeconfig-vsphere.yaml:22:34: executing "cluster-template/templates/nodeconfig-vsphere.yaml" at <2>: invalid value; expected string

Use --debug flag to render out invalid YAML

I think it's because cloudConfig in values-vsphere.yaml is null and this line expects a string:

https://github.com/rancher/cluster-template-examples/blob/dc5c201c5415c430cdf4bcb6af975f9e516e970b/charts/templates/nodeconfig-vsphere.yaml#L22

lindhe avatar Sep 14 '23 11:09 lindhe