HarrisKirk / blue-green-dreams

2 stars 1 forks source link

Addition to switch view, show target cluster if set #126

Open chrissound opened 9 months ago

chrissound commented 9 months ago

I have tested this pr the deploy_test which worked successfully. This implements #118.

Here are the commands I used to test the functionality. I'm writing them from memory so they might not be 100% exactly what I used but though it would be useful to include:

# create switch and cluster
bgdctl deploy --keep christest-a1
bgdctl switch create christest

# verify no target 
bgdctl switch view christest

# verify target 
bgdctl switch-set-ip-target-to-cluster christest christest-a1
bgdctl switch view christest

# cleanup
bgdctl rm christest-a1
bgdctl switch delete christest