Closed sbellone closed 2 years ago
Unrelated but I'm using the occasion to ask:
When looking at the tests, it seems that the toSingular
parameter doesn't seem to work:
{
"labels",
args{
"labels",
true,
"",
},
"labels",
},
Did I miss something?
Thanks @sbellone.
As for toSingular
- there are a few exceptions setup to prevent it from singularizing certain words to match the TF Kubernetes provider schema.
See - https://github.com/sl1pm4t/k2tf/blob/master/pkg/tfkschema/name_mapper.go#L20
Oh I see, I had missed that, thanks :+1:
Hi, thanks for this very useful tool! Today I've tried to convert Google's Custom Metrics Adapter and I got invalid names in the final result. Indeed, dots are not valid in resource names and their yaml file contains metadata names such as
v1beta1.custom.metrics.k8s.io
.Before:
After: