Skip to content

Commit

Permalink
fix http scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
tedim52 committed Oct 8, 2024
1 parent c08be32 commit 666bc03
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kardinal-cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const (
kloudKontrolAPIHost = kloudKontrolHost + "/api"

tcpProtocol = "tcp"
httpSchme = "http"
httpsScheme = httpSchme + "s"
httpScheme = "http"
httpsScheme = httpScheme + "s"

deleteAllDevFlowsFlagName = "all"

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -1150,7 +1150,7 @@ func getKontrolBaseURLForUI() (string, error) {
)

if devMode {
scheme = httpSchme
scheme = httpScheme
host = localFrontendHost
} else {
scheme = httpsScheme
Expand All @@ -1169,7 +1169,7 @@ func getKontrolBaseURLForCLI() (string, error) {
)

if devMode {
scheme = httpSchme
scheme = httpScheme
host = localKontrolAPIHost
} else {
scheme = httpsScheme
Expand All @@ -1194,7 +1194,7 @@ func getKontrolBaseURLForManager() (string, error) {

switch kontrolLocation {
case kontrol.KontrolLocationLocal:
scheme = httpSchme
scheme = httpScheme
host = localMinikubeKontrolAPIHost
case kontrol.KontrolLocationKloud:
scheme = httpsScheme
Expand Down

0 comments on commit 666bc03

Please sign in to comment.