Skip to content

Commit

Permalink
Fix dependencies on cli/dev + remove message to restart odo dev after…
Browse files Browse the repository at this point in the history
… devfile.yaml changes
  • Loading branch information
feloy committed Jun 28, 2022
1 parent 88db605 commit 2c4fd9d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/odo/cli/dev/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"io"
"os"
"path/filepath"
"reflect"

"github.com/spf13/cobra"

Expand Down Expand Up @@ -261,10 +260,6 @@ func (o *Handler) regenerateComponentAdapterFromWatchParams(parameters watch.Wat
return nil, err
}

if !reflect.DeepEqual(parameters.InitialDevfileObj, devObj) {
log.Warningf("devfile.yaml has been changed; please restart the `odo dev` command\n\n")
}

platformContext := kubernetes.KubernetesContext{
Namespace: parameters.EnvSpecificInfo.GetNamespace(),
}
Expand Down Expand Up @@ -316,7 +311,9 @@ It forwards endpoints with exposure values 'public' or 'internal' to a port on l
clientset.INIT,
clientset.KUBERNETES,
clientset.PORT_FORWARD,
clientset.PREFERENCE,
clientset.STATE,
clientset.WATCH,
)
// Add a defined annotation in order to appear in the help menu
devCmd.Annotations["command"] = "main"
Expand Down

0 comments on commit 2c4fd9d

Please sign in to comment.