Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration tool from yaml #34

Open
rrva opened this issue Jan 6, 2022 · 3 comments
Open

Migration tool from yaml #34

rrva opened this issue Jan 6, 2022 · 3 comments

Comments

@rrva
Copy link

rrva commented Jan 6, 2022

Is there any migration tool that will help me go from yaml to kotlin dsl?

@fkorotkov
Copy link
Owner

Unfortunately there is none at the moment. Do you use any processor in order to generate your YAML or you have just a vanilla YAML written by hand?

One idea I had is to make a serialization tool which you can point to an object in your Kubernetes cluster and it will generate a DSL for that.

@rrva
Copy link
Author

rrva commented Jan 6, 2022

It have hand-written yaml for the most part. Also some helm based things but these have tools to convert to raw kubernetes yaml.

I also had the idea to connect to the cluster, get the objects and then serialize it to kotlin. That would work fine I think...

Where to start?

@rrva
Copy link
Author

rrva commented Jan 6, 2022

https://square.github.io/kotlinpoet/ comes to mind as a possible ingredient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants