Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mirror gateway component (#1949)
* add mirror component Signed-off-by: hlts2 <[email protected]> * fix mirror dockerfile path Signed-off-by: hlts2 <[email protected]> * fix deepsource warning Signed-off-by: hlts2 <[email protected]> * fix insert rpc handler Signed-off-by: hlts2 <[email protected]> * deleted unused file Signed-off-by: hlts2 <[email protected]> * fix api resource name Signed-off-by: hlts2 <[email protected]> * add mirror service and fix handler logic Signed-off-by: hlts2 <[email protected]> * fix values and helm template for new configuration Signed-off-by: hlts2 <[email protected]> * Format code with gofumpt and prettier * fix template rendering bug of mirror configmap Signed-off-by: hlts2 <[email protected]> * fix nil pointer error Signed-off-by: hlts2 <[email protected]> * bugfix to advertize different address Signed-off-by: hlts2 <[email protected]> * returns error when there is no other mirror gateways Signed-off-by: hlts2 <[email protected]> * add info log Signed-off-by: hlts2 <[email protected]> * extract only mirror addresses Signed-off-by: hlts2 <[email protected]> * fix log variable Signed-off-by: hlts2 <[email protected]> * add logging Signed-off-by: hlts2 <[email protected]> * bugfix mirror connection logic Signed-off-by: hlts2 <[email protected]> * add remove api proxy implementation Signed-off-by: hlts2 <[email protected]> * add error handling for register API Signed-off-by: hlts2 <[email protected]> * fix debug message Signed-off-by: hlts2 <[email protected]> * refactor discover logic Signed-off-by: hlts2 <[email protected]> * refactor Signed-off-by: hlts2 <[email protected]> * add remove api Signed-off-by: hlts2 <[email protected]> * Format code with prettier and gofumpt * add remove api and remove api rollback logic Signed-off-by: hlts2 <[email protected]> * refactor Signed-off-by: hlts2 <[email protected]> * add update rpc handler Signed-off-by: hlts2 <[email protected]> * refactor context variable for grpc method Signed-off-by: hlts2 <[email protected]> * fix trace span name Signed-off-by: hlts2 <[email protected]> * add getObjects method Signed-off-by: hlts2 <[email protected]> * refactor update and remove handler Signed-off-by: hlts2 <[email protected]> * Apply suggestions from code review Co-authored-by: Kiichiro YUKAWA <[email protected]> * add multi handler implementation Signed-off-by: hlts2 <[email protected]> * fix mirror client trace span Signed-off-by: hlts2 <[email protected]> * rename discover service to mirror service Signed-off-by: hlts2 <[email protected]> * fix build error of bidirectional stream Signed-off-by: hlts2 <[email protected]> * add more error handling to search handler Signed-off-by: hlts2 <[email protected]> * add debug comment Signed-off-by: hlts2 <[email protected]> * add status code log Signed-off-by: hlts2 <[email protected]> * add status code log Signed-off-by: hlts2 <[email protected]> * add status code log Signed-off-by: hlts2 <[email protected]> * fix named return bug Signed-off-by: hlts2 <[email protected]> * add debug log Signed-off-by: hlts2 <[email protected]> * add debug command Signed-off-by: hlts2 <[email protected]> * add debug command Signed-off-by: hlts2 <[email protected]> * add debug command Signed-off-by: hlts2 <[email protected]> * add force status wrap Signed-off-by: hlts2 <[email protected]> * execute upsert method to local cluster's lb Signed-off-by: hlts2 <[email protected]> * add target debug log Signed-off-by: hlts2 <[email protected]> * fix delete unwrap of circuitbreaker Signed-off-by: hlts2 <[email protected]> * refactor error handling for new status parse function Signed-off-by: hlts2 <[email protected]> * Format code with prettier and gofumpt * refactor error handling Signed-off-by: hlts2 <[email protected]> * style: Format code with prettier and gofumpt * fix error handling for broadcast operation of getobject Signed-off-by: hlts2 <[email protected]> * fix error join bug of getobject Signed-off-by: hlts2 <[email protected]> * refactor Signed-off-by: hlts2 <[email protected]> * deleted unused code Signed-off-by: hlts2 <[email protected]> * fix status handling and add address to resource name Signed-off-by: hlts2 <[email protected]> * use vald client for update operation Signed-off-by: hlts2 <[email protected]> * add rollback test for mirror crud Signed-off-by: hlts2 <[email protected]> * style: Format code with prettier and gofumpt * fix variable name Signed-off-by: hlts2 <[email protected]> * refactor mirror servie Signed-off-by: hlts2 <[email protected]> * deleted unused code Signed-off-by: hlts2 <[email protected]> * fix trace attribute and refactor variable name Signed-off-by: hlts2 <[email protected]> * add error handling when crud rpc fails Signed-off-by: hlts2 <[email protected]> * deleted unused value Signed-off-by: hlts2 <[email protected]> * make format Signed-off-by: hlts2 <[email protected]> * Revert "make format" This reverts commit f605563. * Apply suggestions from code review Co-authored-by: Kiichiro YUKAWA <[email protected]> * apply suggestion Signed-off-by: hlts2 <[email protected]> * bugfix and refactor mirror client Signed-off-by: hlts2 <[email protected]> --------- Signed-off-by: hlts2 <[email protected]> Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> Co-authored-by: Kiichiro YUKAWA <[email protected]>
- Loading branch information