Hide Forgot
Description of problem: By specifying -L flag in oc get <resource> command, we expect the existing labels to be listed seprately in columns for this resource, but this currently only work for po,rc and svc, and print empty grids for build,bc,dc and is origin/cli M M Version-Release number of selected component (if applicable): oc v1.1-428-ged29520 kubernetes v1.1.0-origin-1107-g4c8e6f4 Steps to Reproduce: 1. oc login openshift, create a new project 2. oc create -f https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json, wait for build completes and app pods running 3. Validate if oc get <resource> -L <label1>,<label2>,... can list labels in specified columns successfully: take buildconfig as example: <resource>=bc: $ oc describe bc ruby-sample-build | grep -i labels Labels: name=ruby-sample-build,template=application-template-stibuild $ oc get bc -L name,template NAME TYPE FROM LATEST NAME TEMPLATE ruby-sample-build Source Git 1 Actual Result: oc get <resource> -L not be able to list existing labels seprately in columns for build,bc,dc,is oc get <resource> -L is only able to list existing labels seprately in columns for po,rc,svc (see more details in "additional info") Expected Result: oc get <resource> -L should be able to list existing labels seprately in columns for build,bc,dc,is successfully Additional info: The behavior of the passed scenarios: when <resource>=po: $ oc describe po frontend-1-x9n43 | grep -i labels Labels: deployment=frontend-1,deploymentconfig=frontend,name=frontend $ oc get po frontend-1-x9n43 -L deployment,deploymentconfig NAME READY STATUS RESTARTS AGE DEPLOYMENT DEPLOYMENTCONFIG frontend-1-x9n43 1/1 Running 0 57m frontend-1 frontend
Fixed in master.
Verified on origin env , issue fixed well, thanks! oc v1.3.0-alpha.2-368-g6fe8452 kubernetes v1.3.0-alpha.3-599-g2746284