rancher / cluster-template-examples

Apache License 2.0
43 stars 128 forks source link

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

Open lindhe opened 1 year ago

lindhe commented 1 year ago

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