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

Custom environment variables should not be prefixed with global prefix #486

Closed
isutton opened this issue May 25, 2020 · 5 comments · Fixed by #640
Closed

Custom environment variables should not be prefixed with global prefix #486

isutton opened this issue May 25, 2020 · 5 comments · Fixed by #640
Assignees
Labels
kind/bug Something isn't working v0.3.0

Comments

@isutton
Copy link
Contributor

isutton commented May 25, 2020

#407 has unwillingly changed the behavior of custom environment variables, by prefixing those with the global environment variable prefix if informed.

This behavior should be reverted.

For reference, see #475 (comment).

@sbose78 sbose78 added the kind/bug Something isn't working label May 26, 2020
@sbose78 sbose78 added the v0.3.0 label Jun 23, 2020
@sbose78
Copy link
Member

sbose78 commented Jun 23, 2020

Could you please summarize the issue here?

@DhritiShikhar
Copy link
Contributor

@isutton

Is this a duplicate of #475 ?

@Avni-Sharma
Copy link
Contributor

Hi @isutton Do we remove the global envVarPrefix and service's envVarPrefix both, or only the global envVarPrefix? IMO both should be removed, as the custom name should be independent of any prefix as it is custom, however, the issue just mentions Global Prefix, so wanted confirmation in the same regard.

@isutton
Copy link
Contributor Author

isutton commented Aug 27, 2020

@Avni-Sharma

Hi @isutton Do we remove the global envVarPrefix and service's envVarPrefix both, or only the global envVarPrefix? IMO both should be removed, as the custom name should be independent of any prefix as it is custom, however, the issue just mentions Global Prefix, so wanted confirmation in the same regard.

You're right.

I've just mentioned the global envVarPrefix because service's envVarPrefix doesn't apply to values applied to customEnvVar/dataMapping; an entry in customEnvVar/dataMapping might refer to no services (in the case there's no interpolation in the template) or many services (in the case values from several services are interpolated).

@Avni-Sharma
Copy link
Contributor

Thanks @isutton

baijum pushed a commit to Avni-Sharma/service-binding-operator that referenced this issue Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working v0.3.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants