Skip to content

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 ​

  1. firstly make sure go is installed
  2. make sure the machine has a valid kubeconfig that points to the correct cluster
bash
kubectl config current-context
  1. install the required dependency
bash
go mod tidy
  1. run it
bash
go run .