Skip to content

Commit

Permalink
fixup! Refactor exposure to have an ability share host among components
Browse files Browse the repository at this point in the history
  • Loading branch information
sleshchenko committed Apr 7, 2021
1 parent 8a876e0 commit 2746c20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/deploy/expose/expose.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
package expose

import (
routev1 "github.com/openshift/api/route/v1"
"strings"

routev1 "github.com/openshift/api/route/v1"

orgv1 "github.com/eclipse-che/che-operator/pkg/apis/org/v1"
"github.com/eclipse-che/che-operator/pkg/deploy"
"github.com/eclipse-che/che-operator/pkg/deploy/gateway"
Expand Down Expand Up @@ -85,7 +86,7 @@ func ExposeWithHostPath(
} else {
// the empty string for a host is intentional here - we let OpenShift decide on the hostname
done, err := deploy.SyncRouteToCluster(deployContext, component, host, path, component, 8080, routeCustomSettings, component)
if done {
if !done {
logrus.Infof("Waiting on route '%s' to be ready", component)
if err != nil {
logrus.Error(err)
Expand Down

0 comments on commit 2746c20

Please sign in to comment.