redpanda-data / helm-charts

Redpanda Helm Chart
http://redpanda.com
Apache License 2.0
77 stars 96 forks source link

gotohelm: support string-ish types in keys #1523

Closed chrisseto closed 2 months ago

chrisseto commented 2 months ago

Prior to this commit gotohelm would fail to transpile the following:

corev1.ResourceList{
    corev1.ResourceCPU: resource.MustParse("100m"),
}

As corev1.ResourceCPU is not exactly a string type, it's a wrapper type.

This commit relaxes the constraint of key types to permit "string-ish" types, that is to say types that may be assigned or converted to strings, such as corev1.ResourceCPU.