-
Story
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
None
Add scripts folder to the network-tools, maybe split them into dev-only/customers-available. Than add customers-available scripts to the image.
The reason is to share tools we use in 2 ways:
- available from the repo
- available from the repo and from the must-gather command
Let's have a script which when invoked on OCP with
`oc adm must-gather --image <network-tools> – <raft-leaders.sh>` gives me the nbdb & sbdb leader in the cluster at any given time.
Currently its annoying to have to manually remember the cluster status command and run it inside the right pods
Second part of this task is to create a script that uses the former script to get the leader but takes the argument that we want i.e the nbctl/sbctl command we want to run and gives us the output.
I do wish we could just run these as simple bash scripts without having to rely on the oc adm must-gather to create a pod that runs this. Maybe adding a flag to must-gather that says "run this command locally" instead of creating a pod and running it inside that makes sense?