Skip to content

Commit 24ac3f6

Browse files
Merge pull request #416 from codefresh-io/CR-10638
Cr 10638
2 parents 1901e0f + 45c7769 commit 24ac3f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.38.1
1+
0.39.1

pkg/codefresh/codefresh.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (c *codefresh) AppProxy(ctx context.Context, runtime string, insecure bool)
129129
return nil, fmt.Errorf("failed to create app-proxy client for runtime %s: %w", runtime, err)
130130
}
131131

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

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

144144
return newClient(&ClientOptions{
145-
Host: *rt.IngressHost,
145+
Host: rt.IngressHost,
146146
Auth: AuthOptions{Token: c.token},
147147
Client: httpClient,
148148
graphqlPath: "/app-proxy/api/graphql",
149149
}), nil
150150
}
151151

152-
func (c *codefresh) AppProxyClusters () IAppProxyClustersAPI {
152+
func (c *codefresh) AppProxyClusters() IAppProxyClustersAPI {
153153
return newAppProxyClustersAPI(c)
154154
}
155155

0 commit comments

Comments
 (0)