https://pulumi.com logo
#kubernetes
Title
# kubernetes
i

important-vegetable-39003

12/13/2021, 11:40 AM
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

quiet-wolf-18467

12/13/2021, 11:44 AM
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

important-vegetable-39003

12/13/2021, 12:00 PM
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

quiet-wolf-18467

12/13/2021, 12:01 PM
Can you share your YAML, please
i

important-vegetable-39003

12/13/2021, 12:04 PM
It's very long, I'll only share the part where it fails to parse
q

quiet-wolf-18467

12/13/2021, 12:05 PM
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

billowy-army-68599

12/13/2021, 3:37 PM
@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

important-vegetable-39003

12/13/2021, 3:39 PM
I've just use other yaml to js objects converters
Basically same thing, just need to add the actual classes
4 Views