I want to migrate my current solution of deploymen...
# typescript
r
I want to migrate my current solution of deployment (shell script which runs few kubectl commdns) to pulomi one the easiest way at the beginning. As a first step i want to just take already written yaml descriptors and insted of applying them with kubectl use pulumi. I am currently loading the descriptors with
Copy code
@pulumi/kubernetes/yaml/ConfigFile
providing a file path to it. Is that a valid way? I am getting error when pulomi tryies to parse that yaml.
t
Sounds right. What is the error?
r
Copy code
TypeError: Cannot read property 'map' of undefined
        at config.objs.then.configObjs (/current/node_modules/@pulumi/kubernetes/yaml/yaml.js:182:14)
example yaml file:
Copy code
apiVersion: v1
kind: ServiceAccount
metadata:
  name: name
t
Hmm, doesn’t look right. Could you open an issue at https://github.com/pulumi/pulumi-kubernetes/issues ?
r
sure thing