Bug 1000120

Summary: Add support to environment variables as arguments on rhc create-app
Product: OKD Reporter: Fabiano Franz <ffranz>
Component: ocAssignee: Fabiano Franz <ffranz>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: ffranz, wjiang
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-19 16:46:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Fabiano Franz 2013-08-22 18:31:38 UTC
Description of problem: 

rhc create-app must also support environment variables provided as arguments (instead of the -e|--env option). Example:

rhc create-app foo php-5 A=B C=D E=F

Arguments are already being extracted and app/cartridge names does not allow the equal sign ('=') so it's probably simple to implement. See 'check_cartridges' in app.rb.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:

Expected results:


Additional info:

Comment 1 Clayton Coleman 2013-09-09 21:38:19 UTC
Fabiano, please add the pull # this was fixed in.  Has already been delivered to master.

Comment 2 Fabiano Franz 2013-09-09 22:33:53 UTC
Pull request: https://github.com/openshift/rhc/pull/446

Comment 3 weiwei jiang 2013-09-10 03:38:03 UTC
Tested on devenv_3762, and work well, so verified it.

rhc app create app2 php-5.3 as=1 asdf=2 adfasdf=3 adsfds=4 adsf=5 adf=6 asadf=7 asdfasdf=8 mzmz=9 adsfsad=10 adfsdf=11 asfdasdaf=12 aasdfasdf=13 jkj=14 iei=15 oqo=16 kxl=17 kjakl=18 kjadskllkj=19 askdfjla=20 amkk=21 sdkfasdklf=22 erioweoi=23 dkfjalkjsdf=24 kdlfjalsdjf=25
Application Options
-------------------
  Namespace:             wjiang
  Cartridges:            php-5.3
  Gear Size:             default
  Scaling:               no
  Environment Variables: as=1, asdf=2, adfasdf=3, adsfds=4, adsf=5, adf=6, asadf=7, asdfasdf=8, mzmz=9, adsfsad=10, adfsdf=11, asfdasdaf=12, aasdfasdf=13, jkj=14, iei=15, oqo=16, kxl=17,
                         kjakl=18, kjadskllkj=19, askdfjla=20, amkk=21, sdkfasdklf=22, erioweoi=23, dkfjalkjsdf=24, kdlfjalsdjf=25

Creating application 'app2' ... done