Skip to content

Commit

Permalink
Add unsupported messages for websockets for Azure and GCP.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm committed Jun 1, 2023
1 parent 87be86b commit 31584f2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cloud/azure/deploy/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ func (d *DeployServer) Up(request *deploy.DeployUpRequest, stream deploy.DeployS
}
}()

// Get Websockets
websockets := lo.Filter[*deploy.Resource](request.Spec.Resources, func(item *deploy.Resource, index int) bool {
return item.GetWebsocket() != nil
})
if len(websockets) > 0 {
return fmt.Errorf("websockets currently in preview not supported in the Azure provider.")
}

// Get Execution units
executionUnits := lo.Filter[*deploy.Resource](request.Spec.Resources, func(item *deploy.Resource, index int) bool {
return item.GetExecutionUnit() != nil
Expand Down
8 changes: 8 additions & 0 deletions cloud/gcp/deploy/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ func (d *DeployServer) Up(request *deploy.DeployUpRequest, stream deploy.DeployS
}
}()

// Get Websockets
websockets := lo.Filter[*deploy.Resource](request.Spec.Resources, func(item *deploy.Resource, index int) bool {
return item.GetWebsocket() != nil
})
if len(websockets) > 0 {
return fmt.Errorf("websockets currently in preview not supported in the GCP provider.")
}

project, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{
ProjectId: &details.ProjectId,
}, nil)
Expand Down

0 comments on commit 31584f2

Please sign in to comment.