Bug 1000120 - Add support to environment variables as arguments on rhc create-app
Summary: Add support to environment variables as arguments on rhc create-app
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Fabiano Franz
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-22 18:31 UTC by Fabiano Franz
Modified: 2015-05-15 02:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-19 16:46:13 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.