Skip to content

Commit

Permalink
Merge pull request #416 from codefresh-io/CR-10638
Browse files Browse the repository at this point in the history
Cr 10638
  • Loading branch information
kim-codefresh authored Apr 11, 2022
2 parents 1901e0f + 45c7769 commit 24ac3f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.38.1
0.39.1
6 changes: 3 additions & 3 deletions pkg/codefresh/codefresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (c *codefresh) AppProxy(ctx context.Context, runtime string, insecure bool)
return nil, fmt.Errorf("failed to create app-proxy client for runtime %s: %w", runtime, err)
}

if rt.IngressHost == nil || *rt.IngressHost == "" {
if rt.IngressHost == "" {
return nil, fmt.Errorf("failed to create app-proxy client for runtime %s: runtime does not have ingressHost configured", runtime)
}

Expand All @@ -142,14 +142,14 @@ func (c *codefresh) AppProxy(ctx context.Context, runtime string, insecure bool)
}

return newClient(&ClientOptions{
Host: *rt.IngressHost,
Host: rt.IngressHost,
Auth: AuthOptions{Token: c.token},
Client: httpClient,
graphqlPath: "/app-proxy/api/graphql",
}), nil
}

func (c *codefresh) AppProxyClusters () IAppProxyClustersAPI {
func (c *codefresh) AppProxyClusters() IAppProxyClustersAPI {
return newAppProxyClustersAPI(c)
}

Expand Down

0 comments on commit 24ac3f6

Please sign in to comment.