Skip to content

Commit

Permalink
Mention session affinity in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Mar 8, 2019
1 parent e80a3d3 commit d8b847a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions docs/gitbook/how-it-works.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ promotes it without analysing it. If an analysis is underway, Flagger cancels it

Besides weighted routing, Flagger can be configured to route traffic to the canary based on HTTP match conditions.
In an A/B testing scenario, you'll be using HTTP headers or cookies to target a certain segment of your users.
This is particularly useful for frontend applications that require session affinity.

Spec:

Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (c *CanaryDeployer) SetStatusWeight(cd *flaggerv1.Canary, val int) error {
return nil
}

// SetStatusWeight updates the canary status weight value
// SetStatusIterations updates the canary status iterations value
func (c *CanaryDeployer) SetStatusIterations(cd *flaggerv1.Canary, val int) error {
cdCopy := cd.DeepCopy()
cdCopy.Status.Iterations = val
Expand Down
7 changes: 0 additions & 7 deletions pkg/controller/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,13 +471,6 @@ func (c *Controller) hasCanaryRevisionChanged(cd *flaggerv1.Canary) bool {
return false
}

func (c *Controller) hasMaxIterations(cd *flaggerv1.Canary) bool {
if cd.Status.Iterations == cd.Status.Iterations {
return true
}
return false
}

func (c *Controller) analyseCanary(r *flaggerv1.Canary) bool {
// run external checks
for _, webhook := range r.Spec.CanaryAnalysis.Webhooks {
Expand Down

0 comments on commit d8b847a

Please sign in to comment.