Add a configuration option for consecutive gateway errors (#8098)
Add a configuration option for consecutive gateway errors (#8098)

* add a config option for consecutive gateway failures.

* integrate the changes from the API PR.

* Enable gatway failure outlier detection.

By default EnforcingConsecutiveGatewayFailure is set to 0. See https://www.envoyproxy.io/docs/envoy/latest/api-v1/cluster_manager/cluster_outlier_detection.html . This change will set it to 100 once ConsecutiveGatewayFailure is set to a value > 0.

* add ConsecutiveGatewayFailure to validation tests

* fix wording in ConsecutiveGatewayFailure validation

* switch ConsecutiveErrors to react on gateway errors instead of 5xx.

- Reverts the changes made to the API.
- Disables 5xx errors by setting EnforcingConsecutive_5Xx to 0.
- For discussion see https://github.com/istio/api/pull/617.

* fix a copy/paste error.

Use out.ConsecutiveGatewayFailure instead of out.EnforcingConsecutiveGatewayFailure.

istio/istio,istio/istio,geeknoid/istio,geeknoid/istio,istio/istio,smawson/istio,geeknoid/istio,smawson/istio,geeknoid/istio,geeknoid/istio,smawson/istio,smawson/istio,smawson/istio,istio/istio,istio/istio,smawson/istio,geeknoid/istio