kcl-lang / kcl-go

KCL Go SDK
https://pkg.go.dev/kcl-lang.io/kcl-go@main
Apache License 2.0
52 stars 26 forks source link

[Enhancement] kcl import muti yaml resource #266

Closed reckless-huang closed 7 months ago

reckless-huang commented 7 months ago

There are three resources written in one YAML file deployment + service + pvc split with '---'

deployment
___
service
___
pvc 

then kcl import -f xxx only convert the deployment , not all

Peefy commented 7 months ago

Thank you for the feedback. This is a pending issue, PRs welcome. ❤️

Peefy commented 7 months ago

The code is here: https://github.com/kcl-lang/kcl-go/blob/main/pkg/tools/gen/genkcl_yaml.go

reckless-huang commented 7 months ago

The code is here: https://github.com/kcl-lang/kcl-go/blob/main/pkg/tools/gen/genkcl_yaml.go

I’ll give it a try.