We want deployers to be able to run a MediaWiki REPL inside kubernetes.
The way to do this is as follows:
- read wmfMasterDatacenter from etcd
- Find which pods are running right now in mw-debug in that dc, and pick one at random
- Run, as superuser, KUBECONFIG=/etc/kubernetes/admin-eqiad.config kubectl -n mw-debug exec <pod> -c mediawiki-pinkunicorn-app -ti -- php /srv/mediawiki/multiversion/MWScript.php shell.php --wiki <wiki>
This would limit deployers to just execute this script as superusers and not have the larger issues related to being able to execute random scripts, which is a larger problem to solve.