Closed chrisseto closed 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.
corev1.ResourceCPU
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.
Prior to this commit gotohelm would fail to transpile the following:
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.