Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1233511

Summary: Filter the annotations that are shown
Product: OpenShift Container Platform Reporter: Tomas Schlosser <tschloss>
Component: Management ConsoleAssignee: Jessica Forrester <jforrest>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.0.0CC: aos-bugs, jliggitt, jokerman, libra-bugs, libra-onpremise-devel, mmccomas, tdawson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-12 19:04:29 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 Tomas Schlosser 2015-06-19 05:02:39 UTC
There are very long values that are not very well readable from web console and also no very useful, namely:

openshift.io/encoded-deployment-config (deployment)
kubernetes.io/created-by (pod)

Comment 2 Yanping Zhang 2015-06-19 06:30:46 UTC
$oc version
oc v3.0.0.0-25-g235b0e7
kubernetes v0.17.1-804-g496be63
QE have checked on the latest build, when create app from source repo on web console, the created pod would have a label "generatedby:OpenShiftWebConsole" automatically. In the filter it would show label "generatedby" for pod, it's acceptable.
There is another lable "openshift.io/deployment-config.name" for deployments when do deploy from deploymentconfig, it's a little long, shorter would be better, so suggest this be a feature request bug.

Comment 3 Jessica Forrester 2016-11-17 18:36:01 UTC
Most annotations are system information, we make them available for debugging purposes, and we don't want to hide specific annotations. However, to help deal with very long annotation values like the encoded deployment config we will add truncation support that allows for Show All and Collapse.

Comment 5 Troy Dawson 2017-01-20 23:19:28 UTC
This has been merged into ocp and is in OCP v3.5.0.7 or newer.

Comment 6 Yadan Pei 2017-01-22 01:50:18 UTC
Tested against v3.5.0.7

1. Create DC which has long value for annotation openshift.io/encoded-deployment-config:
$ oc create -f https://raw.githubusercontent.com/openshift/origin/pkg/api/graph/test/available-deployment.yaml
2.Go to Applications -> Deployments ->  example -> example-1, click on "Show Annotations", the long value of openshift.io/encoded-deployment-config is partially displayed on page with a "See all" option(to view complete values) and "Collapse" option(to truncate the long annotation value)

Move to VERIFIED

Comment 8 errata-xmlrpc 2017-04-12 19:04:29 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