-
Notifications
You must be signed in to change notification settings - Fork 149
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 Drift Detection for ECS #5122
Conversation
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
…'s config Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5122 +/- ##
==========================================
+ Coverage 22.73% 22.77% +0.04%
==========================================
Files 410 413 +3
Lines 43514 44147 +633
==========================================
+ Hits 9892 10055 +163
- Misses 32844 33305 +461
- Partials 778 787 +9 ☔ View full report in Codecov by Sentry. |
/review |
PR AnalysisMain theme"Add drift detection support for ECS applications" PR summaryThis PR introduces ECS application drift detection capabilities to PipeCD. It allows the system to detect discrepancies between the desired state defined in Git and the actual state of ECS applications that are running in the cloud. This functionality is made possible by the addition of a new package. Type of PREnhancement PR Feedback:General suggestionsThis PR makes significant progress in integrating ECS application drift detection functionality. The code logically separates ECS-specific concerns into its namespace and makes a reasonable attempt at checking for configuration drift by using AWS SDK types and custom comparison logic. However, there are a few areas where the proposed changes could be improved to ensure better performance, avoid potential bugs, and adhere to best practices. Code feedback
Security concerns:no The PR does not appear to introduce obvious security issues. It relies on existing abstractions for dealing with AWS services and does not directly manage API calls or credentials, which would be the usual areas of concern for security issues like leaking sensitive information or improper access control. The logic for drift detection leverages AWS SDK types and PipeCD's existing mechanisms for cloning and pulling from git repositories, which should already be covered by the security practices in place for those areas. |
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.
🚀
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 👍
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 👍
What this PR does / why we need it:
Supported DriftDetection for ECS with some restrictions.
When synced:
When out-of-sync:
Restrictions:
desiredCount
of headManifest is 0 or not set, which means Autoscale may be enabled), diff ofdesiredCount
will be ignored.desiredCount
of ECS when it's 0 or not set for AutoScaling #5030detector.go
>ignoreParameters()
desiredCount
's diff will also be shown (as the above image).I will add docs about them in another PR.
Which issue(s) this PR fixes:
Fixes #5005
Does this PR introduce a user-facing change?: Yes, users can detect drift for ECS