https://pulumi.com logo
#typescript
Title
# typescript
r

rough-tomato-98795

02/10/2020, 11:59 AM
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

tall-librarian-49374

02/10/2020, 12:09 PM
Sounds right. What is the error?
r

rough-tomato-98795

02/10/2020, 12:13 PM
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

tall-librarian-49374

02/10/2020, 12:30 PM
Hmm, doesn’t look right. Could you open an issue at https://github.com/pulumi/pulumi-kubernetes/issues ?
r

rough-tomato-98795

02/10/2020, 12:42 PM
sure thing