Revert changes in skip analysis condition

This commit is contained in:
Daniel Albuquerque
2020-09-18 18:43:27 +01:00
parent 4b098cc7a2
commit 0eee5b7402
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -428,7 +428,7 @@ func (c *Canary) GetMetricInterval() string {
// SkipAnalysis returns true if the analysis is nil
// or if spec.SkipAnalysis is true
func (c *Canary) SkipAnalysis() bool {
if c.Spec.Analysis == nil || c.Spec.CanaryAnalysis == nil {
if c.Spec.Analysis == nil && c.Spec.CanaryAnalysis == nil {
return true
}
return c.Spec.SkipAnalysis
+1 -1
View File
@@ -71,8 +71,8 @@ spec:
x-envoy-upstream-rq-timeout-ms: "15000"
x-envoy-max-retries: "10"
x-envoy-retry-on: "gateway-error,connect-failure,refused-stream"
skipAnalysis: true
analysis:
skipAnalysis: true
interval: 15s
threshold: 15
maxWeight: 30