Skip to content

Conversation

@aviral92
Copy link
Contributor

…ode.

Summary

Implementation details

Testing

New tests cover the changes:

Description for the changelog

Additional Information

Does this PR include breaking model changes? If so, Have you added transformation functions?

Does this PR include the addition of new environment variables in the README?

Licensing

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

@aviral92 aviral92 requested a review from a team as a code owner November 12, 2025 22:02
@aviral92 aviral92 requested review from JoseVillalta and xxx0624 and removed request for a team November 12, 2025 22:02
@aviral92 aviral92 self-assigned this Nov 12, 2025

netInt.Default = true
netInt.DesiredStatus = status.NetworkReadyPull
netInt.KnownStatus = status.NetworkNone
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm pretty sure we don't need to do this (line 400-401) the Fargate Agent State Machine looks at Namespace Manager Status not interface status directly. So this is unused at best. Worst case this ENI represents the host (primary) ENI, which is already up an running at this point, so we don't want to configure this ENI again. This is probably my fault, I added this code in a branch.

The other thing, the new call in line 391 initializes these attributes anyway.

The purpose for this method is to create a namespace config for the Fargate agent so that it can create a netns manager. For network namespace config known and desired status (line 411 and 412) this code is correct, for network interface let's do the same thing we do for host mode (init the struct directly) buildDefaultNetworkNamespaceConfig line 224. Let's double check two's repo to be sure.

Copy link
Contributor

@JoseVillalta JoseVillalta left a comment

Choose a reason for hiding this comment

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

left a comment in CreateNetNs

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