Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Service inventory changes for further protos review (istio#20)
* Service inventory changes for further protos review: - Consolidated all proto definitions into service.proto - Minor changes to Makefile, client print formatting, etc. * - Let inventory-server stay-up, and retry DB Ping, instead of exiting - Test connection when DB ping fails * Fixes based on earlier PR comments. Following are now taken care: - Redefined service.proto to accommodate standards, reorganized/consolidated names, comments, etc. - Reworked corresponding handler code proto references * Additional fixes based on PR comments incorporating proto file reformatting, service name changes, and similar. Corresponding code changes to accommodate these. * Service proto changes, new service ListServices(ListServicesRequest), added empty metadata; Retaining proto package as v1alpha as-is * Follow-up PR review changes accommodating: - rename proto package to "api/inventory/v1" from "api/inventory/v1alpha"; corresponding go package import changes - rearranged service.proto message definitions - Proto major changes: Metadata.spec to Service.ports; Workload.ou to Metadata.ou - gRPC client takes an address "inventory-client <address>" - PSQL reconnect timer changed to 5s from 30s * Continuation of earlier PR commit 2019604 * Service Inventory updates accommodating: - Rid of DB population at init time, instead separated inventory-test to add entries to DB - CreateServices now take Service protobuf as parameter to unmarshall protobuf into to PLSQL; Similarly, ListServices will now marshall's service protobuf to ListServicesResponse - DB tables, macros, handler routines to persist/retrieve metadata, endpoint, cluster, workload * Service Inventory changes accommodating: - renamed "cmd/test" to "cmd/test-data" for populating test DB data - batched unmarshalling of queries to populate DB rows - updated service name to envoyfilter.yaml * Service Inventory changes accommodating: (included the rest) - renamed "cmd/test" to "cmd/test-data" for populating test DB data - batched unmarshalling of queries to populate DB rows - updated service name to envoyfilter.yaml Mirrored from https://github.com/tetrateio/tetrate @ 7b052834d21911a0ad1d1bc1613ddaff07c09155
- Loading branch information