Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MI 4.1.0] Enabling Environment Variable Parameterisation for 'Key' and 'Name' Values in Metadata Files #3331

Closed
SameeraSI opened this issue May 14, 2024 · 0 comments · Fixed by #3349
Milestone

Comments

@SameeraSI
Copy link

SameeraSI commented May 14, 2024

Deploying the same service to different environments using the APIM catalog[1] poses a challenge as there's no way to customize the ‘key’ and ‘name’ according to the environment. Consequently, in the APIM catalog, identical keys and names lead to the replacement of existing services by new requests, resulting in only one service being visible despite multiple environments. To resolve this, enabling support for parameterising ‘key’ and ‘name’ values using environment variables in metadata files is necessary.

Example:

key: "PurchaseOrders-1.0.0-$env:ENVIRONMENT_NAME"
name : "PurchaseOrders-$env:ENVIRONMENT_NAME"
displayName : "PurchaseOrders"
description: "PurchaseOrders API"
version: "1.0.0"
serviceUrl: "https://{MI_URL}/ep/1.0.0"
definitionType: "OAS3"
securityType: "BASIC"
mutualSSLEnabled: false

[1] https://apim.docs.wso2.com/en/4.1.0/tutorials/integration-tutorials/service-catalog-tutorial/#step-3-configure-the-micro-integrator

GDLMadushanka added a commit to GDLMadushanka/micro-integrator that referenced this issue May 27, 2024
Add the functionality to dynamically configure the API metadata file
used in the service catalog feature.
Now we can configure key, name, displayName and description using env
variables ex:- key: "hello-1.0.0-{MI_GROUP_ID}"
Fixes wso2/issues/3331
@arunans23 arunans23 added this to the 4.3.0-alpha milestone Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants