Skip to content

Commit a5827ae

Browse files
committed
fix IngressHost
1 parent f734ab9 commit a5827ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)