See apiserver/facades/controller/crosscontroller/crosscontroller.go
We register with this func:
func() ([]string, string, error) { return common.StateControllerInfo(st) }
In that method we call the common apiAddresses function, which in turn uses APIHostPortsForAgents.
We should contrive a function that calls APIHostPortsForClients since we specifically know that this is a cross-controller API.
See apiserver/ facades/ controller/ crosscontroller /crosscontrolle r.go
We register with this func:
func() ([]string, string, error) { StateController Info(st)
return common.
}
In that method we call the common apiAddresses function, which in turn uses APIHostPortsFor Agents.
We should contrive a function that calls APIHostPortsFor Clients since we specifically know that this is a cross-controller API.