service entry: allow empty endpoints for static resolution#19036
service entry: allow empty endpoints for static resolution#19036istio-testing merged 1 commit intoistio:masterfrom
Conversation
Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
How will envoys have stale data when the entire service entry is rejected ? |
Because assume a case we have created service entry with |
Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
…io#19036) Signed-off-by: Alex Snast <alexsn@fb.com>
For Service Entries with STATIC resolution, we should allow empty endpoints. Since we internally convert it to EDS type of cluster in Envoy - it will work and it is valid for the external service represented by the Service Entry to have zero endpoints. When such an event happens today, Pilot rejects the ServiceEntry with error "error: endpoints must be provided if service entry resolution mode is static" and all Envoys will have stale data. Another alternative is to delete the service entry and recreate it with fresh endpoints when they are available.