Enable Istio checks for SMI-Istio adapter

This commit is contained in:
stefanprodan
2019-05-11 13:06:06 +03:00
parent 95b8840bf2
commit 8148120421

View File

@@ -598,7 +598,7 @@ func (c *Controller) analyseCanary(r *flaggerv1.Canary) bool {
}
// Istio checks
if c.meshProvider == "istio" {
if strings.Contains(c.meshProvider, "istio") {
if metric.Name == "request-success-rate" || metric.Name == "istio_requests_total" {
val, err := c.observer.GetIstioSuccessRate(r.Spec.TargetRef.Name, r.Namespace, metric.Name, metric.Interval)
if err != nil {