Skip to content

Commit

Permalink
fix wrong config generation when upstream-hash-by is set (#2215)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvinEfendi authored and aledbf committed Mar 19, 2018
1 parent 08252e2 commit df50487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ingress/controller/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func buildLoadBalancingConfig(b interface{}, fallbackLoadBalancing string) strin
}

if backend.UpstreamHashBy != "" {
return "hash {{ $upstream.UpstreamHashBy }} consistent;"
return fmt.Sprintf("hash %s consistent;", backend.UpstreamHashBy)
}

if backend.LoadBalancing != "" {
Expand Down

0 comments on commit df50487

Please sign in to comment.