-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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
Environment variables containing colon not allowed #53201
Comments
@kubernetes/sig-apps-feature-requests |
@MortenChristiansen: Reiterating the mentions to trigger a notification: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Is the ask here to just support I ask because if I read the docs right I can do...
|
For my specific use case I need |
Hi, I have encountered this limitation as well. Our apps were initially developed on windows, and use asp.net core for running them in linux now. But the asp.net libraries create environment variables that include |
For .Net Core, the current (ugly) workaround is to use double underscores, like It's documented here. |
/sig windows |
/assign @bsteciuk |
@michmike: GitHub didn't allow me to assign the following users: bsteciuk. Note that only kubernetes members and repo collaborators can be assigned. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
FYI, I've started work on this issue, limited to just allowing the ':' character in environment variables for now. |
I don't think we should do this. In Linux ":" is a path separator and completely invalid to use in an POSIX environment variable name. In .NET Core you use "__" in place of ":" in order get the desired configuration functionality to work as documented. I don't see why we should support non-portable naming. This will allow for manifests that only work in windows. |
Given that we will not implement this issue, @bsteciuk please update the getting started guide for windows to include this workaround for environment variables. thanks! |
/close |
I agree with double underscores: |
ACTUALLY, : is a valid character in POSIX. All It says about env variables names (AFAICT) is:
It specifies the names that POSIX tools can use, but does not restrict non-POSIX names at all. Most shells do not support all of the punctuation characters, but C
(BTW, it took me a long time to make that compile because my fingers are used to Go now :) |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten Pandering to the robotic overlords |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
#53201 (comment) is the latest status. If someone wants to do this, which I support, that's your roadmap. This warrants a KEP, albeit a small one. I wish I had the time to tackle all of these myself, but I just don't. This should not be a very hard one. |
/help |
@marosset: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/remove-sig apps |
/assign |
Is this a BUG REPORT or FEATURE REQUEST?:
/kind feature
Problem:
Kubernetes does not support
:
in environment variables. I can see that the subject has recently been discussed in PR #48986. .NET Core uses:
to replace config variables as mentioned in this comment. The limitation in kubernetes requires me to perform some ugly hacks to override the config values.Proposed Solution:
I'm in favor of the sentiment that kubernetes should not censor environment variables at all, but specifically I would like
:
to be allowed.The text was updated successfully, but these errors were encountered: