Skip to content

Commit

Permalink
added scheduling strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Jul 5, 2019
1 parent 3b16d1e commit 37ee080
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions provider/ecs/ecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,10 @@ func (e *ECS) CreateService(d service.Deploy) error {
},
}

if d.SchedulingStrategy != "" {
input.SetSchedulingStrategy(d.SchedulingStrategy)
}

if strings.ToLower(d.ServiceProtocol) != "none" {
input.SetLoadBalancers([]*ecs.LoadBalancer{
{
Expand Down
1 change: 1 addition & 0 deletions service/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type Deploy struct {
Volumes []DeployVolume `json:"volumes" yaml:"volumes"`
EnvNamespace string `json:"envNamespace" yaml:"envNamespace"`
ServiceRegistry string `json:"serviceRegistry" yaml:"serviceRegistry"`
SchedulingStrategy string `json:"schedulingStrategy" yaml:"schedulingStrategy"`
}
type DeployContainer struct {
ContainerName string `json:"containerName" yaml:"containerName" binding:"required"`
Expand Down

0 comments on commit 37ee080

Please sign in to comment.