Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-18790

The command in the instructions not works as expected for rule ocp4-imagestream-sets-schedule

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Low
    • No
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

       

      The instructions of rule ocp4-imagestream-sets-schedule indicates below command could be used. However, it is not working as expected:
      $ oc get imagestream  --all-namespaces -o jsonpath='[.items[]] | map(.spec.tags[]?.importPolicy.scheduled != true) | any'
      [.items[]] | map(.spec.tags[]?.importPolicy.scheduled != true) | any
      
      
      $ oc get rules ocp4-imagestream-sets-schedule -o=jsonpath={.instructions}
      To list all the imagestreams and identify which imagestream tags are
      configured to periodically check for updates (imagePolicy = { scheduled: true }), run the following command:
      oc get imagestream  --all-namespaces -o jsonpath='[.items[]] | map(.spec.tags[]?.importPolicy.scheduled != true) | any'
      Alternatively, to view a list of ImageStreams that do not schedule updates,
      run:
      oc get imagestreams -A -ojson | jq '.items[] | select(.spec.tags[]?.importPolicy.scheduled != true) | .metadata.name' | sort | uniq
      

      Version-Release number of selected component (if applicable):

      4.14.0-0.nightly-2023-09-09-164123

      How reproducible:

      Always

      Steps to Reproduce:

      1.Install Compliance operator compliance-operator.v1.2.0
      2.Check the instructions for rule ocp4-imagestream-sets-schedule
      

      Actual results:

      The command in the instructions not works as expected for rule rule ocp4-imagestream-sets-schedule

      Expected results:

      The command in the instructions should work as expected for rule rule ocp4-imagestream-sets-schedule

      Additional info:

       

              Unassigned Unassigned
              xiyuan@redhat.com Xiaojie Yuan
              None
              None
              Xiaojie Yuan Xiaojie Yuan
              None
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: