Render
The deck file render
command combines multiple complete configuration files and renders them as one Kong state file.
This command renders a full Kong Gateway configuration in JSON or YAML format by assembling multiple files and populating defaults and environment substitutions. This command is useful for observing what configuration would be sent prior to synchronizing to the Gateway.
In comparison to the deck file merge
command, the render command accepts complete configuration files, while deck file merge
can operate on partial files.
For example, the following command takes two input files and renders them as one combined JSON file:
deck file render kong1.yml kong2.yml
The deck file render
command validates the configuration against a schema, and warns if any duplicate entities are detected.