Closed Proteles closed 5 years ago
Hi,
When you call:
treeGatewayConfig config --get > default.yaml
You are exporting not only the gateway configuration.... but the configuration for all TreeGateway components (the gateway itself, the list of installed middlewares, all APIs)
The command:
treeGatewayConfig gateway --update default.yaml
would be used if you were configuring only the gateway
component. If you want to import all configurations (contained in the default.yaml exported by the previous command), you should run:
treeGatewayConfig config --update default.yaml
If you want to export only the gateway configuration, you can run:
treeGatewayConfig gateway --get > default.yaml
Ahh! Ok. I was conflating "gateway" and "config" in the treeGatewayConfig command. I appreciate the explanation. /solved
The configuration generated when starting treeGateway does not work. Documentation does not address issues.
Step 1: start treeGateway
Step 2: Get configuration just used to start treeGateway
$ treeGatewayConfig config --get > default.yaml
Step 3: Try updating treeGateway with the configuration it just gave me.
the generated default file
even after removing empty arrays for middlewares, and apis, it complains of the 'gateway' field. Unexpected Fields: gateway