Drop initial code
This commit is contained in:
11
deploy/rig-operator/misc/patch-default-sa
Executable file
11
deploy/rig-operator/misc/patch-default-sa
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copy script into /etc/cron.daily/
|
||||
# Make it executable chmod 0755
|
||||
|
||||
# TODO: Update path to actual kubeconfig
|
||||
export KUBECONFIG=/home/rancher/.kube/config
|
||||
|
||||
for n in $(kubectl get namespaces -A -o=jsonpath="{.items[*]['metadata.name']}"); do
|
||||
kubectl patch serviceaccount default -p '{"automountServiceAccountToken": false}' -n $n
|
||||
done
|
||||
Reference in New Issue
Block a user