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

Common functions to support gMSA linux #3448

Conversation

saikiranakula-amzn
Copy link
Contributor

@saikiranakula-amzn saikiranakula-amzn commented Oct 27, 2022

Summary

Moved functions to common files needed for supporting both windows and linux gMSA and refactored the s3 module in agent, to be more consistent with naming as per other aws modules in the code base

Implementation details

Renamed existing s3client to s3managerclient
Added new s3client to support get object from s3
Moved credentialspec code to common go files

Testing

Added unit tests
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:

Description for the changelog

Licensing

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

@saikiranakula-amzn saikiranakula-amzn requested a review from a team as a code owner October 27, 2022 04:07
@saikiranakula-amzn saikiranakula-amzn force-pushed the feature/gmsa-linux-config branch 4 times, most recently from 234e6a3 to b933106 Compare October 27, 2022 04:35
agent/s3/factory/factory.go Show resolved Hide resolved
agent/s3/s3.go Outdated Show resolved Hide resolved
agent/s3/factory/factory.go Outdated Show resolved Hide resolved
@saikiranakula-amzn saikiranakula-amzn force-pushed the feature/gmsa-linux-config branch 6 times, most recently from 7c1e771 to d19ba33 Compare October 27, 2022 22:52
agent/s3/s3_test.go Outdated Show resolved Hide resolved
agent/s3/s3_test.go Show resolved Hide resolved
@saikiranakula-amzn saikiranakula-amzn force-pushed the feature/gmsa-linux-config branch from d19ba33 to eb14d7a Compare October 27, 2022 23:12
Copy link
Contributor

@vsiddharth vsiddharth left a comment

Choose a reason for hiding this comment

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

🚀

@sparrc sparrc merged commit 74ad282 into aws:feature/gmsa-support-on-linux Oct 28, 2022
saikiranakula-amzn added a commit to saikiranakula-amzn/amazon-ecs-agent that referenced this pull request Nov 4, 2022
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