* fix: [NPM] fixing HCSShim vendor to a specific commit
* fix the name of setpolicy type
* fix Policy type
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
* replacing the HCSShim with fork because HCSShim master still has bug
* Fixing hnsfake
Co-authored-by: Evan Baker <rbtr@users.noreply.github.com>
* CLI functions
* fix whitespace bug in CIDRmatch + go lint issue
* update main.go from master
* addressed CR comments
* addressed Matt's comments
* make config flag to be a root cmd flag only
* make config flag to be a root cmd flag only
* organized iptable parser code
* print functions for iptable object + comments and testing template for parser
* add converter package + code refractoring parser
* fix bug where the program throws an error when the length of an option's value is 1 in parser
* add tests for parseTarget and parseModule + code refactoring for parser
* add ConvertIptablesObject func
* tests for parser
* add converter UT
* experimenting with protobuff
* used constructors, getters and setters for iptables' struct
* export GrapIptableLock
* add parser for negation in npm rules + add SetInfo obj for converter + update protobuf
* move folder into npm + changes to converter
* change hack folder name + move within npm
* make changes to converter
* change gitignore
* temporarily remove http folder
* converter ut
* fix converter tests + partial tests for tupleProcessor
* fix go lint issue with json unmarshal
* changed npmcache.exec type to interface to pass tests in converter
* change back policy file
* add conditions to get npm cache and iptable-save from node
* Update const.go
* Update converter.go
* Update converter_test.go
* Changes to return error statements in converter.go
* Update converter_test.go
* Change import path
* Update iptables strings method
* Update parser.go
* Update parser_test.go
* Update networkTupleProcessor.go
* update tupleProcessor_test.go
* Delete main.go
* resolve golint issue
* fix returning errors in tupleProcessor
* changed unit tests so they are more aligned with guidelines + add cidrblocks set type placeholder
* pull updates from master
* move everything to the datplane package
* refactoring code
* fix golint issues
* java style is not the way to Go ;)
* add more comments to the parseLine function
* fix more golint issues
* fix line length linting issues
* fix more linting issues
* add parse CIDR Block functionality
* minor bug fixes + more test coverage
* fix remaining lint issues
* minor linting issue
* fix the final linting issus this time for real
* for real
* remove todos
* addressed some CR reviews
* moved parser and iptables to their own package
* change package name
* minor comments
* change package name
* addressed more CR comments
* minor linting issue
* rename tupleProcessor to trafficAnalyzer
* remove a test that used exec
* fix parse iptable logic + re adding the previous test
* first version of network policy controller and its unit tests
* update reconcile and deleteNetworkPolicy function to correctly install and uninstall default Azure NPM chain.
* To explicitly manage default Azure NPM chain in deleteNetworkPolicy function
* correct comments and delete unused variable
* fix missed returing errors in codes
* Correct to check DeletionTimestamp and DeletionGracePeriodSeconds variables
* removed placeholder functions in network policy controoler and added more test cases (e.g., update and adding multiple network policies)
* - applied comments (use explict names, locating lock in a better place)
* add two methods to save and restore iptables in unit test
* comment out unused function
* early filter in updateNetworkPolicy function if they are the same network policies. Update unit tests to test more network policies events
* - start using klog package instead of log package
* remove unneeded defer for lock
* Locate of adding and deleting network policy object from our network policy cache in a right place. Correct prometheus metric code.
* use cached network policy key instead of network policy object as method parameter in cleanUpNetworkPolicy
* remove redundant check
* Remove ns- prefix as key in RawNpMap. Update UT to check prometheus metrics. Applied better naming and removed redundancy codes.
* minor update for varialbe names
* remove dependency between UT by re-initializing metrics. Correct message.
* Modify CNI for windows baremetal scenario in Azure
* Fix the CNI result for baremetal case
* Addressed PR comments from Tamilmani and Ramiro
* Remove azure-telemetry.exe from cni-baremetal package
* Fix formatting in logging
* Addressed Ramiro's PR review comments
* Formatting fix in printf
Co-authored-by: VK <abc@gmail.com>
* changes to support http and https for CNS
* correct small typo
* address feedback
* address feedback
* rename file
* small fix
* small fix
* fixing issue with cert not found
* Changes for cahing pod ip
* Test fix for API changes
* added test
* Fixed merge conflicts
* Add tests for pod cache
* Add one more check to validate the cache
* Incorporated the comment
Co-authored-by: neaggarw <neaggarwMS@users.noreply.github.com>