From 666bc035ba07f5af72db3804b28d9008c701a08e Mon Sep 17 00:00:00 2001 From: Tedi Mitiku Date: Wed, 9 Oct 2024 01:04:13 +0900 Subject: [PATCH] fix http scheme --- kardinal-cli/cmd/root.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kardinal-cli/cmd/root.go b/kardinal-cli/cmd/root.go index 4531d60..1469c0d 100644 --- a/kardinal-cli/cmd/root.go +++ b/kardinal-cli/cmd/root.go @@ -55,8 +55,8 @@ const ( kloudKontrolAPIHost = kloudKontrolHost + "/api" tcpProtocol = "tcp" - httpSchme = "http" - httpsScheme = httpSchme + "s" + httpScheme = "http" + httpsScheme = httpScheme + "s" deleteAllDevFlowsFlagName = "all" @@ -456,7 +456,7 @@ func isPortOpenAndHTTP(localPortStr string) error { } // Check if there is an HTTP server running on the port - httpServerAddr := fmt.Sprintf("%s://%s", httpSchme, localServiceAddress) + httpServerAddr := fmt.Sprintf("%s://%s", httpScheme, localServiceAddress) resp, err := client.Get(httpServerAddr) if err != nil { return stacktrace.Propagate(err, "failing to call an HTTP server on '%s'", httpServerAddr) @@ -1150,7 +1150,7 @@ func getKontrolBaseURLForUI() (string, error) { ) if devMode { - scheme = httpSchme + scheme = httpScheme host = localFrontendHost } else { scheme = httpsScheme @@ -1169,7 +1169,7 @@ func getKontrolBaseURLForCLI() (string, error) { ) if devMode { - scheme = httpSchme + scheme = httpScheme host = localKontrolAPIHost } else { scheme = httpsScheme @@ -1194,7 +1194,7 @@ func getKontrolBaseURLForManager() (string, error) { switch kontrolLocation { case kontrol.KontrolLocationLocal: - scheme = httpSchme + scheme = httpScheme host = localMinikubeKontrolAPIHost case kontrol.KontrolLocationKloud: scheme = httpsScheme