-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
OC CLI: Environment variable with a DOT in them. #8771
Comments
@smarterclayton this is pretty easy to fix in our CLI, but will require fix in k8s to allow dots in env vars. Do you have any other concerns about this except the variables wont |
Can't you just use FOO_BAR_COFFEE ? ditch the '.' characters since http://stackoverflow.com/questions/2821043/allowed-characters-in-linux-environment-variable-names |
closing since periods are not valid in env variable identifiers, at least in bash. |
Hold on - just because they're not in bash doesn't mean they aren't valid to pass to the container. |
We distinguish between Posix and Bash - it should be valid to define env vars with periods in them via the container interfaces in Kube and the OpenShift APIs. Some contexts we may not allow them to be set, but only if the only interface to them is bash. |
@smarterclayton well k8s doesn't allow it, so unless we're going to get k8s to allow them, we can't fix this. |
|
Probably something we'll have to fix in Kube. On Thu, Aug 4, 2016 at 11:38 PM, Ben Parees notifications@github.com
|
Please spawn a Kube issue. On Thu, Aug 4, 2016 at 11:40 PM, Clayton Coleman ccoleman@redhat.com
|
Any news about this issue? I'm having the same problem here.. I want to deploy an Apache Zuul from NetflixOSS, but, it appears to need a env variable with "dot", like this: origin.zuul.client.DeploymentContextBasedVipAddresses=HELLO-NETFLIX-OSS https://github.com/Netflix-Skunkworks/zerotodocker/wiki/Running-the-Images |
it's blocked by the upstream issue i linked above: kubernetes/kubernetes#30120 i haven't seen any movement on that issue. |
it'll only be available in 1.8. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
looks like this is resolved so we might actually be able to fix this now: kubernetes/kubernetes#2707 |
fixes: openshift#8771 reuses validators from kubernetes/kubernetes#48986
fixes: openshift#8771 reuses validators from kubernetes/kubernetes#48986
fixes: openshift#8771 reuses validators from kubernetes/kubernetes#48986
fixes: openshift#8771 reuses validators from kubernetes/kubernetes#48986
fixes: openshift#8771 reuses validators from kubernetes/kubernetes#48986
fixes: openshift#8771 reuses validators from kubernetes/kubernetes#48986
fixes: openshift#8771 reuses validators from kubernetes/kubernetes#48986
fixes: openshift#8771 reuses validators from kubernetes/kubernetes#48986
fixes: openshift#8771 reuses validators from kubernetes/kubernetes#48986
fixes: openshift#8771 reuses validators from kubernetes/kubernetes#48986
I am creating a new application using "oc new-app" CLI command and need to pass environment variables, one of my environment variable happens to be of the format of a.b.c.d=value, please see exact command below.
I get an error:
Version
Steps To Reproduce
My sample command was -
oc new-app openshift/openshift/wildfly-100-centos7~https://codehub.myorg.com/my-lab/ose-sample-idp.git#master -e env=dev -e tenant=oid -e "spring.cloud.consul.host"="http://192.168.18.132" -e "spring.cloud.consul.port"="18500" -e MAVEN_ARGS="-s -f boot-war-pom.xml -am -pl api clean package install -Popenshift -DskipTests -B"
Current Result
Error on environment variables with DOT in them
Expected Result
With enclosed in quotes, it should work?
The text was updated successfully, but these errors were encountered: