-
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
Add option to use file with environment variables in new-app #7585
Comments
@ppitonak sounds reasonable to me. @smarterclayton || @fabianofranz ? |
Yes. In |
It's reasonable. Note that for new-app you don't even need
|
@bparees : I wish to contribute to this PR, I am new to Openshift and need you guys help. Let me know, if I can pick this up. |
@ravisantoshgudimetla best place to start would be our contributor guide: once you have a dev environment up and running we can discuss how to solve this issue. |
@bparees I have set the dev environment up. I am currently reading newapp.go in /go/src/github.com/openshift/origin/pkg/cmd/cli/cmd. |
@ravisantoshgudimetla ok, that's the right place to start, i think the original issue summary describes the intent pretty well, so I guess just let me know where you have questions. |
@bparees Cool, I will go through it and get back to you, in case I have questions. Thanks. |
@bparees - Following are the set of changes that I thinking of making for this PR. The idea is to reuse the existing code as much as possible. I am trying to parse the environment file and get the []string from it and append it to environment []string in newapp.go . cmd.Flags().StringSliceVarP(&config.EnvironmentFile, "envfile", “", config.Environment, “Specify location for key-value pair environment file”) in newapp.go in origin/pkg/cmd/cli/cmd Please let know, if I am missing something or if there is an easier way to do this. |
@ravisantoshgudimetla generally sounds reasonable, go ahead and open the PR and we'll continue the discussion from there. |
@bparees, as discussed raised PR. Please note that I haven't written the test cases yet. Once the approach seems reasonable , I will go ahead and write some test cases. |
I know I'm horribly late to the game, but what if we simply improved the documentation, and relied on shell utilities to complete? |
@mmilata the card you're working this sprint should resolve this. |
Should be fixed in #12164. |
It is possible to specify environment variables directly to
oc new-app
commandAdd an option to specify a file with env variables so that they don't have to be specified on command line (was implemented in OpenShift 2, Docker has --env-file option)
where file would contain
The text was updated successfully, but these errors were encountered: