Skip to content

Commit

Permalink
Remove platform_infrastructure.NewMoveClustersByTypeParams entry
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardomarinelli committed Oct 14, 2024
1 parent 7d3cc67 commit 9a53596
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion pkg/api/platformapi/allocatorapi/vacate.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,6 @@ func newMoveClusterParams(params *VacateClusterParams) (*platform_infrastructure
WithAllocatorID(params.ID).
WithAllocatorDown(params.AllocatorDown).
WithContext(api.WithRegion(context.Background(), params.Region)).
WithForceMove(params.ForceMove).
WithBody(req)

if len(req.ElasticsearchClusters) > 0 {
Expand Down
2 changes: 0 additions & 2 deletions pkg/api/platformapi/allocatorapi/vacate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1295,13 +1295,11 @@ func Test_newMoveClusterParams(t *testing.T) {
Kind: "elasticsearch",
Output: output.NewDevice(new(bytes.Buffer)),
AllocatorDown: ec.Bool(false),
ForceMove: ec.Bool(true),
}},
want: platform_infrastructure.NewMoveClustersByTypeParams().
WithAllocatorID("allocator-1").
WithClusterType(util.Elasticsearch).
WithAllocatorDown(ec.Bool(false)).
WithForceMove(ec.Bool(true)).
WithContext(api.WithRegion(context.Background(), "us-east-1")).
WithBody(&models.MoveClustersRequest{
ElasticsearchClusters: []*models.MoveElasticsearchClusterConfiguration{
Expand Down

0 comments on commit 9a53596

Please sign in to comment.