Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1374750 - Pass large JSON Dictionary of environment variables to oc new-app template
Pass large JSON Dictionary of environment variables to oc new-app template
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: RFE (Show other bugs)
3.3.0
All All
unspecified Severity high
: ---
: ---
Assigned To: Ben Parees
Wenjing Zheng
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-09 10:02 EDT by Matthew Robson
Modified: 2017-07-24 10 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-04-12 15:06:44 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0884 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.5 RPM Release Advisory 2017-04-12 18:50:07 EDT

  None (edit)
Description Matthew Robson 2016-09-09 10:02:26 EDT
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 10:44:04 EDT
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 03:03:40 EDT
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 15:06:44 EDT
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.