Better and more reliable regex for your team sed:
sed -i '/\s*resourceNames:\s*\[""\]/d' ./sa.yaml
where you just avoid []to avoid interpreting them as a range of characters, a list of characters, and instead of space it is better to use\s*
source
share