Bug 1374750 - Pass large JSON Dictionary of environment variables to oc new-app template
Summary: Pass large JSON Dictionary of environment variables to oc new-app template
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: RFE
Version: 3.3.0
Hardware: All
OS: All
unspecified
high
Target Milestone: ---
: ---
Assignee: Ben Parees
QA Contact: Wenjing Zheng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-09 14:02 UTC by Matthew Robson
Modified: 2020-07-16 08:54 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-12 19:06:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0884 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.5 RPM Release Advisory 2017-04-12 22:50:07 UTC

Description Matthew Robson 2016-09-09 14:02:26 UTC
3. What is the nature and description of the request?  
As a user, I want to be able to create a dynamic template with a significant number of environment variables and pass those variable values as a pre-configured JSON dictionary to the template without repeating '-e' dozens of times.

Example,

oc new-app -p = {["param1": value, "param2": "value2"....]}
  
4. Why does the customer need this? (List the business requirements here)  
To be able to pre-create parameter models for templated applications and pass them in with ease

5. How would the customer like to achieve this? (List the functional requirements here)  
Create a JSON Dictionary that can be checked in and stored along side application source code and passed into OCP during a build from a template

6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.
Create a template with an app that specifies a large number of environment variables within it's deploymentconfig and pass in a set of variables to override as a single JSON dictionary.
  
7. Is there already an existing RFE upstream or in Red Hat Bugzilla?  
Request to pass in a parameter list as a file.  Could work well in tandem to pass in a structured JSON dictionary versus a flat set of K/V pairs.

https://trello.com/c/BMuLvOny/968-3-supply-oc-new-app-and-oc-process-parameter-list-via-a-file
    
10. List any affected packages or components.
?

Comment 2 Ben Parees 2016-09-09 14:44:04 UTC
if we do this i think it's much like likely we'd accept a parameter file consistent of key=value pairs, rather than a json blob on the command line.  would that be acceptable for this RFE?

Comment 15 Wenjing Zheng 2017-03-23 07:03:40 UTC
This feature has been implemented in this card (https://trello.com/c/BMuLvOny/968-5-supply-oc-new-app-and-oc-process-parameter-list-env-vars-via-a-file-app-creation) and qe has tested/accepted it.so moving this bug VERIFIED.

Comment 17 errata-xmlrpc 2017-04-12 19:06:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0884


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