Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-2209

Enhance oc cli tool to enable selecting resources by annotations

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • oc
    • False
    • False

        # Proposed title of this feature request Enhance oc cli tool to enable selecting resources by annotations (like label selector)

      1. What is the nature and description of the request? It would be very useful to select openshift resources by annotations, as it is already possible for labels:

      oc get --help
      ...
      -l, --selector='': Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)
      --show-labels=false: When printing, show all labels as the last column (default hide labels column)

      Would be great if you could provide a selector for annotations and "--show-annotations" too.

      1. Why you need this? (List the business requirements here)

      This would make our work much easier and more efficient. There are lots of use cases where resources have to be searched or managed depending on their annotations. The "label selector" feature is very useful and often used, so the "annotation selector" feature would probably become very popular too.

      1. List any affected packages or components. oc cli

              gausingh@redhat.com Gaurav Singh
              rhn-support-akanekar Ankita Kanekar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: