-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support QuickSync for ECS without ELB or target groups #4685
Support QuickSync for ECS without ELB or target groups #4685
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4685 +/- ##
=======================================
Coverage 30.82% 30.83%
=======================================
Files 221 221
Lines 25935 25947 +12
=======================================
+ Hits 7995 8001 +6
- Misses 17289 17295 +6
Partials 651 651 ☔ View full report in Codecov by Sentry. |
input: | ||
serviceDefinitionFile: /path/to/servicedef.yaml | ||
taskDefinitionFile: /path/to/taskdef.yaml | ||
accessType: SERVICE_DISCOVERY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This constant is defined by us or by AWS lib? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"This constant" means 'SERVICE_DISCOVERY'?
If so, it's defined by us, not by AWS.
And other names would be added in the future, like 'APP_MESH'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we should define these values as constant of ECS platform provider and have validate in config package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, I got it. I'll fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@khanhtc1202
I did it. Could you check again?
919cc3c
/review |
PR AnalysisMain themeThis PR introduces support for two types of access to ECS services: ELB and service discovery. PR summaryThis PR adds a new field, Type of PRRefactoring PR Feedback:General suggestionsThe changes in this PR look good overall. The addition of support for different access types is a valuable enhancement. The code is well-structured, and the use of constants for the access types improves readability. Code feedbackpkg/app/piped/executor/ecs/deploy.go
pkg/config/application_ecs.go
pkg/config/application_ecs_test.go
Security concerns:No |
/review |
PR AnalysisMain themetype: Refactoring PR summarytype: Refactoring Type of PRRefactoring PR Feedback:General suggestionsThe changes look good overall. The addition of the Code feedbackFile: pkg/app/piped/executor/ecs/deploy.goL9The import statement for the L19-L25The check for File: pkg/config/application_ecs.goL18-L27Consider extracting the constant access type values ( L41-L42The File: pkg/config/application_ecs_test.goL71-L77Consider adding additional test cases to cover the scenarios where Security concernsno |
@t-kikuc commented 👍 |
903955c
to
ddc3d02
Compare
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
Signed-off-by: t-kikuc <[email protected]>
ddc3d02
to
840f2ce
Compare
@khanhtc1202 One test/go failed, but it's due to flakiness #4630 |
Signed-off-by: t-kikuc <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
* Support QuickSync for ECS Service Discovery pattern Signed-off-by: t-kikuc <[email protected]> * Update the test expectation of ELB pattern Signed-off-by: t-kikuc <[email protected]> * Add a test of QuickSync of ECS Service Discovery Signed-off-by: t-kikuc <[email protected]> * fix comment Signed-off-by: t-kikuc <[email protected]> * Add a description of Input values Signed-off-by: t-kikuc <[email protected]> * Add consts and validation of accessType Signed-off-by: t-kikuc <[email protected]> * Modify consts to public for using in switch-case Signed-off-by: t-kikuc <[email protected]> * Fix a typo Signed-off-by: t-kikuc <[email protected]> * Refactor validation func Signed-off-by: t-kikuc <[email protected]> * Add a blank line in import Signed-off-by: t-kikuc <[email protected]> --------- Signed-off-by: t-kikuc <[email protected]>
* Support QuickSync for ECS Service Discovery pattern Signed-off-by: t-kikuc <[email protected]> * Update the test expectation of ELB pattern Signed-off-by: t-kikuc <[email protected]> * Add a test of QuickSync of ECS Service Discovery Signed-off-by: t-kikuc <[email protected]> * fix comment Signed-off-by: t-kikuc <[email protected]> * Add a description of Input values Signed-off-by: t-kikuc <[email protected]> * Add consts and validation of accessType Signed-off-by: t-kikuc <[email protected]> * Modify consts to public for using in switch-case Signed-off-by: t-kikuc <[email protected]> * Fix a typo Signed-off-by: t-kikuc <[email protected]> * Refactor validation func Signed-off-by: t-kikuc <[email protected]> * Add a blank line in import Signed-off-by: t-kikuc <[email protected]> --------- Signed-off-by: t-kikuc <[email protected]>
* Support QuickSync for ECS Service Discovery pattern Signed-off-by: t-kikuc <[email protected]> * Update the test expectation of ELB pattern Signed-off-by: t-kikuc <[email protected]> * Add a test of QuickSync of ECS Service Discovery Signed-off-by: t-kikuc <[email protected]> * fix comment Signed-off-by: t-kikuc <[email protected]> * Add a description of Input values Signed-off-by: t-kikuc <[email protected]> * Add consts and validation of accessType Signed-off-by: t-kikuc <[email protected]> * Modify consts to public for using in switch-case Signed-off-by: t-kikuc <[email protected]> * Fix a typo Signed-off-by: t-kikuc <[email protected]> * Refactor validation func Signed-off-by: t-kikuc <[email protected]> * Add a blank line in import Signed-off-by: t-kikuc <[email protected]> --------- Signed-off-by: t-kikuc <[email protected]> Signed-off-by: sZma5a <[email protected]>
* Support QuickSync for ECS Service Discovery pattern Signed-off-by: t-kikuc <[email protected]> * Update the test expectation of ELB pattern Signed-off-by: t-kikuc <[email protected]> * Add a test of QuickSync of ECS Service Discovery Signed-off-by: t-kikuc <[email protected]> * fix comment Signed-off-by: t-kikuc <[email protected]> * Add a description of Input values Signed-off-by: t-kikuc <[email protected]> * Add consts and validation of accessType Signed-off-by: t-kikuc <[email protected]> * Modify consts to public for using in switch-case Signed-off-by: t-kikuc <[email protected]> * Fix a typo Signed-off-by: t-kikuc <[email protected]> * Refactor validation func Signed-off-by: t-kikuc <[email protected]> * Add a blank line in import Signed-off-by: t-kikuc <[email protected]> --------- Signed-off-by: t-kikuc <[email protected]> Signed-off-by: 鈴木 優耀 <[email protected]>
What this PR does / why we need it:
This PR supports QuickSync for ECS using Service Discovery, not ELB and target groups.
I will support canary and blue/green for Service Discovery later.
Which issue(s) this PR fixes:
Part of #4616
Does this PR introduce a user-facing change?: