Do not use
use the bash script at boss-migration/find_dburl.sh
why
im not too familiar with bash scripting. it's hard to do proper error handling and logging with bash scripting. So i think it's dangerous to use that to mingle with production k8s cluster. thus writing in golang to make thing easier
how to run
- firstly make sure go is installed
- make sure the machine has a valid kubeconfig that points to the correct cluster
bash
kubectl config current-context- install the required dependency
bash
go mod tidy- run it
bash
go run .