Does anyone know what's the reason behind this err...
# kubernetes
i
Does anyone know what's the reason behind this error from
kube2pulumi
?:
Copy code
unable to run program: Error: Missing item separator

  on pcl-546459028.pp line 80:
  75: envFrom = [
  76: {
  77: configMapRef = {
  78: name = "global-configmap"
  79: },
  80: }
  81: {

Expected a comma to mark the beginning of the next item.
Seems to be a bug with kube2pulumi?
q
kube2pulumi
converts Kubernetes YAML to Pulumi code, but what you’ve shared doesn’t appear to be YAML. It looks like a Puppet manifest?
i
It's indeed yaml, the config shown in the error is a typescript object that it tried to convert to.
Other yaml to js object converters work just fine btw
q
Can you share your YAML, please
i
It's very long, I'll only share the part where it fails to parse
q
If it’s a known issue, I’m not sure there’s much I can help you with atm. I’ll take a look at it though 👍
👍 1
b
@important-vegetable-39003 is it an option to just remove that configmap from the yaml then convert? you can do a manual conversion for that configmap
i
I've just use other yaml to js objects converters
Basically same thing, just need to add the actual classes