Skip to content

Commit

Permalink
Update current feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Feb 16, 2024
1 parent 2fce4ca commit 0b8c001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions labs/3_policies/ex3-scc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ do
for sa in $SA default
do
if kubectl --as=system:serviceaccount:"$NS":$sa auth can-i use scc/$policy; then
ink -y "Remove scc/$policy from $sa"
ink -y "Remove scc/$policy for serviceaccount $sa in namespace $NS"
oc adm policy remove-scc-from-user $policy -z $sa
else
ink -y "User '$sa' cannot use scc/$policy"
ink -y "Serviceaccount '$sa' cannot use scc/$policy"
fi
done
done
Expand Down

0 comments on commit 0b8c001

Please sign in to comment.