Граф коммитов

7 Коммитов

Автор SHA1 Сообщение Дата
Nitish Malhotra 4971211d4e
[NPM] Generate TLS certificates during docker build and bake into image for gRPC secure channels (#1262)
* Bake certificate generation into the docker image

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Fixes and changes for certs

- Fixed an issue with the root command not parsing the config
- Removed ca key after signing server cert
- Fixed lint errors

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Fix args in kustomize manifests

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Fix lint errors in cmd

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Address PR review for nit fixes

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>
2022-03-04 14:27:30 -08:00
Vamsi Kalapala 2b3a4eeb18
Windows test branch for validating backport (#1254)
* Fixing a test failure

* comment unused cmds

* Fixing some behavior workarounds for HNS

* moving fan out one step up
2022-02-28 13:26:21 -08:00
Nitish Malhotra d3aeda737e
feat: [NPM] Restructure code and add deploy manifests (#1203) 2022-02-04 16:25:12 -08:00
Nitish Malhotra 6a63ac05a7
feat: [NPM] Create controlplane manager for decomposed model (#1189)
* Revert to smaller footprint

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Add dataplane manager implementation

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Add start commands for cp and dp

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Address PR comments

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Add dp and dpshim layers to respective constructor

- Completed the TODO items including instantiating the
  goalstateprocessor and passing it to the controllers
- Refactor of the code and add error/corner condition checks to all
  initializers.

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Update names to server and daemon

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Fix lint warnings and errors

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Fix unwrapped error warning

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Address comments

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* rename npm transport components

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Address comments from Hunter

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Fix issue with ctor dataplane client

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* Rename transport to events naming conventions

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>

* combine consts

Signed-off-by: Nitish Malhotra <nitishm@microsoft.com>
2022-01-19 16:41:55 -08:00
JungukCho 9db8386634
[NPM] chore: add NPM cmd UTs (#1015)
* Add uts for parseiptable.go

Co-authored-by: Hunter Gregory <hgregory@microsoft.com>

* test commit

* deleted file from test commit

* added a UT for convertiptable and moved shared UT functionality to a new file. also renamed some command constants to avoid confusion with real commands

* removing print statements from when I was debugging

* Add UTs for start.go

* Add simple UT for start.go

* make it clear that cache file and iptables save file need to be used together

* remove unnecessary wantEmptyOutput field in test struct

* Refactor cobra command and adjust unit tests

* UT for gettuples cmd

* comment out test without cache file and refactor args

* Delete unnecessary comments and commeted codes

* Remove lint errors

* Use correct files and expected values in UTs

Co-authored-by: Hunter Gregory <hgregory@microsoft.com>
Co-authored-by: Hunter Gregory <hunterlgregory@gmail.com>
2021-10-08 13:52:38 -07:00
Mathew Merrick 836ee3810e
feat: [NPM] Add config file and feature toggles (#979)
* package case

* package restructure

* add default config and toggles

* lint
2021-09-01 09:03:24 -07:00
Quang Nguyen 91695d85f0
[NPM] NPM Debug CLI (#971)
* 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
2021-08-17 19:29:27 -04:00