Skip to content

Commit

Permalink
Fix wait app ready
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Apr 24, 2023
1 parent dc6dbc8 commit c9c4258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/dev/kubedev/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ func (o *DevClient) createComponents(ctx context.Context, parameters common.Push
}

// Check if endpoints changed in Devfile
portsToForward, err := libdevfile.GetDevfileContainerEndpointMapping(parameters.Devfile, parameters.StartOptions.Debug)
o.portsToForward, err = libdevfile.GetDevfileContainerEndpointMapping(parameters.Devfile, parameters.StartOptions.Debug)
if err != nil {
return false, err
}
o.portsChanged = !reflect.DeepEqual(portsToForward, o.portForwardClient.GetForwardedPorts())
o.portsChanged = !reflect.DeepEqual(o.portsToForward, o.portForwardClient.GetForwardedPorts())

if componentStatus.State == watch.StateReady && !o.portsChanged {
// If the deployment is already in Ready State, no need to continue
Expand Down

0 comments on commit c9c4258

Please sign in to comment.