Bug 1274203 - [RFE] Support Checkboxes, Radio Buttons, Drop-down lists in Openshift Templates
Summary: [RFE] Support Checkboxes, Radio Buttons, Drop-down lists in Openshift Templates
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: RFE
Version: 3.7.0
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
: ---
Assignee: Jessica Forrester
QA Contact: Xiaoli Tian
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-22 09:02 UTC by Dave McCormick
Modified: 2021-06-10 11:02 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-05 15:47:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dave McCormick 2015-10-22 09:02:22 UTC
Description of problem:

The templating functionality included in Openshift v3 is a useful feature but lacks the power/flexibility that would make it great.

As an Openshift Systems Admininstrator, I would like to be able to offer a more complex set of templates for use by my various project teams.  In the present version I can create Text Box controls which can have a default value and translate into a variable to be used elsewhere in the template.

I would like better easier to use forms for other teams to fill out.  My urgent need is to provide multiple choice options that the developers choose from.  Some could be better expressed by checker boxes: -

e.g.
Client Technologies to include in Tomcat Application Image: -
| | Oracle DBA Driver
| | AppDynamics Agent
| | Terracotta Client
| | Spring Libs

In the case of some options, I would like to offer multiple choices for the value as either radio buttons or a select pull down list. e.g. :-

Version of Terracotta Client Required: -
O 3.4.1
O 3.5.2_2
O 3.7.10
(or a pull down list)

or 

Java Selection: -
O JRE 8
O JRE 7

The values selected for these controls could be mapped to variables - but in the case of the checker boxes the system would need to cater for an list of values.

There are various other common form elements, date/time pickers, multi-select list, colour picker, that could be useful in the creation of productive templates.

Template logic
--------------

Taking the idea a little further, then it would be extremely useful to be able to add logic to the template definition so that controls can be hidden or disabled based on the values of other controls, or that the data selections available can be changed.

e.g. If the '| | Oracle driver' checker box is selected then include the new form element text box 'Oracle Connection String: __________________' become visible and require a value.

e.g. If the 'Java Selection is 8' then only offer Terracotta version 3.7.10 in the pull down list of terracotta versions.

How reproducible:
Easy - does not exist.

Additional info:

Comment 3 Jessica Forrester 2018-01-02 12:58:43 UTC
With the service catalog you can get a little closer to what you want.  Templates do not have pick-lists (required for either checkboxes or radio buttons) and I don't anticipate us adding that.  But the service catalog APIs allow for JSON schema for the parameters, which means you can do things like simple pick-lists and password fields. You could either do this with the ansible service broker or your own broker.

There are still gaps from what is being asked for in this RFE. Particularly changing the inputs based on previous input selections.  You could potentially do this via Plans on a service class instead if there aren't too many combinations you are trying to support.

Comment 4 Steve Speicher 2018-01-05 15:47:34 UTC
Going to mark this as closed deferred since we've done all we can or plan to do for some time. There are a lot of things in this RFE that are complicated and not things we plan to support, like interdependent fields, etc.

Comment 5 hernan.david.hd@gmail.com 2019-02-19 16:54:32 UTC
In "Add to Project > Browse Catalog" you can find some templates using dropdown menu, radio and password and also a hidden "Advanced Options" buttons, 

The question is "how to do that?" it's not a new feature, Thanks

Comment 6 hernan.david.hd@gmail.com 2019-02-19 16:55:37 UTC
In "Add to Project > Browse Catalog" you can find some templates using dropdown menu, radio and password and also a hidden "Advanced Options" buttons, as HTTPD, Ruby.

The question is "how to do that?" it's not a new feature, Thanks


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