inso generate config

Similar to the Kong Kubernetes and Declarative config plugins for Designer, this command can generate configuration from an API specification, using openapi-2-kong.

Options

Option Alias Description
--type <type> -t type of configuration to generate, options are kubernetes and declarative (default: declarative )
--output <path> -o save the generated config to a file in the working directory

Commands

inso generate config [options] [identifier]

Execute the given specification, the user will be prompted to select a specification if one is not passed as an option.

Examples

Not specifying any arguments will prompt

$ inso generate config

Scope by the specification name or id

$ inso generate config spc_46c5a4
$ inso generate config "Sample Specification"

Saving configuration output to file

$ inso generate config spc_46c5a4 --type declarative > output.yaml
$ inso generate config "Sample Specification" --output output.yaml

Changing configuration output type

inso generate config "Sample Specification" --type kubernetes

More examples: #2338.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us