m/c/metroctl: introduce proxyAddr parameter

This enables metroctl to interact with the cluster over a SOCKS5 proxy.

Change-Id: I73a59b01cecec7b5988ca57d7ff71179da260949
Reviewed-on: https://review.monogon.dev/c/monogon/+/830
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/metropolis/cli/metroctl/main.go b/metropolis/cli/metroctl/main.go
index d575c5b..9224598 100644
--- a/metropolis/cli/metroctl/main.go
+++ b/metropolis/cli/metroctl/main.go
@@ -14,12 +14,15 @@
 	// clusterEndpoints is a list of the targeted cluster's endpoints, used by
 	// commands that perform RPC on it.
 	clusterEndpoints []string
+	// proxyAddr is a SOCKS5 proxy address the cluster will be accessed through.
+	proxyAddr string
 }
 
 var flags metroctlFlags
 
 func init() {
 	rootCmd.PersistentFlags().StringArrayVar(&flags.clusterEndpoints, "endpoints", nil, "A list of the target cluster's endpoints.")
+	rootCmd.PersistentFlags().StringVar(&flags.proxyAddr, "proxy", "", "SOCKS5 proxy address")
 }
 
 func main() {