1
0
Fork 0

Adds the missing circuit-breaker response code for CRD

This commit is contained in:
Ludovic Fernandez 2024-04-19 11:26:05 +02:00 committed by GitHub
parent a6b00608d2
commit 95312d5324
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 18 additions and 0 deletions

View file

@ -645,6 +645,10 @@ func createCircuitBreakerMiddleware(circuitBreaker *traefikv1alpha1.CircuitBreak
}
}
if circuitBreaker.ResponseCode != 0 {
cb.ResponseCode = circuitBreaker.ResponseCode
}
return cb, nil
}