diff --git a/VERSION b/VERSION index 72a8a63..9ed317f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.41.0 +0.41.1 diff --git a/pkg/codefresh/codefresh.go b/pkg/codefresh/codefresh.go index ccde0a9..4a4ff0f 100644 --- a/pkg/codefresh/codefresh.go +++ b/pkg/codefresh/codefresh.go @@ -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) } @@ -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", diff --git a/pkg/codefresh/model/app-proxy/models_gen.go b/pkg/codefresh/model/app-proxy/models_gen.go index 088bcc2..c7d2694 100644 --- a/pkg/codefresh/model/app-proxy/models_gen.go +++ b/pkg/codefresh/model/app-proxy/models_gen.go @@ -4216,7 +4216,7 @@ type Runtime struct { // K8s cluster where the runtime is running Cluster *string `json:"cluster"` // Ingress host of the runtime - IngressHost string `json:"ingressHost"` + IngressHost *string `json:"ingressHost"` // Ingress host of the runtime IngressClass *string `json:"ingressClass"` // Runtime version @@ -4228,7 +4228,7 @@ type Runtime struct { // Installation Status InstallationStatus InstallationStatus `json:"installationStatus"` // Repo URL with optional path and branch info - Repo string `json:"repo"` + Repo *string `json:"repo"` // Clusters managed by this runtime ManagedClusters []*Cluster `json:"managedClusters"` // Total number of clusters managed by this runtime diff --git a/pkg/codefresh/model/models_gen.go b/pkg/codefresh/model/models_gen.go index 8d3d476..eb338b0 100644 --- a/pkg/codefresh/model/models_gen.go +++ b/pkg/codefresh/model/models_gen.go @@ -4300,7 +4300,7 @@ type Runtime struct { // K8s cluster where the runtime is running Cluster *string `json:"cluster"` // Ingress host of the runtime - IngressHost string `json:"ingressHost"` + IngressHost *string `json:"ingressHost"` // Ingress host of the runtime IngressClass *string `json:"ingressClass"` // Runtime version @@ -4312,7 +4312,7 @@ type Runtime struct { // Installation Status InstallationStatus InstallationStatus `json:"installationStatus"` // Repo URL with optional path and branch info - Repo string `json:"repo"` + Repo *string `json:"repo"` // Clusters managed by this runtime ManagedClusters []*Cluster `json:"managedClusters"` // Total number of clusters managed by this runtime