Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Custom Resource for mirror target (#2023)
* add mirror definition and update proto dependencies Signed-off-by: hlts2 <[email protected]> * 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]> * add discovery logic for other mirror target Signed-off-by: hlts2 <[email protected]> * add k8s template file Signed-off-by: hlts2 <[email protected]> * add crd for mirror target resource Signed-off-by: hlts2 <[email protected]> * add new values for mirror discovery logic Signed-off-by: hlts2 <[email protected]> * style: Format code with gofumpt and prettier * fix schema register error and fix manifest to multi vald cluster Signed-off-by: hlts2 <[email protected]> * style: Format code with gofumpt and prettier * bugfix: adapt the service account and add early return Signed-off-by: hlts2 <[email protected]> * bugfix: usage of errors join Signed-off-by: hlts2 <[email protected]> * bugfix: type conversion bug Signed-off-by: hlts2 <[email protected]> * fix metadata hash logic and add mirror group function Signed-off-by: hlts2 <[email protected]> * add status handling for network connection Signed-off-by: hlts2 <[email protected]> * refactoring Signed-off-by: hlts2 <[email protected]> * bugfix: status update handling Signed-off-by: hlts2 <[email protected]> * bugfix: update status using status writer Signed-off-by: hlts2 <[email protected]> * add status timestamp Signed-off-by: hlts2 <[email protected]> * fix yaml field format Signed-off-by: hlts2 <[email protected]> * improve status changes handling Signed-off-by: hlts2 <[email protected]> * reduced number of status updates Signed-off-by: hlts2 <[email protected]> * added status check handling before changing status Signed-off-by: hlts2 <[email protected]> * update vald mirror target definition and add new cluster role Signed-off-by: hlts2 <[email protected]> * style: Format code with gofumpt and prettier * deploy multiple vald clusters and mirror target resource to connect with each other Signed-off-by: hlts2 <[email protected]> * fix e2d test to mirror-gateway and crd view field Signed-off-by: hlts2 <[email protected]> * define mirror app name Signed-off-by: hlts2 <[email protected]> * deleted unused code Signed-off-by: hlts2 <[email protected]> * fix golangci warning Signed-off-by: hlts2 <[email protected]> * crd generate command for mirror target using mirror-target-values Signed-off-by: hlts2 <[email protected]> * add string field validation Signed-off-by: hlts2 <[email protected]> * fix build error Signed-off-by: hlts2 <[email protected]> * add configuration comment Signed-off-by: hlts2 <[email protected]> * style: Format code with gofumpt and prettier * add image tag for debug Signed-off-by: hlts2 <[email protected]> * fix rebase error Signed-off-by: hlts2 <[email protected]> * fix wait timeout option Signed-off-by: hlts2 <[email protected]> * add new option to set mirror address Signed-off-by: hlts2 <[email protected]> * add new comment Signed-off-by: hlts2 <[email protected]> * bugfix for ingress configuration Signed-off-by: hlts2 <[email protected]> * not create lb ingress when mirror is enabled Signed-off-by: hlts2 <[email protected]> * not create filter ingress when mirror is enabled Signed-off-by: hlts2 <[email protected]> * add error handling for unimplemented codes error Signed-off-by: hlts2 <[email protected]> * bugfix register addr process Signed-off-by: hlts2 <[email protected]> * fix build error Signed-off-by: hlts2 <[email protected]> * Revert "update docker file for build error" This reverts commit f40986d. * add new package for docker build error Signed-off-by: hlts2 <[email protected]> * Add mirror gateway example (#2082) * add example code Signed-off-by: hlts2 <[email protected]> * execute search and getobject request to all vald clusters Signed-off-by: hlts2 <[email protected]> * fixed to send data to each cluster based on the dataset Signed-off-by: hlts2 <[email protected]> --------- Signed-off-by: hlts2 <[email protected]> * add mirror target metrics Signed-off-by: hlts2 <[email protected]> * fix example ngt dimension Signed-off-by: hlts2 <[email protected]> * make proto/all & make format 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