Bug 1351044

Summary: Customize template categories and icons in webconsole
Product: OpenShift Container Platform Reporter: Jaspreet Kaur <jkaur>
Component: RFEAssignee: Jessica Forrester <jforrest>
Status: CLOSED ERRATA QA Contact: Johnny Liu <jialiu>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.2.0CC: aos-bugs, jforrest, jokerman, mmccomas, steven, tdawson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-18 12:41:16 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:
Embargoed:

Description Jaspreet Kaur 2016-06-29 06:10:19 UTC
3. What is the nature and description of the request?  

At the moment you have a set of predifined categories in the Openshift GUI (PHP, JBoss, NodeJS,...).  We would like to be able to add our own categories, for example Elasticsearch).  For those categories we would also want to be able to change the icon for those custom categories.

4. Why does the customer need this? (List the business requirements here)  

We would like to be able to highlight specific categories in the same way as current categories are highlighted at the moment.  Otherwise all our custom made templates will end up in the "other' category.

5. How would the customer like to achieve this? (List the functional requirements here)

Custom categories with custom icons.
      
6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented. 

Add specific tags to custom templates and have them grouped into custom categories in the GUI (which their own logo).

7. Is there already an existing RFE upstream or in Red Hat Bugzilla?  

No

8. Does the customer have any specific timeline dependencies and which release would they like to target ?

Near time
      
9. Is the sales team involved in this request and do they have any additional input? 

No

      
10. List any affected packages or components.  
      
11. Would the customer be able to assist in testing this functionality if implemented?  
Yes

Comment 2 Jessica Forrester 2016-07-05 13:33:51 UTC
custom icons should already be supported. On your imagestreams / templates you just define an iconClass, you can then provide custom css using our extension framework to provide those icons.

Example of iconClass on an image stream tag https://github.com/openshift/origin/blob/master/examples/image-streams/image-streams-centos7.json#L18

Example of iconClass on a template https://github.com/openshift/origin/blob/master/examples/sample-app/application-template-stibuild.json#L9

Extension framework instructions for loading custom CSS https://docs.openshift.com/enterprise/3.2/install_config/web_console_customization.html#loading-custom-scripts-and-stylesheets

Or you can refer to any of our existing iconClass icons https://github.com/openshift/origin-web-console/blob/master/app/styles/_openshift-logos-icon.less#L31

or anything in fontawesome (by setting iconClass to 'fa fa-whatever')  http://fontawesome.io/icons/   some icons may not be available depending on the version of enterprise

Comment 3 Jaspreet Kaur 2016-07-08 05:49:28 UTC
Thanks for the information. it works.

How can the customer create custom categories ?

Regards,
Jaspreet

Comment 4 Jessica Forrester 2016-07-11 14:38:22 UTC
Custom categories aren't supported.  The trello card https://trello.com/c/62HPyu65 is being used to track that RFE.

Comment 6 errata-xmlrpc 2017-01-18 12:41:16 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:0066