Updated check to pass if flag isn't set (#379)

pull/377/head^2
mwwolters 5 years ago committed by Liz Rice
parent f8b2f6c841
commit 787bf6ca4d

@ -441,12 +441,15 @@ groups:
text: "Ensure that the admission control plugin ServiceAccount is set(Scored)"
audit: "ps -ef | grep $apiserverbin | grep -v grep"
tests:
bin_op: or
test_items:
- flag: "--enable-admission-plugins"
compare:
op: has
value: "ServiceAccount"
set: true
- flag: "--enable-admission-plugins"
set: false
remediation: |
Follow the documentation and create ServiceAccount objects as per your environment.
Then, edit the API server pod specification file $apiserverconf

@ -445,12 +445,15 @@ groups:
text: "Ensure that the admission control plugin ServiceAccount is set(Scored)"
audit: "ps -ef | grep $apiserverbin | grep -v grep"
tests:
bin_op: or
test_items:
- flag: "--enable-admission-plugins"
compare:
op: has
value: "ServiceAccount"
set: true
- flag: "--enable-admission-plugins"
set: false
remediation: |
Follow the documentation and create ServiceAccount objects as per your environment.
Then, edit the API server pod specification file $apiserverconf

Loading…
Cancel
Save