Description of problem: oc get/describe/new-app not display newlines well when template description contains newlines. Version-Release number of selected component (if applicable): oc v3.3.0.25+d2ac65e-dirty kubernetes v1.3.0+507d3a7 features: Basic-Auth GSSAPI Kerberos SPNEGO How reproducible: Always Steps to Reproduce: 1. Create a template which contains newline(s) in description $ oc create -f https://raw.githubusercontent.com/openshift/origin/b1983988/examples/jenkins/jenkins-ephemeral-template.json Download the file, will see it has newline in description: $ cat jenkins-ephemeral-template.json "annotations": { "description": "Jenkins service, without persistent storage.\nWARNING: Any data stored will be lost upon pod destruction ... 2. $ oc get template jenkins-ephemeral NAME DESCRIPTION PARAMETERS OBJECTS jenkins-ephemeral Jenkins service, without persistent storage. WARNING: Any data stored will be... 6 (1 generated) 6 3. $ oc describe template jenkins-ephemeral Name: jenkins-ephemeral Namespace: xxia-proj Created: 27 seconds ago Labels: <none> Description: Jenkins service, without persistent storage. WARNING: Any data stored will be lost upon pod destruction. Only use this template for testing ... 4. $ oc new-app jenkins-ephemeral --> Deploying template "jenkins-ephemeral" in project "openshift" jenkins-ephemeral --------- Jenkins service, without persistent storage. WARNING: Any data stored will be lost upon pod destruction. Only use this template for testing ... A Jenkins service has been created in your project. The username/password are admin/0Sbiw6SF45Paksnv. The tutorial at https://github.com/openshift/origin/blob/master/examples/jenkins/README.md contains more information about using this template. * With parameters: * Jenkins Service Name=jenkins ...
Tested on OCP oc v3.4.0.26: Step 2 'oc get template jenkins-ephemeral' is fixed and merged in PR: https://github.com/openshift/ose/pull/462/commits/8df9d32cacc37c7e52c88ab3cf85f07f56a32cdc Step 3 and Step 4 is still reproduced, waiting for fix.
Related PR: https://github.com/openshift/origin/pull/12724
Verified in v3.5.0.26. Based on comment 0 steps, now step 3 shows: $ oc describe template jenkins-ephemeral ... Description: Jenkins service, without persistent storage. WARNING: Any data stored will be lost upon pod destruction. Only use this template for testing ... Step 4 shows: $ oc new-app jenkins-ephemeral ... jenkins-ephemeral --------- Jenkins service, without persistent storage. WARNING: Any data stored will be lost upon pod destruction. Only use this template for testing ... So oc get/describe/new-app now display newlines well when template description contains newlines.
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