-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add debug mode for containerd agent and minor patches (#4059)
* Add GetInterfaceNamesToNetNSMapping method in netlib * Add GetInterfaceByIndex method in netlib * Add debug mode for containerd platform * Fix DNS config for debug mode * Add firecracker debug platform in netlib
- Loading branch information
Showing
6 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package platform | ||
|
||
import ( | ||
"github.com/aws/amazon-ecs-agent/ecs-agent/netlib/model/tasknetworkconfig" | ||
) | ||
|
||
// containerdDebug implements platform API methods for non-firecrakcer infrastructure. | ||
type containerdDebug struct { | ||
containerd | ||
} | ||
|
||
func (c *containerdDebug) CreateDNSConfig(taskID string, netNS *tasknetworkconfig.NetworkNamespace) error { | ||
return c.common.createDNSConfig(taskID, true, netNS) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package platform | ||
|
||
import "github.com/aws/amazon-ecs-agent/ecs-agent/netlib/model/tasknetworkconfig" | ||
|
||
type firecrackerDebug struct { | ||
firecraker | ||
} | ||
|
||
func (fc *firecrackerDebug) CreateDNSConfig(taskID string, netNS *tasknetworkconfig.NetworkNamespace) error { | ||
return fc.common.createDNSConfig(taskID, true, netNS) | ||
} |