* wip
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
Co-authored-by: JungukCho <jungukcho@microsoft.com>
* wip
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
Co-authored-by: JungukCho <jungukcho@microsoft.com>
* Add unit tests
* Use correct parameters
* Check nil value of ipsMgr before calling marshal function and add UT
* Resolve lint errors
* Resolve all lint errors
* Define error
* Use a right file for UT and resolve lint error
* Use better directory name for managing testfiles
* adding initial dataplane interface
* adding some skeleton code for crud functions
* adding dirty cache initial support for ipset manager
* correcting some go lints
* Adding some skeleton around os specific files
* removing interface and adding some network logic
* adding apply ipsets logic
* Addressing some comments and also adding comments to code
* Fixing some golints
* addressing some comments
* adding some golint checks
* Adding a new field setProperty and also adding structure for policies
* applying some comments
* correcting a condition
* Adding some comments
* Adding some test cases
* Addressing some comments
* Addressing more comments
* resolving some comments
* resolving some comments
* fixing some comments
* removing lock on policymap
* fixing some golints
* merging with master
* fixingsome wrap checks
* fixing lints
* Locate key data structure in each controller and remove locks in each controller if possible and lower lock location into ipset manager
* Create npmNameSpaceCache to manage shared namespace objects and mutex
* Encapsulate listMap and setMap in ipset manager struct not to expose them to other packages.
Remove unnecessary codes and clean-up initialization codes.
* Encapsulate methods and members to avoid unintentional access to variables and manage better shared resource. Correct UTs and Clean-up codes
* Update expected values in UTs according to architectural change and clean-up code (remove unnecessary comment and duplicated logging)
* Add comments and clean-up codes (removing redundant codes, etc)
* Remove threadness variable to avoid unintentional increase in the number of workers in each controller without safe synchronization
* Handle errors and return values in right ways based on lint hints
* Remove error handling codes in initializing iptables and ipset when NPM starts
* Call a correct function to avoid UT failure
* Resolve comments
* Locate key data structure in each controller and remove locks in each controller if possible and lower lock location into ipset manager
* Create npmNameSpaceCache to manage shared namespace objects and mutex
* Encapsulate listMap and setMap in ipset manager struct not to expose them to other packages.
Remove unnecessary codes and clean-up initialization codes.
* Encapsulate methods and members to avoid unintentional access to variables and manage better shared resource. Correct UTs and Clean-up codes
* Update expected values in UTs according to architectural change and clean-up code (remove unnecessary comment and duplicated logging)
* Add comments and clean-up codes (removing redundant codes, etc)
* Remove threadness variable to avoid unintentional increase in the number of workers in each controller without safe synchronization
* Handle errors and return values in right ways based on lint hints
* Remove error handling codes in initializing iptables and ipset when NPM starts
* Call a correct function to avoid UT failure
* Resolve comments
* Correct lint's complaint
* Correct chain order
* resolved llc lint warnings and renamed variables
* Resolved lint warnings if possible
* Removed unnecessary variables and codes
* Locate key data structure in each controller and remove locks in each controller if possible and lower lock location into ipset manager
Encapsulate listMap and setMap in ipset manager struct not to expose them to other packages.
Remove unnecessary codes and clean-up initialization codes.
Encapsulate methods and members to avoid unintentional access to variables and manage better shared resource. Correct UTs and Clean-up codes
Update expected values in UTs according to architectural change and clean-up code (remove unnecessary comment and duplicated logging)
Add comments and clean-up codes (removing redundant codes, etc)
Handle errors and return values in right ways based on lint hints
Remove error handling codes in initializing iptables and ipset when NPM starts
Call a correct function to avoid UT failure
Resolve comments
Correct lint's complaint
Correct chain order
* Add custom encoding and decoding logic for NPMCache
* Revise UT case in server_test.go and resolve lint warning
* Add npm cache file which was revised based on custom encoding and revise corresponding UTs
* Add unit test for npmCache (need to remove redundancy in server_test.go)
* Resolve lint warnings
* Upgrading Namespace to use NSController
* Unit tests for namespace controller
* correcting testcases
* correcting testcases
* correcting testcases
* Adding in more testcases
* adding threadness to NS
* minor imporvements wrt RV
* minor imporvements wrt RV
* minor imporvements wrt RV
* Cleaning up some stale code
* resolving comments
* Addressing some comments
* Addressing some comments
* Adding missing newcontroller
* Addressing more comments
* Addressing more comments