Aptomi / k8s-app-engine

Application delivery engine for k8s
Apache License 2.0
163 stars 19 forks source link

Improve service discovery when contract is implemented via different services #205

Open romangithub1024 opened 6 years ago

romangithub1024 commented 6 years ago

Let's say "db_component" is a component within a service which points to a contract "sql-database".

Then, if within a service, we want to use something like: {{ .Discovery.db_component.[...].url }}

Proposed implementation: 1) Contract must define required discovery params that will be exposed by this contract 2) Every contract implementation must expose those required params