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

Adds config parameter to shared netlib platform #4421

Merged
merged 1 commit into from
Nov 7, 2024
Merged

Conversation

JoseVillalta
Copy link
Contributor

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 in ecs-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.

name string
resolvConfPath string
}{
{name: "al", resolvConfPath: "/etc/resolv.conf"},
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching that.

Copy link
Contributor

@xxx0624 xxx0624 left a comment

Choose a reason for hiding this comment

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

LGTM

@JoseVillalta JoseVillalta merged commit e6fa3e8 into dev Nov 7, 2024
45 checks passed
Copy link
Contributor

@timj-hh timj-hh left a comment

Choose a reason for hiding this comment

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

LGTM

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.

5 participants