FeatureFuel
7

support for command line environment variables

Source: Kong/insomnia#4377 · opened by @SachinGhumbre
We use inso generate command to generate kong configuration from openapi specifications. To achieve multiple environment deployments using the same openapi yaml file, there is a need to have environment variables to be passed at command line. Example given below: my-orders.yaml openapi: 3.0.0 tags: • name: "orders.yml" info: title: "OrdersAPI" service name in kong version: "1.0" servers: - url: full path for backend (service) variables: HOSTNAME: default: localhost:8443 enum: - "QA-SERVER:8443" - "PROD-SERVER:8443" When I run "inso generate config orders.yml --type declarative > kong.yaml", it will generate corresponding kong configuration file for orders API as mentioned below: _format_version: "1.1" services: - name: OrdersAPI protocol: https host: localhost port: 8443 path: /api/v1.0/orders …

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests