Kong: Feature Request: Kong Declarative with Variable Interpolation

Created on 26 Apr 2019  路  3Comments  路  Source: Kong/kong

I made this docker project https://github.com/carnei-ro/kong, (but I think it would be great if it was native). Kong should be able to do variable interpolation like docker-compose does.
In my project it is possible to pass a directory with the YAML files and Kong will read them all. Like a kubectl apply -f does.

Most helpful comment

I'm also curious about this. Is there a way to use Env Vars with Kong declarative? What would be the recommended way to set up a declarative file for staging and production?

All 3 comments

I _feel_ like something like this should be handled by a config management system. Eg, pass a config template to your mgmt solution of choice, have that system (which already has sane solutions for interpolations) do the substitution, and pass that to Kong.

Yes, it starts with variable interpolation, and ends up with a turing complete solution. :-). Though I do think people will ask this. Perhaps making a separate solution that does the transformation is a way to go.

I'm also curious about this. Is there a way to use Env Vars with Kong declarative? What would be the recommended way to set up a declarative file for staging and production?

Was this page helpful?
0 / 5 - 0 ratings