zero: managed mode controller (#4459)

This commit is contained in:
Denis Mishin 2023-08-17 14:22:52 -04:00 committed by GitHub
parent 3b65049d2f
commit d5ef01d2f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 417 additions and 2 deletions

View file

@ -0,0 +1,21 @@
//go:build !release
package cmd
import "os"
func getConnectAPIEndpoint() string {
connectServerEndpoint := os.Getenv("CONNECT_SERVER_ENDPOINT")
if connectServerEndpoint == "" {
connectServerEndpoint = "http://localhost:8721"
}
return connectServerEndpoint
}
func getClusterAPIEndpoint() string {
clusterAPIEndpoint := os.Getenv("CLUSTER_API_ENDPOINT")
if clusterAPIEndpoint == "" {
clusterAPIEndpoint = "http://localhost:8720/cluster/v1"
}
return clusterAPIEndpoint
}