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

What is recommended options to make the YAML definition modular? #147

Closed
empeje opened this issue Sep 16, 2018 · 2 comments
Closed

What is recommended options to make the YAML definition modular? #147

empeje opened this issue Sep 16, 2018 · 2 comments

Comments

@empeje
Copy link

empeje commented Sep 16, 2018

I maintain an API gateway with a lot of APIs and with 100+ APIs plus multiple plugins each, I want to make the YAML definition of the API separate or modular so that I can organize the config for each project, but when I update it I'll update it in an atomic way (all the config).

I know one of the solutions is to use yq to preprocess all the YAML and merge it together before pipe it to the kongfig. Do you have any plan or idea how make it supported by default?

@albertux
Copy link

albertux commented Sep 18, 2018

@empeje I recommend to split your yaml in groups/categories of apis, so konfig apply doesn't take to much, is not ideal but reduce the time of the operation.

@empeje
Copy link
Author

empeje commented Sep 21, 2018

Well, I have a use case where we use Kubernetes configMap to store the kongfig.yaml and then use Kubernetes job to apply it. We are having a huge single configMap to store everything, I wonder if its good to split them out into multiple configMap. Anyway, I think this issue is not really relevant since I already have multiple workarounds.


edit.

Thanks @albertux

@empeje empeje closed this as completed Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants