Skip to content
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

Changes to advertise updated OSType while registering ECS Windows instances #2859

Merged
merged 7 commits into from
May 6, 2021
Merged

Changes to advertise updated OSType while registering ECS Windows instances #2859

merged 7 commits into from
May 6, 2021

Conversation

sandeepindraganti
Copy link
Contributor

Summary

Advertise OSFamilyType while registering the ECS instances with the cluster. Below are the supported OSTypes

Supported OS Types:

  |   |   |

Implementation details

Added a new implementation GetOperatingSystemFamilyType() which reads the windows registry and construct the relevant windows OS type. For Linux implementation it returns "Linux" as OS Type which is currently being returned. Linux behavior is unaltered by this PR

Testing

Unit tests written for the new changes.
Existing tests were executed
Custom agent built and verified.

Note for external contributors:
make test and make run-integ-tests can run in a Linux development
environment like your laptop. go test -timeout=30s ./agent/... and
.\scripts\run-integ.tests.ps1 can run in a Windows development environment
like your laptop. Please ensure unit and integration tests pass (on at least
one platform) before opening the pull request.
Once you open the pull request, there will be 14 automatic test checks on the bottom
of the pull request, please make sure they all pass before you merge it. You can
use bot/test label to rerun the automatic tests multiple times.
-->

New tests cover the changes:
Yes.

Description for the changelog

"Register Windows ECS Instances using specific OSFamilyType "

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sandeepindraganti sandeepindraganti changed the title Changes to advertise updated OSType while registering ECS instances with cluster Changes to advertise updated OSType while registering ECS Windows instances with cluster Apr 29, 2021
@sandeepindraganti sandeepindraganti changed the title Changes to advertise updated OSType while registering ECS Windows instances with cluster Changes to advertise updated OSType while registering ECS Windows instances Apr 29, 2021
Copy link
Contributor

@rawahars rawahars left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@fenxiong fenxiong requested a review from a team April 30, 2021 18:24
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.

6 participants