-
Notifications
You must be signed in to change notification settings - Fork 605
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
Windows daemon manager #4239
Windows daemon manager #4239
Conversation
d7ea047
to
6661a29
Compare
4179cea
to
225bb4b
Compare
0046c02
to
67b17ce
Compare
defaultECSAgentLogPathContainer = "/log" | ||
socketPathHostRoot = "/var/run/ecs" | ||
logPathHostRoot = "/log/daemons" | ||
daemonUID = 0 |
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.
nit (non-blocking): I'm seeing a lot of different config files that's scattered in different files. Perhaps we can try to scope it down a bit to having fewer config files.
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.
I have refactored as much as possible. For some constants that are specific to a module, I have kept it to the module itself. Most are limited to the module. For the Linux ones, I refactored as much as possible, but didn't want to perturb the code too much. Let me know if you see any config that can be made global.
82fc629
to
64718fc
Compare
64718fc
to
70e9fa1
Compare
67b17ce
to
864edbe
Compare
864edbe
to
70e9fa1
Compare
8df1c99
to
320e62a
Compare
320e62a
to
a421e01
Compare
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.
I mainly took a look at the ecs-agent changes which look good to me.
Summary
This PR adds the
DaemonManager
andManagedDaemon
components to support EBS-TaskAttach for Windows.Implementation details
We refactored the existing
DaemonManager
andManagedDaemon
modules for linux and repurposed the high-level workflow. The platform specific details were moved to the respective windows/linux modules.Testing
We used the existing linux tests and refactored them so that all of them can be repurposed for Windows.
New tests cover the changes:
Yes
Description for the changelog
Add support EBS-TaskAttach for Windows.
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.