-
Bug
-
Resolution: Done
-
Minor
-
None
-
4.14.0
-
Quality / Stability / Reliability
-
False
-
-
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: