Adds the missing circuit-breaker response code for CRD
This commit is contained in:
parent
a6b00608d2
commit
95312d5324
5 changed files with 18 additions and 0 deletions
|
@ -645,6 +645,10 @@ func createCircuitBreakerMiddleware(circuitBreaker *traefikv1alpha1.CircuitBreak
|
|||
}
|
||||
}
|
||||
|
||||
if circuitBreaker.ResponseCode != 0 {
|
||||
cb.ResponseCode = circuitBreaker.ResponseCode
|
||||
}
|
||||
|
||||
return cb, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue