romanovskyj / gongfig

Import and export Kong configuration tool written in Go
Apache License 2.0
25 stars 5 forks source link

Not exporting config correctly #48

Closed Ilshidur closed 5 years ago

Ilshidur commented 5 years ago

Hello.

It seems like the export tool does not export the Kong configuration correctly.

Example of an exported config here : (deleted)

The issue :

When having an upstream that has 1 target, the exported upstream has multiple targets, and those are the targets of other upstreams.

Anyway, thanks for this amazing tool :smile:

romanovskyj commented 5 years ago

Thank you for the reporting, I fixed the issue when upstream has targets of other upstreams.

As for the one target vs multiple targets, it does not look clear: as far as I see, you have four different targets and all they have suitable names. Are you sure you should have only one target? Do you have one target by api <kong-url>/upstreams/<upstream_id>/targets ?

49

romanovskyj commented 5 years ago

As for now, I am closing it, let me know if you still have this problem.

Ilshidur commented 5 years ago

This is great ! Sorry for the late answer, I could only try this fix at work.

Thank you very much !