Skip to content

Commit

Permalink
removing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
graham jenson committed Mar 20, 2020
1 parent 518daaa commit b291ec4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
7 changes: 3 additions & 4 deletions deployer/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import (
"context"
"fmt"

"github.com/coinbase/step/errors"
"github.com/coinbase/step/utils/to"

"github.com/coinbase/odin/aws"
"github.com/coinbase/odin/deployer/models"
"github.com/coinbase/step/errors"
"github.com/coinbase/step/utils/to"
)

// DeployHandler function type
Expand Down Expand Up @@ -91,7 +90,7 @@ func ValidateResources(awsc aws.Clients) DeployHandler {
}
}

release.UpdateWithResources(resources, awsc.ALBClient(release.AwsRegion, release.AwsAccountID, assumedRole))
release.UpdateWithResources(resources)

return release, nil
}
Expand Down
2 changes: 1 addition & 1 deletion deployer/models/release_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (release *Release) ValidateResources(resources *ReleaseResources) error {
}

// UpdateWithResources returns
func (release *Release) UpdateWithResources(resources *ReleaseResources, albc aws.ALBAPI) {
func (release *Release) UpdateWithResources(resources *ReleaseResources) {
// Assign PreDesiredCapacity
// Assign ServiceResourceName

Expand Down
2 changes: 1 addition & 1 deletion deployer/models/release_resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func Test_Release_UpdateWithResources_Works(t *testing.T) {
sm, err := r.FetchResources(awsc.ASG, awsc.EC2, awsc.ELB, awsc.ALB, awsc.IAM, awsc.SNS)
assert.NoError(t, err)

r.UpdateWithResources(sm, awsc.ALB)
r.UpdateWithResources(sm)
}

func Test_Release_FetchResources_Stores_WaitForDetach(t *testing.T) {
Expand Down
6 changes: 2 additions & 4 deletions deployer/models/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import (

"github.com/aws/aws-sdk-go/service/autoscaling"
"github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface"

"github.com/coinbase/step/utils/is"
"github.com/coinbase/step/utils/to"

"github.com/coinbase/odin/aws"
"github.com/coinbase/odin/aws/alb"
"github.com/coinbase/odin/aws/asg"
Expand All @@ -19,6 +15,8 @@ import (
"github.com/coinbase/odin/aws/lc"
"github.com/coinbase/odin/aws/pg"
"github.com/coinbase/odin/aws/sg"
"github.com/coinbase/step/utils/is"
"github.com/coinbase/step/utils/to"
)

// HealthReport is built to make log lines like:
Expand Down

0 comments on commit b291ec4

Please sign in to comment.