SV-257570r961677_rule
V-257570
SRG-APP-000454-CTR-001110
CNTR-OS-000880
CAT II
10
Enable the image pruner to automate the pruning of images from the cluster by executing the following:
oc patch imagepruners.imageregistry.operator.openshift.io/cluster --type=merge -p '{"spec":{"suspend":false}}'
For additional details on configuring the image pruner operator, refer to the following document:
https://docs.openshift.com/container-platform/4.8/applications/pruning-objects.html#pruning-images_pruning-objects
Ensure the imagepruner is configured and is not in a suspended state by executing the following:
oc get imagepruners.imageregistry.operator.openshift.io/cluster -o jsonpath='{.spec}{"\n"}'
Review the settings. If "suspend" is set to "true", this is a finding.
V-257570
False
CNTR-OS-000880
Ensure the imagepruner is configured and is not in a suspended state by executing the following:
oc get imagepruners.imageregistry.operator.openshift.io/cluster -o jsonpath='{.spec}{"\n"}'
Review the settings. If "suspend" is set to "true", this is a finding.
M
5547