Skip to content

Commit

Permalink
always deploy gateway
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Vala <mvala@redhat.com>
  • Loading branch information
sparkoo committed Sep 14, 2021
1 parent 5879fec commit 24495e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/deploy/gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ var (

// SyncGatewayToCluster installs or deletes the gateway based on the custom resource configuration
func SyncGatewayToCluster(deployContext *deploy.DeployContext) error {
if util.GetServerExposureStrategy(deployContext.CheCluster) == "single-host" &&
(deploy.GetSingleHostExposureType(deployContext.CheCluster) == "gateway") {
if (util.GetServerExposureStrategy(deployContext.CheCluster) == "single-host" &&
deploy.GetSingleHostExposureType(deployContext.CheCluster) == "gateway") ||
deployContext.CheCluster.Spec.DevWorkspace.Enable {
return syncAll(deployContext)
}

Expand Down

0 comments on commit 24495e1

Please sign in to comment.