You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
I want to use service binding to consume a RESTful service exposed by another microservice that's part of my application. The consuming service is written using MicroProfile REST client, which has a specific naming convention for environment variables. So I want to map the attributes of the service I consume to an environment variable with a specific name. Today I can work around it like this:
i.e. by manually referencing the secret created by the operator. However, this is relying on the details of the how the secret is created, and requires extra configuration.
It's likely that other frameworks could have similar requirements for naming of environment variables.
Describe the solution you'd like
It would be much more convenient if I could map the environment variable as part of consuming the service, perhaps something like this:
thanks @matthewpwilson - this is a nice feature that allows for existing applications to get plugged in.
My only comment would be to call it something other than customEnvVar, since it could be applicable to either env var or the mount filename - depending if the user has chosen to get this information inject as env vars vs mounting.
this should be consistent with the updates being made to the SBO in terms of using the name dataMappings and having these mappings outside of the services array so that you can create composed mappings
each service should have an ID so we can reference in the mappings
Feature Request
Is your feature request related to a problem?
I want to use service binding to consume a RESTful service exposed by another microservice that's part of my application. The consuming service is written using MicroProfile REST client, which has a specific naming convention for environment variables. So I want to map the attributes of the service I consume to an environment variable with a specific name. Today I can work around it like this:
i.e. by manually referencing the secret created by the operator. However, this is relying on the details of the how the secret is created, and requires extra configuration.
It's likely that other frameworks could have similar requirements for naming of environment variables.
Describe the solution you'd like
It would be much more convenient if I could map the environment variable as part of consuming the service, perhaps something like this:
This is somewhat similar to customEnvVar feature in the ServiceBindingRequest CRD.
The text was updated successfully, but these errors were encountered: