Skip to content

Commit

Permalink
Merge pull request #380 from weaveworks/skip-primary-check
Browse files Browse the repository at this point in the history
Skip primary check on skip analysis
  • Loading branch information
stefanprodan authored Nov 26, 2019
2 parents 3fbe62a + 9af6ade commit 446a2b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/canary/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (c *DeploymentController) Initialize(cd *flaggerv1.Canary, skipLivenessChec
}

if cd.Status.Phase == "" || cd.Status.Phase == flaggerv1.CanaryPhaseInitializing {
if !skipLivenessChecks {
if !skipLivenessChecks && !cd.Spec.SkipAnalysis {
_, readyErr := c.IsPrimaryReady(cd)
if readyErr != nil {
return "", ports, readyErr
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (c *Controller) advanceCanary(name string, namespace string, skipLivenessCh
}

// check primary deployment status
if !skipLivenessChecks {
if !skipLivenessChecks && !cd.Spec.SkipAnalysis {
if _, err := canaryController.IsPrimaryReady(cd); err != nil {
c.recordEventWarningf(cd, "%v", err)
return
Expand Down

0 comments on commit 446a2b9

Please sign in to comment.