Skip to content

Instantly share code, notes, and snippets.

@radikaled
Created August 26, 2021 02:26
Show Gist options
  • Save radikaled/d18a55daa0413ffb927eef25485c779b to your computer and use it in GitHub Desktop.
Save radikaled/d18a55daa0413ffb927eef25485c779b to your computer and use it in GitHub Desktop.
for i in `oc get complianceremediation -n openshift-compliance -o custom-columns=NAME:.metadata.name -l compliance.openshift.io/scan-name=rhcos4-moderate-worker | tail -n +2`
do
oc patch complianceremediation ${i} -n openshift-compliance -p '{"spec":{"apply":true}}' --type=merge
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment