#+NAME 162 stable 41 incubator 206 total charts
ls stable | wc -l
ls incubator | wc -l
echo ===
ls stable incubator | wc -l
162 41 === 206
#+NAME serviceAccount is a main value here
grep -r serviceAccount: ./stable/ ./incubator/ | grep serviceAccount | grep :serviceAccount | awk -F: '{print "file:"$1"::serviceAccount"}'
#grep -r serviceAccount: ./stable/ ./incubator/ | grep values
Inspecting this list directly shows that other than etcd-operator, simply supplying a service account name, and create set to false will likely allow us to use a service account per chart.
grep -r serviceAccount: ./stable/ ./incubator/ | grep serviceAccount | grep :serviceAccount | awk -F: '{print $1}'| xargs -n 1 grep -H -A10 serviceAccount: | sed /\#/d | grep -B2 name: | grep -v '\-\-'
Let’s remove etc-operator and anything else that’s not simple for now:
grep -r serviceAccount: ./stable/ ./incubator/ | grep serviceAccount | grep :serviceAccount \
| awk -F: '{print $1}'| xargs -n 1 grep -H -A10 serviceAccount: \
| sed /\#/d | grep -B2 name: | grep -v '\-\-' | grep :serviceAccount: | awk -F: '{print $1}' | sed s:values.yaml::
#+NAME look for service account
grep -r serviceAccount: ./stable/ ./incubator/ | grep -v ^serviceAccount | grep -v :serviceAccount | awk -F: '{print "file:"$1"::serviceAccount"}'