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

Add eni and appmesh ecs-agent module, and refactor eni to have a more general naming "NetworkInterface" with expanded attributes #3801

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

Realmonia
Copy link
Contributor

@Realmonia Realmonia commented Jul 12, 2023

Summary

This pull request adds eni and appmesh to netlib/model path to ecs-agent module, as well as renaming eni to networkInterface to accommodate expanded attributes to support Fargate better.

Implementation details

  • Creates netlib/model path in ecs-agent module.
  • Duplicate eni and appmesh to above path. I didn't do direct move but duplication first, because Fargate is directly importing and inheriting the definitions on mentioned two models.
  • Change the imports from code base to use the updated model.

Testing

New tests cover the changes: N/A

Existing github testing workflow passed.

Manual testing: this is a model change (including naming change), I did a test on agent update to make sure it does not break our data model persistence mechanism.

After an in place update (run a task, run make release, then sudo systemctl restart ecs), a new non-“omitempty” field DNSMappingList shows up in boltdb, without breaking anything else.

Description for the changelog

Add eni and appmesh ecs-agent module and refactor eni to have a more general naming

Licensing

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

@Realmonia Realmonia force-pushed the netLibDataModels branch 3 times, most recently from 2c99e1a to bab3dac Compare July 17, 2023 23:28
@Realmonia Realmonia force-pushed the netLibDataModels branch 6 times, most recently from 5102c69 to 4f93caa Compare July 27, 2023 07:38
@Realmonia Realmonia changed the title [WIP] appmesh and eni Add eni and appmesh ecs-agent module, and refactor eni to have a more general naming "NetworkInterface" with expanded attributes Jul 27, 2023
@Realmonia Realmonia force-pushed the netLibDataModels branch 3 times, most recently from 340a48e to eb92019 Compare August 14, 2023 18:19
@Realmonia Realmonia marked this pull request as ready for review August 14, 2023 18:52
@Realmonia Realmonia requested a review from a team as a code owner August 14, 2023 18:52
@prateekchaudhry
Copy link
Contributor

Do we plan to remove eni and appmesh from the api after some time?

@prateekchaudhry
Copy link
Contributor

Is there any significance of the field DNSMappingList? Do we know why this extra field gets created?

@Realmonia
Copy link
Contributor Author

Do we plan to remove eni and appmesh from the api after some time?

Yes! We will remove those after Fargate changes its integration code. Currently it is directly inherited by Fargate agent code base.

Is there any significance of the field DNSMappingList? Do we know why this extra field gets created?

This is a field used by Fargate and potentially used by future network library.

@Realmonia Realmonia merged commit c1b3626 into aws:dev Aug 16, 2023
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.

4 participants