agent/api/task/task.go
func convertAppMeshToCNIConfig(appMesh *apiappmesh.AppMesh, cfg *ecscni.Config) {
	cfg.AppMeshCNIEnabled = true
	cfg.IgnoredUID = appMesh.IgnoredUID
	cfg.IgnoredGID = appMesh.IgnoredGID
	cfg.ProxyIngressPort = appMesh.ProxyIngressPort
	cfg.ProxyEgressPort = appMesh.ProxyEgressPort
	cfg.AppPorts = appMesh.AppPorts
	cfg.EgressIgnoredIPs = appMesh.EgressIgnoredIPs
	cfg.EgressIgnoredPorts = appMesh.EgressIgnoredPorts

}
func convertAppMeshToCNIConfig(appMesh *apiappmesh.AppMesh, cfg *ecscni.Config) {
	cfg.AppMeshCNIEnabled = true
	cfg.IgnoredUID = appMesh.IgnoredUID
	cfg.IgnoredGID = appMesh.IgnoredGID
	cfg.ProxyIngressPort = appMesh.ProxyIngressPort
	cfg.ProxyEgressPort = appMesh.ProxyEgressPort
	cfg.AppPorts = appMesh.AppPorts
	cfg.EgressIgnoredIPs = appMesh.EgressIgnoredIPs
	cfg.EgressIgnoredPorts = appMesh.EgressIgnoredPorts

}
func convertAppMeshToCNIConfig ( appMesh * apiappmesh . AppMesh , cfg * ecscni . Config ) { cfg . AppMeshCNIEnabled = true cfg . IgnoredUID = appMesh . IgnoredUID cfg . IgnoredGID = appMesh . IgnoredGID cfg . ProxyIngressPort = appMesh . ProxyIngressPort cfg . ProxyEgressPort = appMesh . ProxyEgressPort cfg . AppPorts = appMesh . AppPorts cfg . EgressIgnoredIPs = appMesh . EgressIgnoredIPs cfg . EgressIgnoredPorts = appMesh . EgressIgnoredPorts }
// convertAppMeshToCNIConfig converts input app mesh config into cni config
convertAppMeshToCNIConfig converts input app mesh config into cni config