Skip to content

Commit

Permalink
Merge pull request #418 from codefresh-io/update-models-gen
Browse files Browse the repository at this point in the history
wip
  • Loading branch information
kim-codefresh authored Apr 14, 2022
2 parents 6f07a1b + 93485f5 commit 4f50f52
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.41.0
0.41.1
4 changes: 2 additions & 2 deletions pkg/codefresh/codefresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,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 == "" {
if rt.IngressHost == nil || *rt.IngressHost == "" {
return nil, fmt.Errorf("failed to create app-proxy client for runtime %s: runtime does not have ingressHost configured", runtime)
}

Expand All @@ -143,7 +143,7 @@ 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",
Expand Down
4 changes: 2 additions & 2 deletions pkg/codefresh/model/app-proxy/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/codefresh/model/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4f50f52

Please sign in to comment.