-
Notifications
You must be signed in to change notification settings - Fork 612
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
Adds config parameter to shared netlib platform #4421
Conversation
cbf17d5
to
9d33fed
Compare
name string | ||
resolvConfPath string | ||
}{ | ||
{name: "al", resolvConfPath: "/etc/resolv.conf"}, |
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.
should this be just /etc
? I can see we are appending /resolv.conf
to resolvConfPath in the test below
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 for catching that.
9d33fed
to
a77d3d1
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.
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
Summary
This fixes Fargate Agent network configuration when running in ec2-debug mode on BottleRocket OS.
This unblocks end-to-end functional tests in internal Fargate Agent CI/CD pipeline.
Implementation details
Add configuration struct to shared netlib platform initializer. In order to support Fargate EC2 Debug mode in all platform types and OS combinations. Bottlerocket has a different path for the resolv.conf file
Testing
New tests cover the changes:
Yes. Created
TestCommon_CreateDNSFilesForDebug
inecs-agent/netlib/platform
Description for the changelog
Additional Information
Does this PR include breaking model changes? If so, Have you added transformation functions?
NO
Does this PR include the addition of new environment variables in the README?
NO
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.