Skip to content

feat(templates): render min max config in cfn template#3461

Merged
mergify[bot] merged 10 commits intoaws:mainlinefrom
paragbhingre:deploymentConfiguration2
Apr 14, 2022
Merged

feat(templates): render min max config in cfn template#3461
mergify[bot] merged 10 commits intoaws:mainlinefrom
paragbhingre:deploymentConfiguration2

Conversation

@paragbhingre
Copy link
Copy Markdown
Contributor

@paragbhingre paragbhingre commented Apr 12, 2022

This PR resolves #3427

With this PR we build the logic to configure the values of MinimumHealthyPercent and MaximumPercent based on the deployment parameter in the service manifest

@paragbhingre paragbhingre requested a review from a team as a code owner April 12, 2022 23:44
@paragbhingre paragbhingre requested review from dannyrandall and removed request for a team April 12, 2022 23:44
@efekarakus efekarakus changed the title chore(templates): render min max config in cfn template feat(templates): render min max config in cfn template Apr 13, 2022
Comment thread internal/pkg/deploy/cloudformation/stack/transformers.go Outdated
Comment thread internal/pkg/deploy/cloudformation/stack/transformers.go Outdated
Comment thread internal/pkg/deploy/cloudformation/stack/backend_svc.go Outdated
Comment thread internal/pkg/manifest/testdata/backend-svc-customhealthcheck.yml Outdated
Comment thread internal/pkg/deploy/cloudformation/stack/transformers.go Outdated
Comment thread internal/pkg/deploy/cloudformation/stack/transformers.go Outdated
Comment thread internal/pkg/deploy/cloudformation/stack/transformers.go Outdated
Comment thread internal/pkg/deploy/cloudformation/stack/worker_svc_test.go Outdated
Comment thread internal/pkg/manifest/testdata/backend-svc-customhealthcheck.yml Outdated
Comment thread internal/pkg/template/workload.go Outdated
Comment on lines +33 to +34
# deployment: # deployment strategy for the "test" environment.
# rolling: 'recreate' # key is rolling deployment and value is deployment strategy name i.e. either default or recreate. No newline at end of file
Copy link
Copy Markdown
Contributor

@Lou1415926 Lou1415926 Apr 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have to update these comments in test manifest data?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we need to as test manifest by default has those lines in it when they create new manifest.

Copy link
Copy Markdown
Contributor

@Lou1415926 Lou1415926 Apr 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These testdata doesn't test that unfortunately.

They are data consumed by the integration test whose purpose would be to validate the template, not to validate the default manifest.

I think in this case then we can remove all these lines in testdata

Sorry I misread the file path! Thought this was deploy/cloudformation/stack/testdata. This looks good to me!

Copy link
Copy Markdown
Contributor

@Lou1415926 Lou1415926 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM just a few more nits!

Comment thread internal/pkg/deploy/cloudformation/stack/transformers.go Outdated
Comment thread internal/pkg/template/templates/workloads/services/backend/manifest.yml Outdated
Comment thread internal/pkg/template/templates/workloads/services/lb-web/manifest.yml Outdated
Comment thread internal/pkg/template/templates/workloads/services/worker/manifest.yml Outdated
@Lou1415926 Lou1415926 added the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label Apr 13, 2022
Copy link
Copy Markdown
Contributor

@dannyrandall dannyrandall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great!🥳

Comment thread internal/pkg/template/workload.go Outdated
@Lou1415926 Lou1415926 removed the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label Apr 14, 2022
@mergify mergify Bot merged commit 5278140 into aws:mainline Apr 14, 2022
@paragbhingre paragbhingre deleted the deploymentConfiguration2 branch January 26, 2023 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Design] Support for configuring MinimumHealthyPercent and MaximumPercent

4 participants